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


Joined: 20 Jul 2004
Posts: 268

PostPosted: Fri Oct 22, 2004 3:56 am   

#trigger and #cond Question
 
Just when I thought I could be smart I wind up being dumb all over again.
I want to run some deliveries on Ancient Anguish, so I set up a few triggers with a condition:
Quote:

#class {CX}
#TRIGGER {Lou announces: Delivery of (*) Goblin(*)} {accept}
#COND {Lou says: The job is yours, kid, make me look good!} {#T- CX;.en13wnw;nw;.2w;nw;sw;.wn;enter;deliver;out;.se;ne;se;.2e;se;.es13esw}
#TRIGGER {Lou announces: Delivery of (*) paperboy(*)} {accept}
#COND {Lou says: The job is yours, kid, make me look good!} {#T- CX;.en5w;deliver;.5esw}
#TRIGGER {Lou announces: Delivery of (*) magic(*)} {accept}
#COND {Lou says: The job is yours, kid, make me look good!} {#T- CX;.en7w2se;deliver;.w2n7esw}
#class 0

#TRIGGER {You give the package to} {#T+ CX}

Lou announces: Delivery of messages to the Goblin Alchemist in Ravel!
accept
Lou announces: I need it done in 21 minutes (by 05:26 pm)!
Lou announces: The base pay is 91 coins!
Lou says: You get the hell outta here!

Lou announces: Delivery of raw reagents to the magic shop in Tantallon!
accept
accept
Lou announces: I need it done in 32 minutes (by 05:39 pm)!
Lou announces: The base pay is 49 coins!
Lou says: You get the hell outta here!

Lou announces: Delivery of small parcels to the paperboy!
accept
Lou announces: I need it done in 18 minutes (by 05:30 pm)!
Lou announces: The base pay is 34 coins!
Lou says: The job is yours, kid, make me look good!
Lou hands you a CX package of small parcels.
e
n
w
w
w
w
w
w
w
s
s
e
deliver
And with that speedwalk i am now in the magic shop, not the paperboy....
I'm not even sure why it did 2 accepts on the magic shop mission in the 1st place, and I sure dont have any clue why i wound up in the magic shop either.
I had a thought about making conditions based on the rest of what Lou says before giving me the package, but at times Lou will give a long worded assignment that gets wrapped onto another line like this:
Code:
Lou announces: Delivery of small parcels to the constabulary in the
               northeastern village!
Lou announces: I need it done in 20 minutes (by 05:45 pm)!
Lou announces: The base pay is 96 coins!
and that makes the multi-cond's useless. (i think.....)
The reason i have the #T- CX in there is to turn off the folder because sometimes Lou will call out the next delivery before I have even started running. Which is also the basis for me putting in the condition so as not to accept another mission and run that as well for nothing.

And I noticed this when i exported the triggers:
Quote:
#TRIGGER {Lou announces: Delivery of (*) Goblin(*)} {accept} "CX"
#COND {Lou says: The job is yours, kid, make me look good!} {#T- CX;.en13wnw;nw;.2w;nw;sw;.wn;enter;deliver;out;.se;ne;se;.2e;se;.es13esw}
#TRIGGER {Lou announces: Delivery of (*) paperboy(*)} {accept} "CX"
#COND {Lou says: The job is yours, kid, make me look good!} {#T- CX;.en5w;deliver;.5esw}
#TRIGGER {Lou announces: Delivery of (*) magic(*)} {accept} "CX"
#COND {Lou says: The job is yours, kid, make me look good!} {#T- CX;.en7w2se;deliver;.w2n7esw}
It added a "CX" after each trigger.

Also, when looking at settings, the #COND is now shown rather than the #TRIGGER
And under States for those that look wrong, the box next to the 0 is green and the box next to the 1 is red. (Wondering is something like this is the cause of the magic shop/paperboy switcheroo)
I can just as easily make a trigger to do an accept and make the delivery everytime and not worry about actually GETTING the package, but don't see the reason to spam in stuff for nothing.
Any help, as always, is much appreciated.
Reply with quote
DeathDealer
Adept


Joined: 20 Jul 2004
Posts: 268

PostPosted: Tue Oct 26, 2004 4:48 pm   
 
*cough* innocent bump Rolling Eyes
_________________
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Oct 27, 2004 9:29 pm   
 
The "CX" donates the class. But for some reason it doesn't work on command line entry? Someone else wanna verify for me.
hjkl are the speedwalk chars for diags nw ne sw se
Named triggers are always better.
Setting the params options are a good idea

#CLASS CX
#TRIGGER "goblin_deliv" {Lou announces: Delivery of * Goblin*} {accept}
#COND {Lou says: The job is yours, kid, make me look good!} {
#T- CX
.en13wnwh2whkwn
enter
deliver
out
.sejl2eles13esw
} {within|param=8}
#CLASS 0
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
fightcancer
Beginner


Joined: 01 Nov 2004
Posts: 17

PostPosted: Wed Nov 03, 2004 10:26 pm   
 
Are we allowed to stack conditions like this?

Code:
#TR {^Obvious exits:$} {ClearDir;PickDir;#ALARM "a1" +%random(5,9) {@ChosenDir}} "" {notrig}
#COND {^North  - *} {#ADDITEM PossDir North;#ADD DirCount 1} {within|Param=1}
#COND {^East   - *} {#ADDITEM PossDir East;#ADD DirCount 1} {within|Param=2}
#COND {^South  - *} {#ADDITEM PossDir South;#ADD DirCount 1} {within|Param=3}
#COND {^West   - *} {#ADDITEM PossDir West;#ADD DirCount 1} {within|Param=4}
Reply with quote
fightcancer
Beginner


Joined: 01 Nov 2004
Posts: 17

PostPosted: Thu Nov 04, 2004 10:36 pm   
 
FYI, I tested, and it only works in rooms that have an exit to the north. I'm not sure why it works this way, but it does.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Fri Nov 05, 2004 3:20 am   
 
Please post your own topic instead of hijacking someone elses
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
fightcancer
Beginner


Joined: 01 Nov 2004
Posts: 17

PostPosted: Fri Nov 05, 2004 6:04 am   
 
My apologies. New thread here:
http://forums.zuggsoft.com/phpbb/viewtopic.php?p=73534#73534
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