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


Joined: 02 Sep 2003
Posts: 3

PostPosted: Wed Sep 03, 2003 12:12 am   

#if is this what i need to make this trigger work
 
here is what i have at this point.

#CLASS {allycis}
#ALIAS fishout {w;sw;e;s;s;e;n;e;n;n;w;climb up;climb up;climb up;climb up;climb up}
#TRIGGER "ally" {You do a belly flop into the Alesian Lake!} {glance;glance;glance;glance;glance;glance;glance;glance;glance;glance;glance;examine allycis}
#COND {You don't see any allycis here.} {w;glance;glance;glance;glance;glance;glance;glance;glance;glance;glance;glance;examine allycis}
#COND {You don't see any allycis here.} {sw;glance;glance;glance;glance;glance;glance;glance;glance;glance;glance;glance;glance;ex allycis}
#COND {You don't see any allycis here.} {e;glance;glance;glance;glance;glance;glance;glance;glance;glance;glance;ex allycis}
#COND {You don't see any allycis here.} {s;glance;glance;glance;glance;glance;glance;glance;glance;glance;glance;ex allycis}
#COND {You don't see any allycis here.} {s;glance;glance;glance;glance;glance;glance;glance;glance;glance;glance;glance;ex allycis}
#COND {You don't see any allycis here.} {e;glance;glance;glance;glance;glance;glance;glance;glance;glance;glance;ex allycis}
#COND {You don't see any allycis here.} {n;glance;glance;glance;glance;glance;glance;glance;glance;glance;glance;ex allycis}
#COND {You don't see any allycis here.} {e;glance;glance;glance;glance;glance;glance;glance;glance;glance;glance;ex allycis}
#COND {You don't see any allycis here.} {n;glance;glance;glance;glance;glance;glance;glance;glance;glance;glance;ex allycis}
#COND {You don't see any allycis here.} {n;glance;glance;glance;glance;glance;glance;glance;glance;glance;glance;ex allycis}
#COND {You don't see any allycis here.} {w;glance;glance;glance;glance;glance;glance;glance;glance;glance;glance;ex allycis}
#COND {You don't see any allycis here.} {climb up;climb up;climb up;climb up;#show NO FISH!;#set state 0}
#TRIGGER {Attack Allycis? It'll be your funeral.} {kill allycis;#STATE ally 0}
#CLASS 0
what i need help with is this last trigger this is the message i get after i examine it

Attack Allycis? It'll be your funeral.
He is unharmed.

2nd message.
Attack Allycis? It'll be your funeral.
He is unharmed.
bears the mark

#TRIGGER {Attack Allycis? It'll be your funeral.} {kill allycis;#STATE ally 0}
i want to leave if it bears a mark and stay and kill it if
it is unharmed and unsigiled
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Sep 03, 2003 12:42 am   
 
Grab the two lines that come after the first one and examine the third to see if it says that it is marked:
#TRIGGER {Attack Allycis? It'll be your funeral.$He is unharmed.$(*)} {#IF ("%1" = "bears the mark") {kill allycis;#STATE ally 0}}
Reply with quote
swiftman12
Newbie


Joined: 02 Sep 2003
Posts: 3

PostPosted: Wed Sep 03, 2003 1:03 am   
 
sorry but your fix didn't do anything
#TRIGGER {Attack Allycis? It'll be your funeral.$He is unharmed.$(*)}
{#IF ("%1" = "bears the mark") {kill allycis;#STATE ally 0}} {allycis}
Attack Allycis? It'll be your funeral.
He is unharmed.
Allycis is carrying:
Allycis bears the mark of Chong
need it to spot the mark first if marked = fish out if unmarked and unharmed then kill it
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Sep 03, 2003 5:17 am   
 
What exactly is the MUD output you see when he bears the mark? What exactly is the MUD output you see when he doesn't bear the mark? Will the MUD output for when he bears the mark always look the same, or is there some part of it that may sometimes change or sometimes not appear at all?

Right now I have two different outputs for the first question:
Attack Allycis? It'll be your funeral.
He is unharmed.
bears the mark

and:
Attack Allycis? It'll be your funeral.
He is unharmed.
Allycis is carrying:
Allycis bears the mark of Chong

So which one is it? The idea for solving the problem is pretty much the same in both cases, but they are not interchangeable.
Reply with quote
swiftman12
Newbie


Joined: 02 Sep 2003
Posts: 3

PostPosted: Wed Sep 03, 2003 11:29 pm   
 
ok sorry, 1 message doesnt have bears the mark

1st message if not sigiled
Attack Allycis? It'll be your funeral.
He is unharmed.
i want to kill it
2nd message
Attack Allycis? It'll be your funeral.
He is unharmed.
bears the mark
i want to enter(fishout) alias
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Sep 04, 2003 1:22 pm   
 
In that case the trigger I posted earlier should work, except I got it the other way around. It should be:
#TRIGGER {Attack Allycis? It'll be your funeral.$He is unharmed.$(*)} {#IF ("%1" = "bears the mark") {fishout} {kill allycis;#STATE ally 0}}

For testing purposes I used this one:
#TRIGGER {Attack Allycis? It'll be your funeral.$He is unharmed.$(*)} {#IF ("%1" = "bears the mark") {#SAY fishout} {#SAY kill him}}

And then used this to test it:
#SH Attack Allycis? It'll be your funeral.
#SH He is unharmed.
#SH some other text
#SH Attack Allycis? It'll be your funeral.
#SH He is unharmed.
#SH bears the mark

and the trigger executed the correct action in each case.
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