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
Darvenger
Newbie


Joined: 13 Aug 2002
Posts: 7

PostPosted: Thu Aug 22, 2002 12:57 am   

Need help with a autoroller.
 
This autoroller Should work... prior to creation you set the min stats with the setup command.... hwoever whenever it reaches the set minimum roll it adds another roll in and you miss the stat it is Suposed to stop at.. hopefully one of you guys can help me with this... Quickly as possible... im going on a trip soon... thank you for your time.

#CLASS {AutoRoller}
#ALIAS Do_Add
#add Count 1
#ALIAS Do_Clear
#Var Count 0
#ALIAS Setup {#prompt Str_Desired {Input Minimum Desired Strength Roll:};#prompt Lck_Desired {Input Minimum Desired Luck Roll:};#prompt Dex_Desired {Input Minimum Desired Dexterity Roll:};#prompt Con_Desired {Input Minimum Desired Constitution Roll:};#prompt Wis_Desired {Input Minimum Desired Wisdom Roll:};#prompt Int_Desired {Input Minimum Desired Intelligence Roll:};#prompt Cha_Desired {Input Minimum Desired Charisma Roll:};Do_Clear}
#VAR Str_Desired {10}
#VAR Lck_Desired {10}
#VAR Dex_Desired {10}
#VAR Con_Desired {10}
#VAR Wis_Desired {10}
#VAR Int_Desired {10}
#VAR Cha_Desired {10}
#VAR Str_Roll {10}
#VAR Dex_Roll {10}
#VAR Int_Roll {10}
#VAR Agi_Roll {10}
#VAR Wis_Roll {10}
#VAR Con_Roll {10}
#VAR Cha_Roll {10}
#VAR Count {0}
#TRIGGER {Strength:%s(%d)} {#Var Str_Roll %1;%if( @Str_Roll>=@Str_Desired, Do_Add)}
#TRIGGER {Dexterity:%s(%d)} {#Var Dex_Roll %1;%if( @Dex_Roll>=@Dex_Desired, Do_Add)}
#TRIGGER {Constitution:%s(%d)} {#Var Con_Roll %1;%if( @Con_Roll>=@Con_Desired, Do_Add)}
#TRIGGER {Intelligence:%s(%d)} {#Var Int_Roll %1;%if( @Int_Roll>=@Int_Desired, Do_Add)}
#TRIGGER {Wisdom:%s(%d)} {#Var Wis_Roll %1;%if( @Wis_Roll>=@Wis_Desired, Do_Add)}
#TRIGGER {Charisma:%s(%d)} {#Var Cha_Roll %1;%if( @Cha_Roll>=@Cha_Desired, Do_Add)}
#TRIGGER {Luck:%s(%d)} {#Var Lck_Roll %1;%if( @Lck_Roll>=@Lck_Desired, Do_Add)}
#TRIGGER {Keep?} {#if (@count<7) {Do_Clear;N} {#beep;Do_Clear;#mess {The Character Rolled Matched Your Minimum Desired Statistics}}}
#CLASS 0

Darvenger
Reply with quote
Darvenger
Newbie


Joined: 13 Aug 2002
Posts: 7

PostPosted: Thu Aug 22, 2002 12:58 am   
 
Oh almoust forgot... Im using version 6.16
of Zmud
Reply with quote
Darvenger
Newbie


Joined: 13 Aug 2002
Posts: 7

PostPosted: Thu Aug 22, 2002 2:26 am   
 
Hmm... Still stuck on this problem... Kjata ... Lightbulb? ... Anyone? .. ::cry:: ::grin:: Well... i will try to wait now...
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Aug 22, 2002 3:00 am   
 
My guess is that the last trigger "Keep?" is not set as a prompt trigger. Make sure that Trigger On Prompt is selected in the Options tab for that trigger.

Kjata
Reply with quote
Darvenger
Newbie


Joined: 13 Aug 2002
Posts: 7

PostPosted: Thu Aug 22, 2002 3:42 am   
 
Indeed..that was it... THank you for your time... i can't believe i overlooked that... man... ... thanks very much }:)

Darvenger
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