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


Joined: 22 Nov 2007
Posts: 6

PostPosted: Wed Dec 26, 2007 3:22 am   

Trigger when line is not displayed on a room
 
When i enter my "guardian" room, if she see me i get a string in the next line after the long of the mob.
the PK's sometines blind my guardian so they can kill me, if the guardian is blinded she doesn't say anything..
so...i want a trigger or something to automatic cure blindness her when i dont get the greeting line...

p.d: i use the mapper too, so maybe a room script may work

Las Puertas del Templo --> Roomname
[Salidas: norte (sur)] -->exits line
La musica te ha atraido hacia un portal enrejado, a traves de la verja puedes
observar un pequeño sendero que se dirije sinuosamente hacia donde los mas
diestros maestros LuTHieRS forjaron sus habilidades con gran entrega dedicación
y paciencia.Pero LuTHieR solo hay uno! Y para encargarse de que nadie lo ponga
en duda, por aqui suele avitar la digamos "pequeña" mascota del LuThi... Si
pensabas que era un charco lo que pisabas tenias razon, pero de las babas que
le caen a Gala cuando huele carne fresca....
(Mag) Aqui hay un tallo magico. --> object (water fountain)
(Bla) Gala esta por aqui buscando a sus cachorros. --> mob, the guardian.
Gala la guardiana te confunde con uno de sus cachorrillos.. mejor no la contradigas. --> Greeting line to me when she see me entering.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Wed Dec 26, 2007 3:30 am   
 
A multistate trigger perhaps?

#trig {~(Bla~) Gala esta por aqui buscando a sus cachorros.} {}
#cond {*} {#if (!%match(%line,"Gala la guardiana te confunde con uno de sus cachorrillos.. mejor no la contradigas.")) {cure poison}}
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
jmmq
Newbie


Joined: 22 Nov 2007
Posts: 6

PostPosted: Wed Dec 26, 2007 3:36 am   
 
what does the %line ? i cant find it in the help file
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Dec 26, 2007 4:15 am   
 
%line is a predefined system variable that represents the last received line of text. I think the functionality was changed so that this variable is much more dependable, but in ZMud the variable could change before the initial trigger finished processing and thus the code in that trigger might be trying to operate on a line other than what was intended.

It's basically a version of %0 now.
_________________
EDIT: I didn't like my old signature
Reply with quote
Arzoc
Beginner


Joined: 07 Jan 2008
Posts: 18

PostPosted: Tue Jan 08, 2008 8:27 pm   
 
Could anyone give me a link or a summary of where to find those %* thingies? Because it seems they are really important and I need to know more about 'em.
Thanks!
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Tue Jan 08, 2008 8:32 pm   
 
Predef
_________________
Taz :)
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