|
Captain Fwiffo Newbie
Joined: 06 Aug 2008 Posts: 3
|
Posted: 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. |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
Captain Fwiffo Newbie
Joined: 06 Aug 2008 Posts: 3
|
Posted: Thu Aug 07, 2008 7:48 am |
edit: Fiddled with it a bit but it's working now. Thanks
|
|
|
|
|
|