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
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Thu Apr 10, 2008 4:29 pm   

Command in an Expression isn't working...
 
Code:

#TRIGGER thirsty {^You are thirsty.$}
{
 #IF (@posn="wake")
  {
   #5 {#send "drink decan"}
  } {
   #send rest
   #5 {#send "drink decan"}
   #send sleep @bed
  }
} {General Triggers}


Essentially, my character wakes up, drinks, then when it goes back to sleep, it just goes to sleep, it does not go to sleep on the proper bed. And I checked the bed variable, it is filled with a value. So why is my character not going to sleep on the bed?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Apr 10, 2008 4:32 pm   
 
Is it sending an invalid bed, or is it sending nothing? If the latter, try

#send {sleep @bed}

If the former, you've probably got two @bed variables somewhere.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Thu Apr 10, 2008 5:12 pm   
 
sending nothing. I deleted all the variables and re put them back in, so maybe that was it. These potential double variables are getting irksome.
_________________
Listen to my Guitar - If you like it, listen to more
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