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


Joined: 01 Mar 2007
Posts: 2

PostPosted: 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 ..
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Fri Mar 02, 2007 10:16 pm   
 
#TR {Int: (%d)} {#IF (%1<20) {3}}
_________________
Discord: Shalimarwildcat
Reply with quote
Trebond
Newbie


Joined: 01 Mar 2007
Posts: 2

PostPosted: 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 ..
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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)} {}
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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