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
Alabaster
Beginner


Joined: 25 Jun 2002
Posts: 11

PostPosted: Tue Jun 25, 2002 4:49 pm   

Autoroller problem any help would be appreicated
 
I am having difficulty with an autoroller program for Tempus Mud.
I originally had a trigger set that worked fine with their attributes
But the rolling script has been changed. Now I am the first to admit I am nowhere near proficient at zmud programming but I generally get by… I may just be missing something abvious…

My original trigger set(rather crude but it did what I wanted) was setup on the stats I wanted

#trigger {CHARACTER ATTRIBUTES} {#var st 0}
#trigger (Strength: Your strength is at the human peak!} {#math st @st+1}
#trigger { Wisdom: You are exceptionally wise.} {#math st @st+1}
#trigger{ Constitution: You are exceptionally healthy.} {#math st @st+1}
#trigger{ Dexterity: You are exceptionally agile.} {#math st @st+1}
#trigger{ Would you like to REROLL or KEEP these attributes?}{{#if (st>3) (keep) (reroll)}




There appears to either be a clear screen between rolls or only the text after the attribute name changes so I think it is not triggering on Would you like to REROLL or KEEP these attributes?


CHARACTER ATTRIBUTES
*******************************************************************************


Strength: You are a nice specimen.
Intelligence: You are very smart.
Wisdom: You are very wise.
Dexterity: You are fairly agile.
Constitution: You are very healthy.
Charisma: You are not too unpleasant to deal with.

Would you like to REROLL or KEEP these attributes?


If you need to see the character creation firsthand go to tempusmud.com 2020

Thanks in advance
Alabaster
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Tue Jun 25, 2002 6:00 pm   
 
Offhand I'd look at:
#trigger {Strength: Your strength is at the human peak!} {#math st @st+1}

Do you need a space infront of Would? I took it out.
#trigger {Would you like to REROLL or KEEP these attributes?} {#CO 71;#if (@st>3) {keep} {reroll}}

I added the colour line white on red, #CO 71, so you can visually see if
it is being triggered upon or not.

Added a space after trigger and the {, took out the space before the attribute
#trigger {Wisdom: You are exceptionally wise.} {#math st @st+1}
#trigger {Constitution: You are exceptionally healthy.} {#math st @st+1}
#trigger {Dexterity: You are exceptionally agile.} {#math st @st+1}

The concept of it looks right though.

Ton Diening
Providing untested answers that tend to be
more complicated than others.
Reply with quote
Alabaster
Beginner


Joined: 25 Jun 2002
Posts: 11

PostPosted: Tue Jun 25, 2002 6:45 pm   
 
Thanks. Tis sad that a simple little @ could have caused me all this strife. I simply forgot the @ in my if statement. Thanks again
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