|
Alcander Wanderer
Joined: 04 Aug 2001 Posts: 79 Location: USA
|
Posted: 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 |
|
|
|
Tolkienfan Wanderer
Joined: 07 Apr 2001 Posts: 51 Location: Denmark
|
Posted: 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 |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
|
|