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
Alcander
Wanderer


Joined: 04 Aug 2001
Posts: 79
Location: USA

PostPosted: Wed Jan 02, 2002 2:55 pm   

Help with Rearrange Trigger
 
I need to set up a Rearrange Trigger for this. Can someone help me out?

Generating random roll...

Strength : 22
Constitution: 18
Dexterity : 15
Intelligence: 14
Wisdom : 10

To accept these, type 'save'.
To quit without saving, type 'quit'.
To change priorities, type 'pri'.
Anything else rerolls.
What would you like to do with these statistics?

The top stat you can get is 28 and i'm trying to get this is strength and constitution.

Thanks
Reply with quote
Tolkienfan
Wanderer


Joined: 07 Apr 2001
Posts: 51
Location: Denmark

PostPosted: Wed Jan 02, 2002 4:12 pm   
 
Ok didnt test this but try it...

#Var strength
#var con
#tr {Strength : (%d)} {strength=%1}
#tr {Constitution : (%d)} {con=%1}
#tr (What would you like to do with these statistics?) {#if (@strength=28 and @con=28) {save};#if {@strength!=28 or @con!=28) {fish}}

Tolkienfan
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Jan 02, 2002 5:32 pm   
 
Why use two #IF statements? Since the second is the exact opposite of the first, just add a "then" action to the first. Also, most statrollers don't have an end-of-line after the question, so it might be preferable to trigger on the statement just before it.

#TR {^Anything else rerolls} {#IF ((@strength = 28) AND (@con = 28)) {save} {fish}}

LightBulb
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