Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
John Gilmore
Beginner


Joined: 22 Mar 2003
Posts: 19
Location: Park City Utah

PostPosted: 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?
Question
Reply with quote
geniusclown
Magician


Joined: 23 Apr 2003
Posts: 358
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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