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: Tue Dec 31, 2002 8:34 am   

Autoroller works partially
 
Here's the problem. I have a autoroller that works to a degree. My problem is i can't seem to get it to roll my stats then answer yes for ansi color, hit return, then i am on the mud and go south, east, north and rent.
It will do all the above but it will roll 2 more times and except the wrong stats instead of the correct ones. Here is my code.
Pattern:
Rolled: str ~[(%d)~((%d)~)~] int ~[(%d)~] wis ~[(%d)~] dex ~[(%d)~] con ~[(%d)~] cha ~[(%d)~]

Commands:
#IF (%1<15)or(%3<14)or(%4<14)or(%5<17)or(%6<10)or(%7<1) {N} {Y
y
y
s
e
n
rent}

If i remove the second half of the code then it will answer Yes and sit there and wait for me to hit yes for ansi and then hit return(enter) and then rent. I do not sit here and watch the darn thing so i want something to rent after it rolls. Please help
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Dec 31, 2002 1:05 pm   
 
Does the trigger have the Trigger on Prompt option checked?

Kjata
Reply with quote
jrobbie4499
Beginner


Joined: 31 Dec 2002
Posts: 10

PostPosted: Tue Dec 31, 2002 3:46 pm   
 
It has trigger on prompt and on newline checked.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Dec 31, 2002 6:22 pm   
 
quote:

#IF (%1<15)or(%3<14)or(%4<14)or(%5<17)or(%6<10)or(%7<1) {N} {Y
y
y
s
e
n
rent}



Seems like you're missing a set of parentheses surrounding all those OR conditions.

li'l shmoe of Dragon's Gate MUD
Reply with quote
jrobbie4499
Beginner


Joined: 31 Dec 2002
Posts: 10

PostPosted: Tue Dec 31, 2002 7:14 pm   
 
So it should look like this MattLofton?

Commands:
#IF ((%1<15)or(%3<14)or(%4<14)or(%5<17)or(%6<10)or(%7<1)) {N} {Y
y
y
s
e
n
rent}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Dec 31, 2002 7:18 pm   
 
Since you don't have the actual question (accept these stats?) in your trigger phrase, you should probably be using Trigger on Newline.

Trigger on Newline is used when you expect the MUD to go to the next line after sending the phrase.
Trigger on Prompt is used when you expect the MUD to stay on the same line as the phrase while waiting for the next thing that happens.
You should usually use one or the other, not both.

LightBulb
Senior Member
Reply with quote
jrobbie4499
Beginner


Joined: 31 Dec 2002
Posts: 10

PostPosted: Thu Jan 02, 2003 3:11 am   
 
I've switched to what you said Lightbulb but it still does not work. Is there a way to simplify what i am trying to do?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Jan 02, 2003 3:43 am   
 
According to your original post, the autoroller is working but you have a problem with ansi/moving/renting. Depending on where it stops doing what you want, you might just need to add a #CR to the commands. All we can do is guess, you can actually look at what happens and see where the problem is, and what needs to be done to fix it.

LightBulb
Senior Member
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