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
Captain Fwiffo
Newbie


Joined: 06 Aug 2008
Posts: 3

PostPosted: Wed Aug 06, 2008 7:33 pm   

Unusual stat roller trigger help needed
 
I'm trying to put together a stat roller for a particular mud, but the stat generation system it uses is different enough from the other stat roller scripts I've seen that I can't modify any of them to work.

Essentially, I want a trigger to wait until it sees "Post-mortem report:" and then send the command "score" to see what stats have been generated. I can get that far. The output from that command that's important looks like this:

Brawn...... 9.00 Reflexes... 10.00
Brains..... 9.00 Endurance.. 12.00
Cool....... 12.00 Senses..... 10.00

I want to capture the value of the 'cool' and 'senses' stats and check to see if they're both above a specified level. Then the trigger needs to send the command 'down' followed by 'yes if the stats are high enough and 'no' if they aren't.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Wed Aug 06, 2008 8:42 pm   
 
#TR {Cool....... (%f) Senses..... (%f)} { #if (%1 > @coolThreshold && %2 > @sensesThreshold) { down;yes } {no}}

That's off the the top of my head but should do what you want.
_________________
Asati di tempari!
Reply with quote
Captain Fwiffo
Newbie


Joined: 06 Aug 2008
Posts: 3

PostPosted: Thu Aug 07, 2008 7:48 am   
 
edit: Fiddled with it a bit but it's working now. Thanks
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