Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Kaneda
Newbie


Joined: 27 Jun 2011
Posts: 2

PostPosted: Mon Jun 27, 2011 6:08 pm   

#win problem
 
I have a problem with the script

memorize
#Clr Memorize
#Win Memorize MX":" @memtime MN":" @memnow MT":"@memax
#Win Memorize " "

#LOOPDB @spell {#win Memorize #SHOW %key "=" %val}

because it don't accept the double # on the same line in this case the #show

#LOOPDB @spell {#SHOW %key "=" %val}

if i put it it's perfect but it show on the main windows i want it to show on the Memorize window
help me pls :)
Reply with quote
hadar
Apprentice


Joined: 30 Aug 2009
Posts: 198
Location: my apt, in california

PostPosted: Mon Jun 27, 2011 6:11 pm   
 
try this

#loopdb @spell {#execwin Memorize {#print %key "=" %val}}
_________________
if you build it they will come, assuming that they have not already come to build it
Aardwolf Bootcamp
My youtube channel
Reply with quote
Kaneda
Newbie


Joined: 27 Jun 2011
Posts: 2

PostPosted: Mon Jun 27, 2011 6:13 pm   
 
Cool Thx you are my savior :)
thx really for the fast answer :)
Reply with quote
hadar
Apprentice


Joined: 30 Aug 2009
Posts: 198
Location: my apt, in california

PostPosted: Mon Jun 27, 2011 6:16 pm   
 
no problem you just happen to post when i was going through the website
_________________
if you build it they will come, assuming that they have not already come to build it
Aardwolf Bootcamp
My youtube channel
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Mon Jun 27, 2011 7:01 pm   
 
You're both making this more complicated than it needs to be... you don't need to execute #show or #print in the other window, since the #window command already exists to display text in another window. This code should do what you need:
Code:
#LOOPDB @spell {#WIN Memorize %key"="%val}


EDIT: On another note, you shouldn't get into the habit of using implicit concatenation like this, since it doesn't always work. It's better to use explicit concatenation, with the %concat function. Would look something like this:
Code:
#LOOPDB @spell {#WIN Memorize %concat(%key,"=",%val)}
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net