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


Joined: 16 Aug 2002
Posts: 6
Location: Austria

PostPosted: Tue May 20, 2003 6:00 pm   

little trigger
 
i have a mud output like this:

Your stats--> Str 20 Int 12 Wis 18 Dex 18 Con 15 Cha 12

if i hit e now, the stats will be rerolled. so generally, it would be easy to roll the desired stats by setting simple triggers, but the problem is that the statwords Str, Int, Wis with related numbers appear more than once on every screen.
So if i'd just check for "Dex 19" it could be printed twice or even more times and the trigger therefor releases this often, which is no good.

what i want to do is set a trigger that does like the following:

Your stats--> Str 20 Int %% Wis %% Dex %% Con %% Cha 19

where %% is for *ANY NUMBER*

dunno how to set it though.

does someone know this little trick and may share it with me pls :)
Reply with quote
tonky
Newbie


Joined: 16 Aug 2002
Posts: 6
Location: Austria

PostPosted: Tue May 20, 2003 6:03 pm   
 
forgot some explanation:

the way i want to set this trigger would work, *because* the stats that are relevant for me *only* come in the line that starts with "Your stats-->"
Reply with quote
tonky
Newbie


Joined: 16 Aug 2002
Posts: 6
Location: Austria

PostPosted: Tue May 20, 2003 6:09 pm   
 
most compressed version of my question:

what is the character for "any char", the character replacement to set in triggers?
Reply with quote
tonky
Newbie


Joined: 16 Aug 2002
Posts: 6
Location: Austria

PostPosted: Tue May 20, 2003 7:43 pm   
 
weeeh i just found out that what i wanted to know wouldn't help me anyway.

my questions has therefor changed,

i want to check if for example Str 18 is in the SAME line with Your stats--> and only then release the trigger. is that possible somehow?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue May 20, 2003 7:54 pm   
 
#TR {Your stats~-~-~> Str (%d) %s Int (%d) %s Wis (%d) %s Dex (%d) %s Con (%d) %s Cha (%d)} {#IF ((%1 > 17) AND (%2 > 13) AND (%3 > 9) AND (%4 > 18) AND (%5 > 1) AND (%6 > 2)) {do whatever's appropriate for a good roll} {do whatever's necessary to reroll}}

%1 = Str
%2 = Int
%3 = Wis
%4 = Dex
%5 = Con
%6 = Cha

Change the numbers to suit yourself, I don't expect anyone would actually find a 2 Con acceptable. Replace the commands with real ones.

LightBulb
Advanced Member
Reply with quote
Lain
Novice


Joined: 26 Oct 2001
Posts: 38

PostPosted: Tue May 20, 2003 7:58 pm   
 
%d is for matching any number of digits (0-9)

Your stats--> Str (%d) Int (%d) Wis (%d) Dex (%d) Con (%d) Cha (%d)

You could use the #IF command on the stats you want to keep. For example, if you wanted to stop rerolling when you get Strength 20 Dexterity 20 and Charisma 20:

#IF (%1="20") {#IF (%4="20") {#IF (%6="20") {#SH Stats found.} {reroll}} {reroll}} {reroll}

Lain
Reply with quote
tonky
Newbie


Joined: 16 Aug 2002
Posts: 6
Location: Austria

PostPosted: Tue May 20, 2003 9:08 pm   
 
Well yes!

This is exactly what i'm looking for,
although in the meantime i created a workaround
with a tick timer that rerolls automatically,
and the trigger with my desired stats would react in time,
leaving the char creation screen so that the tick timer won't harm no more.


This is unattended, this is triggering, and i feel a little guilty.

But hey what to do with all this technology around! ;)

Thanks a lot for your help!

Byes!
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