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
Davos
Adept


Joined: 30 Jan 2003
Posts: 228
Location: USA

PostPosted: Fri Oct 10, 2003 10:11 am   

Why isnt this working?
 
I have the following setup

#ALIAS ridehome {
@mono = 0
@pickupmono = 0
ih
#temp {Number of objects:} {
#IF (@mono = 0) {'Ride Home} {
get monolith
#wait 250
#IF (@pickupmono = 1) {
#wait 500
ridehome1
} {
%lf
#ECHO *****************
#ECHO ****MONO HERE****
#ECHO *****************
}}}}


#ALIAS ridehome1 {
@mono = 0
@pickupmono = 0
ih
#temp {Number of objects:} {
#IF (@mono = 0) {'Ride Home} {
get monolith
#wait 250
#IF (@pickupmono = 1) {
#wait 500
ridehome
} {
%lf
#ECHO *****************
#ECHO ****MONO HERE****
#ECHO *****************
}}}}


#KEY PGDN {ridehome}

Here is my MUD output

3198h, 2153m ex-ih
"totem48109" a runic totem
"sigil273742" a monolith sigil
Number of objects: 2
3198h, 2153m ex-

Basicly what I want to happen is...If I push PGDN i want it to check for a monolith, If its there I want to pick it up, If its successfull at picking it up (sometimes it wont be) then I want it to restart the alias and do it all again. I will paste the output my mud gives when this alias is actually used.

3198h, 2153m ex-ih
"sigil57074" a key-shaped sigil
"sigil54378" a monolith sigil
Number of objects: 2
get monolith
3198h, 2153m ex-You pick up a monolith sigil.
3198h, 2153m ex-ih
'Ride Home
"sigil57074" a key-shaped sigil
Number of objects: 1
3198h, 2153m ex-
You say, "Ride Home."

In this case It should fire the 'ride home as it did, but if you will notice it did not wait till after the second -Number of Objects:- before it fired. Had there been another monolith in the room besides the one I picked up it would have fired incorrectly, How can I fix this?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Oct 10, 2003 5:55 pm   
 
The objective is to pick up monoliths until there aren't any. So, just keep trying to pick them up until you get an error message. You'll need another trigger for when the monolith is there but you don't pick it up. I don't know the pattern, but it would probably be the one you use for @pickupmono. It just does another 'get monolith' (with a wait beforehand if needed). You might also want one to handle flame-sigiled monoliths.
#AL ridehome {#T+ rh1;#T+ rh2;get monolith}
#TR rh1 {You pick up a monolith sigil} {}
#COND {} {get monolith} {Wait|Param=750}
#TR rh2 {I see no ~"monolith~" to take} {#T- rh1;#T- rh2;'Ride Home}
Reply with quote
Davos
Adept


Joined: 30 Jan 2003
Posts: 228
Location: USA

PostPosted: Fri Oct 10, 2003 6:10 pm   
 
It wont even try to pick up a mono unless there is one there, and flame sigiled monos are the only kind I wouldnt be able to pick up, my issue is on the second run thru of the alias it doesnt wait for the TEMP trigger to fire, the alias in and of itself works right, exept the part I mentioned.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Oct 10, 2003 9:43 pm   
 
If, as it appears, this is for Achaea, then yes you can try to pick up a monolith which isn't there and get the error message I used. And since you won't be able to pick up a flamed monolith, I added a trigger for that. This isn't an add-on to what you already have, it's a complete replacement.

#AL ridehome {#T+ rh1;#T+ rh2;#T+ rh3;get monolith}
#TR rh1 {You pick up a monolith sigil} {}
#COND {} {get monolith} {Wait|Param=750}
#TR rh2 {I see no ~"monolith~" to take} {#T- rh1;#T- rh2;#T- rh3;'Ride Home}
#TR rh3 {You quickly pull your hand back as a flame sigil} {#T- rh1;#T- rh2;#T- rh3;'Ride Home}
Reply with quote
Davos
Adept


Joined: 30 Jan 2003
Posts: 228
Location: USA

PostPosted: Fri Oct 10, 2003 10:33 pm   
 
ok yes I see what your saying now and can work off your suggestion, Thanks again for the help.
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