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


Joined: 17 May 2002
Posts: 7

PostPosted: Wed May 22, 2002 7:41 pm   

Auto roller request
 
I have tried to create one of my own and I have tried to use examples on these boards but I have been unsuccessful so far. Any help is appreciated

The format text on the mud is

Str: 10 Int: 13 Wis: 8 Dex: 13 Con: 11
Type 'keep' to keep stats, or hit enter to reroll!


Can you give me an example if say I wanted to only accept it if all the stats were at least 15. As you can see, if you do not want to accept the stats you just hit Enter or you type in the word keep to keep them

Thank you in advance!
Reply with quote
dacheeba
Adept


Joined: 29 Oct 2001
Posts: 250

PostPosted: Wed May 22, 2002 8:13 pm   
 
#TR {Str: &rollstr Int: &rollint Wis: &rollwis Dex: &rolldex Con: &rollcon$Type 'keep' to keep stats, or hit enter to reroll!} {#IF (@rollstr>=15 AND @rollint>=15 AND @rollwis>=15 AND @rolldex>=15 AND @rollcon>=15) {keep} {#CR}

Change numbers according to how well you want your stats. If this doesnt work, try putting {} around all the '&roll<stat>''s IE:

#TR {Str: (&rollstr) Int: (&rollint) Wis: (&rollwis) Dex: (&rolldex) Con: (&rollcon)$Type 'keep' to keep stats, or hit enter to reroll!} {#IF (@rollstr>=15 AND @rollint>=15 AND @rollwis>=15 AND @rolldex>=15 AND @rollcon>=15) {keep} {#CR}

Or put " " around the numbers that you desire.

Hope this helps(and works :P)
Reply with quote
croman
Newbie


Joined: 17 May 2002
Posts: 7

PostPosted: Wed May 22, 2002 8:19 pm   
 
I tried both ways and it does not do anything, do I need to create some sort of variables? Also when I tried to look at the trigger it had created, the value just shows
{#IF

Thanks
Reply with quote
Gandorf
Novice


Joined: 28 Oct 2000
Posts: 38
Location: Sweden

PostPosted: Wed May 22, 2002 8:56 pm   
 
it might be becuse it should be like this in the end. {keep} {#CR}} the last "}" was missing


Gandorf
-------------------------
Out in the night they laugh about me and my knowledge
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed May 22, 2002 9:59 pm   
 
When rolling stats, the questions are usually like prompts. That is, they don't have an end-of-line character. What this means is that your trigger will wait until it gets something that does have an end-of-line before it works.

The simplest way around this, for autorollers, is to trigger off the roll without waiting for the question. I've modified dacheeba's trigger to this form and simplified it slightly.

TR {Str: (%d) Int: (%d) Wis: (%d) Dex: (%d) Con: (%d)} {#IF (%1>14 AND %2>14 AND %3>14 AND %4>14 AND %5>14) {keep} {#CR}}



LightBulb
Vague questions get vague answers
Reply with quote
croman
Newbie


Joined: 17 May 2002
Posts: 7

PostPosted: Wed May 22, 2002 10:05 pm   
 
I was able to get them both to work!

Thank you very much!!!
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