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
jrobbie4499
Beginner


Joined: 31 Dec 2002
Posts: 10

PostPosted: Sat Jan 04, 2003 10:40 pm   

autoroller problem
 
Here is a sample of text:
Rolled: str [11(0)] int [13] wis [13] dex [15] con [5] cha [15]

Do you want to keep these stats? [Y/N]

Here is what i got for a trigger Pattern:
Rolled: str ~[(%d)~((%d)~)~] int ~[(%d)~] wis ~[(%d)~] dex ~[(%d)~] con ~[(%d)~] cha ~[(%d)~]

Commands:
#IF (%1<17)or(%3<1)or(%4<15)or(%5<18)or(%6<12)or(%7<15) {N} {Y}

Trigger type is set for Pattern.
Trigger On is set for Newline.
Other Options is set for Trigger on Trigger.

Now i posted a thread awhile ago and thought that i had figured it out. Apparently i was wrong. It will roll the stats that i specify above, but it will say Y to either the line after or 2 lines after the correct stats. Is there something i am missing here? Please look over my code and tell me what i am doing wrong. Tell me if you need more information also. And Can someone tell me how i would go about it to at least add in a #Beep so i know when the stats have been rolled. Thanks for helping.
Reply with quote
jrobbie4499
Beginner


Joined: 31 Dec 2002
Posts: 10

PostPosted: Sat Jan 04, 2003 11:03 pm   
 
I figured out how to make it beep. How can i make it beep more than once, like 60 times?
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: Sat Jan 04, 2003 11:04 pm   
 
Your trigger appears perfect to me... it's possible that other triggers might be interfering with it by sending N themselves, however.

From the symptoms you describe, it sounds like something like the following scenario might be happening:

You get a statroll (call it statroll1).
Your autoroll trigger rejects it, and sends an N (call it N1)
Somehow, either you or another trigger sends an N in response to this same statroll (call this spurious N)
N1 causes the MUD to send the next statroll (statroll2) but the spurious N causes this to be rejected outright and the MUD sends statroll3 (assume this is the first acceptable statroll).
Your trigger doesn't know that statroll2 has been rejected and will reject it itself. However, the MUD will interpret this as a rejection of statroll3 and send statroll4. When the trigger accepts statroll3, it actually sends Y in response to statroll4



 - Charbal
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Jan 05, 2003 12:46 am   
 
Sorry, I can't see anything wrong with the autoroller either.

I've never been able to tell any difference between multiple beeps. If you want a longer/more noticeable sound, try #PLAY. Change the path/file to suit your own system/preferences.
#PLAY {C:WindowsMediaMusica Open.wav}

LightBulb
Senior Member
Reply with quote
Trind
Beginner


Joined: 04 Jan 2003
Posts: 12
Location: Sweden

PostPosted: Sun Jan 05, 2003 12:55 am   
 
Try this.

#IF ((%1<17) OR (%3<1) OR (%4<15) OR (%5<18)OR (%6<12) OR (%7<15)) {N} {Y}
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