|
Trebond Newbie
Joined: 01 Mar 2007 Posts: 2
|
Posted: Fri Mar 02, 2007 9:50 pm
Trigger |
Greetings Every1 .. :)
I hope some1 can help me out here..
I play on AustionMud, and is starting a new char.
And there for need some nice stats etc.
I got this pattern:
Str: 11 , Int: 18 , Wis: 18 , Dex: 13 , Con: 8
An i would like a trigger who goes for, let say, int = or > 20, and the same for wis.
I have tryed made one for just Int:
Pattern: Int: %d
#If d% < 20 then
3
(3 is the key for reroll of stats)
But cant get the trigger to work! :(
Even if i get a, let say, 22 it just contine to reroll. :cry:
Hope some1 can help out or tell what im doing wrong. :)
Kind Regards
Trebond .. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Fri Mar 02, 2007 10:16 pm |
#TR {Int: (%d)} {#IF (%1<20) {3}}
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
Trebond Newbie
Joined: 01 Mar 2007 Posts: 2
|
Posted: Fri Mar 02, 2007 10:33 pm |
Thx! :)
I can get that trigger to work now! Great! :D
What if I need to get Int and Wis at 20?
I tryed add "and(%2<20)" to the trigger but didnt work(and Wis: %d) to the patterne ofcause).
I also tryed to make 2 #IF commandoes:
#IF (%1<20) {3}
#IF (%2<20) {3}
But didnt work eather. :(
Kind Regards
Trebond .. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Fri Mar 02, 2007 11:12 pm |
You need brackets round the %d for it to be captured to a %nn variable.
#trig {Int: (%d) , Wis: (%d)} {} |
|
|
|
|
|