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
Zepher
Newbie


Joined: 04 Nov 2003
Posts: 1

PostPosted: Tue Nov 04, 2003 10:01 pm   

Need help with a trig!
 
I was wondering if anyone would be able to show me an example or write this trigger for me.

Its for autorolling on a mud that i used to play on here is how the stats are determined.

STR : You are slightly favored in tug-o-war games.
DEX : You are nimble and flexible.
INT : You have an average intelligence.
WIS : You have excellent judgment.
CON : You never get sick and can run miles without tiring.
CHR : You are popular.

Do these stats look satisfactory to you? [y/n]:

I want a trigger so that if say, if that was the str string i wanted it would check the dex string to see if that was the one i wanted and move on to the next one.. etc... etc... and if they all matched it would say yes... anyone have any idea how to do that?

Zepher
Reply with quote
Dagnimaer
Wanderer


Joined: 05 Apr 2003
Posts: 60
Location: USA

PostPosted: Tue Nov 04, 2003 10:28 pm   
 
Ok, I'm just starting into this but maybe try something like

Triggers:

#trigger {STR : You are slightly favored in tug-o-war games.} {str = 1}
#trigger {DEX : You are nimble and flexible.} {dex = 1}
#trigger {INT : You have an average intelligence.} {int = 1}
#trigger {WIS : You have excellent judgment.} {wis = 1}
#trigger {CON : You never get sick and can run miles without tiring.} {con = 1}
#trigger {CHR : You are popular.} {chr = 1}

#trigger {Do these stats look satisfactory to you? [y/n]:} {#if (@str AND @dex AND @int AND @wis AND @Con and @Chr) {y} (reset;no}}


Alias:

#alias {reset} {str = 0;dex = 0; int = 0;wis = 0;con = 0;cha = 0}


I think this may help, but this should at least give you some ideas.



-Dag
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Nov 04, 2003 10:49 pm   
 
Dag has the right idea. I'd suggest using list-variables to store the acceptable values for each stat.
Example:
#VAR strength {slightly favored|favored|greatly favored}
#TR {STR : You are {@strength} in tug of war games.} {str = 1}
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