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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
kazu
Beginner


Joined: 16 Sep 2008
Posts: 17

PostPosted: Thu Sep 18, 2008 3:13 pm   

trigger help
 
Ok I'm making a trigger and it's telling me that the variable is empty when I know it's not, anyone have any idea why this is happening?

You feel incredibly tired, and fall asleep immediately.

#addkey afflicts @asleep 1
#addkey afflicts @prone 1
#if (@asleep = 1) {wake}

There's the trigger line
Reply with quote
Progonoi
Magician


Joined: 28 Jan 2007
Posts: 430

PostPosted: Thu Sep 18, 2008 3:31 pm   
 
Code:

#addkey afflicts asleep 1
#addkey afflicts prone 1


You can't use @ with #addkey like that.

Code:

#if (%db(@afflicts,asleep)=1) {wake}


as Asleep is a key in Afflicts, that's the way to get its value out and make the #if.
_________________
The Proud new owner of CMud.

--------------------------------
Intel Core i5-650 3,2GHz
4 DD3 RAM
GTX 460 768MB
Win 7 Home Premium 64x
--------------------------------
Reply with quote
kazu
Beginner


Joined: 16 Sep 2008
Posts: 17

PostPosted: Thu Sep 18, 2008 3:33 pm   
 
Ahh, thank you very much!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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