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


Joined: 27 Feb 2002
Posts: 9
Location: USA

PostPosted: Wed Feb 27, 2002 4:29 pm   

Auto character creation trigger
 
Could somone please point me in the right direction on how to make a trigger that would reroll a new character until certain values are given?
The txt given by the mud is:

STR: [17] DEX: [16] CON: [13] INT: [10] WIS: [13] CHA: [11]

Reroll? [y/n]:

Thanks In advance
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Feb 27, 2002 4:40 pm   
 
Base on this example:

Trigger:
^STR: ~[(%n)~] DEX: ~[(%n)~] CON: ~[(%n)~] INT: ~[(%n)~] WIS: ~[~] CHA: ~[(%n)~]
Script:
#NOOP Corrected the trigger 11:15pm 27Feb02
#VAR Str %1
#VAR Dex %2
#VAR Con %3
#VAR Int %4
#VAR Wis %5
#VAR Cha %6

Trigger:
^Reroll? ~[y/n~]:
Script
#IF (@Str > 10 && @Dex > 10 && @Con > 10 && @Int > 10 && @Wis > 10 && @Cha > 10) {y} {n}
Options
[x] Prompt [ ] Newline



TonDiening
Beta Upgrading to 6.26

Trigger was incorrectly originally posted as:
^STR: ~[17~] DEX: ~[16~] CON: ~[13~] INT: ~[10~] WIS: ~[13~] CHA: ~[11~]
Reply with quote
Clevix
Newbie


Joined: 27 Feb 2002
Posts: 9
Location: USA

PostPosted: Wed Feb 27, 2002 5:49 pm   
 
Thanks for the responce TomDiening!

I now have 2 triggers
1. starts with ^STR: ~[17~] DEX: ~[16~] CON: ~[13~] INT: ~[10~] WIS: ~[13~] CHA: ~[11~]

and has the #VAR's in the commands section of the zmud window.

2. is the ^Reroll? ~[y/n~]:
with the #IF line in the command window.

when I do this every character I make says "N" to the reroll.
I have tryed changing the < signs to > but that made no difference.

lastly I did change the options on trigger 2 to be a prompt

any ideas on what I did wrong?
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Feb 27, 2002 6:13 pm   
 
No I'm having a slow mind day.

That trigger should be:

^STR: ~[(%n)~] DEX: ~[(%n)~] CON: ~[(%n)~] INT: ~[(%n)~] WIS: ~[(%n)~] CHA: ~[(%n)~]

%n is the pattern for a number

(%n) returns a value in the %#'s.

The first (%n) can be refered to as %1
The second (%n) can be refered to as %2
...

Sorry about that!

TonDiening
Beta Upgrading to 6.26
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