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
noz
Beginner


Joined: 28 Nov 2004
Posts: 10

PostPosted: Mon Nov 29, 2004 6:20 pm   

Waiting for balance and equilibrium....
 
I'm trying to make it so that if I get hit with something, in this case if my character gets tied up because of a web or whatever, then my system will wait until i have balance and equilibrium and will then writhe. I set it up so that whenever the line stating I got webbed appears it sets the variable WEBBED equal to YES...now, I made a trigger in my prompt to check each time, and if @balance, @equilibrium, and @webbed are all equal to YES then it would attempt to WRITHE, and if i balance or equilibrium are not yes, it will wait till it is yes, and then try to writhe. but for some reason it won't writhe, it will set webbed equal to yes, and will show when balance and equalibrium are equal to yes, but thats as far as it goes. the pattern for my prompt is:

H:%n M:%n E:%n W:%n ~<(?)(?)~(*)~>

so...i set it up so when i see the prompt it would execute

#if ((@webbed=yes) AND (@balance=yes) AND (@equilibrium=yes)) {Writhe}


that makes sense to me, but something must be wrong, any help would be appreciated. Thanks in advance
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Nov 30, 2004 2:39 am   
 
Case sensitivity issue probaly, "Yes" does not equal "yes"

#IF ((%lower(@webbed)="yes") AND (%lower(@balance)="yes") AND (%lower(@equilibrium)="yes")) {writhe}

Edit: line updated
Upon rereading the help file we should be able to do just this

#IF (@webbed AND @balance AND @equilibrium) {Writhe}

Also be sure this is after the part that sets those three variables
_________________
Zmud Support Library
Zmud Knowledge Base
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