|
John Gilmore Beginner
Joined: 22 Mar 2003 Posts: 19 Location: Park City Utah
|
Posted: Fri Oct 21, 2011 9:15 pm
Small autoroller script |
#TRIG AUTOROLLER {Strength: (%x) Intelligence: (%x) Wisdom: (%x) Dexterity: (%x) Constitution: (%x)} {#math Total %1+%2+%3+%4+%5;#ECHO @total;#IF (@Total >= 95) {Y;#BEEP} {N}
When I paste this into XML I get parsing error line 1 col 1. I cant see what I am doing wrong. Can anyone look at it and give me a few ideas?
|
|
|
|
geniusclown Magician
Joined: 23 Apr 2003 Posts: 358 Location: USA
|
Posted: Fri Oct 21, 2011 10:45 pm |
The error is because this is missing the XML tags. Just paste it into the command line as is. #MATH is obsolete in CMUD. Also, you're missing a close brace.
Code: |
#TRIG AUTOROLLER {Strength: (%x) Intelligence: (%x) Wisdom: (%x) Dexterity: (%x) Constitution: (%x)} {Total=(%1+%2+%3+%4+%5);#ECHO @total;#IF (@Total >= 95) {Y;#BEEP} {N}} |
Hope this helps! |
|
_________________ .geniusclown |
|
|
|
|
|