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


Joined: 29 Sep 2003
Posts: 3
Location: USA

PostPosted: Mon Sep 29, 2003 11:44 pm   

Trigger setup
 
I’m trying to roll a character and setup a trigger so I don’t have to hit enter every time I roll. Here’s what comes from the mud.

Generating re-roll!
These are the random stats generated for your character. Are they acceptable?
Intelligence : 20
Constitution : 15
Strength : 9
Dexterity : 10
Wisdom : 10

Entering ‘q’ or ‘quit’ will exit rearrange without saving.
Entering ‘y’ will save this roll.
Pressing any other key, or <enter> by itself will cause a re-roll.

Can you help me to configure a trigger that will allow the re-roll, but enter a “Y” when I get these results:

Generating re-roll!
These are the random stats generated for your character. Are they acceptable?
Intelligence : 20
Constitution : 20
Strength : 18
Dexterity : 16
Wisdom : (anything)

Please help, I’ve been rolling for two days now and I know there has to be an easier way.

Thanks, Sylence
Reply with quote
jolopez
Novice


Joined: 31 May 2003
Posts: 49

PostPosted: Tue Sep 30, 2003 1:51 am   
 
there would be another solution with multi state trigger but this is the thing i think

trigger
Intelligence: (&int)
trigger:
Constitution: (&con)
trigger
Strength: (&str)
Trigger:
Dexterity: (&dex)
Trigger:
Wisdom: (&wis)

with the last value you have (in this case with wisdom) in value you must put
#if ((int == 20) & (con==20) & (str==18) & (dex==16)) {y} {k}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Sep 30, 2003 4:43 am   
 
Unfortunately, that won't quite work.
There's a space on both sides of the :. This typically indicates that the entire table is aligned, so there may actually be several spaces.
int, con, str, dex, and wis are strings so they will never be equal to numbers. @int, @con, @str, @dex, and @wis are variables and might be.
Sylence is probably trying to set minimum values rather than exact ones.

Working version:
Pattern:
Intelligence * (%d)
Value:
#VAR Int %1

Pattern:
Constitution * (%d)
Value:
#VAR Con %1

Pattern:
Strength * (%d)
Value:
#VAR Str %1

Pattern:
Dexterity * (%d)
Value:
#VAR Dex %1

Pattern:
Wisdom * (%d)
Value:
#VAR Wis %1

Pattern:
Entering 'q'
Value:
#IF ((@Int > 19) AND (@Con > 19) AND (@Str > 17) AND (@Dex > 15)) {y} {n}

Or, for easy entry at the Command Line:
#TR {Intelligence * (%d)} {#VAR Int %1}
#TR {Constitution * (%d)} {#VAR Con %1}
#TR {Strength * (%d)} {#VAR Str %1}
#TR {Dexterity * (%d)} {#VAR Dex %1}
#TR {Wisdom * (%d)} {#VAR Wis %1}
#TR {Entering 'q'} {#IF ((@Int > 19) AND (@Con > 19) AND (@Str > 17) AND (@Dex > 15)) {y} {n}}
Reply with quote
Sylence
Newbie


Joined: 29 Sep 2003
Posts: 3
Location: USA

PostPosted: Wed Oct 01, 2003 7:23 pm   
 
Awesome!

[8D]

It's working great! Thanks for the help! I was still rolling by hitting enter. You don't know the pain in the tail that is (then again you probably do). I really appriciate the help and time you took to answer my post.

With deep thanks,

Sylence
Reply with quote
Backu
Novice


Joined: 24 Feb 2003
Posts: 36
Location: USA

PostPosted: Thu Oct 02, 2003 4:32 am   
 
Hrm... looks like Realms of the Dragon to me, in which case, yes, the Stat table is aligned, and the stats s/he is looking for will not happen (20/18/16/14/12 being max)
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