Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
jotunhammer
Newbie


Joined: 11 Feb 2014
Posts: 7

PostPosted: Tue Feb 11, 2014 7:47 pm   

a trigger and action question
 
Here is my problem...

output from the mud:
one round of damage gives....
Your arm makes a rising motion and a piece of earth
Your arm makes a rising motion and a piece of earth
Your arm makes a rising motion and a piece of earth


and I want it to trigger and cast another spiked earth, but not three.... if I create a trigger that goes off Your arm..." then it will do it three times, but I want it only to do it once per round.

so in basic I want it to trigger on the first while "forgetting" the two or more afterwards

anyone help?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Feb 11, 2014 8:54 pm   
 
Use a variable. You could just use a 2-state multi-state trigger, but since you only provided one line of example text I can't help you with that.
_________________
EDIT: I didn't like my old signature
Reply with quote
jotunhammer
Newbie


Joined: 11 Feb 2014
Posts: 7

PostPosted: Tue Feb 11, 2014 9:52 pm   
 
that is actually 3 lines from the output, that is what it shows...

wait, ill show you a few rounds...

You grasp Saidin, feeling the torrent of the taint.
Your arm makes a rising motion and a piece of earth !!! PUNCTURES A LUNG !!! in a guard!
c 'spitting earth'
Your arm makes a rising motion and a piece of earth !!! PUNCTURES A LUNG !!! in a guard!
c 'spitting earth'
Your arm makes a rising motion and a piece of earth !!! PUNCTURES A LUNG !!! in a guard!
c 'spitting earth'
A guard gets hit with a giant piece of earth!
A guard is bleeding pretty bad.
Spearhawk is in perfect condition.

<4625|4625|11426/11507|41|1863|0> (N)(c)
>
A guard's slash injures you.
Your stab MUTILATES a guard!
A guard is bleeding pretty bad.
Spearhawk is bleeding slightly.

<4612|4625|11422/11507|41|1863|0> (N)(c)
>Your arm makes a rising motion and a piece of earth !!! PUNCTURES A LUNG !!! in a guard!
c 'spitting earth'
Your arm makes a rising motion and a piece of earth !!! PUNCTURES A LUNG !!! in a guard!
c 'spitting earth'
Your arm makes a rising motion and a piece of earth !!! PUNCTURES A LUNG !!! in a guard!
c 'spitting earth'
A guard gets hit with a giant piece of earth!
A guard has blood flowing freely.
Spearhawk is bleeding slightly.

<4612|4625|11347/11507|41|1863|0> (N)(c)
>
A guard's slash misses you.
Your stab misses a guard.
A guard has blood flowing freely.
Spearhawk is bleeding slightly.

<4612|4625|11343/11507|41|1863|0> (N)(c)
>You let out a yell and smite Spearhawk with your mighty strike!
A guard has blood flowing freely.
Spearhawk is bleeding slightly.

<4612|4625|11343/11507|41|1863|0> (N)(c)
>TICK IN 5 SECONDS.
tie all
gr
rel

A guard's slash hits you.
Your stab misses a guard.
A guard has blood flowing freely.
Spearhawk is bleeding slightly.

<4600|4625|11339/11507|41|1863|0> (N)(c)
>Your arm makes a rising motion and a piece of earth !!! PUNCTURES A LUNG !!! in a guard!
c 'spitting earth'
Your arm makes a rising motion and a piece of earth !!! PUNCTURES A LUNG !!! in a guard!
c 'spitting earth'
Your arm makes a rising motion and a piece of earth !!! PUNCTURES A LUNG !!! in a guard!
c 'spitting earth'
A guard gets hit with a giant piece of earth!
A guard has blood flowing freely.
Spearhawk is bleeding slightly.

<4600|4625|11264/11507|41|1863|0> (N)(c)
>
A guard's slash wounds you.
Your stab DISMEMBERS a guard!
You have become better at meditation!
A guard has blood flowing freely.
Reply with quote
jotunhammer
Newbie


Joined: 11 Feb 2014
Posts: 7

PostPosted: Tue Feb 11, 2014 9:53 pm   
 
the c ┬┤spitting earth'
is my trigger I have now, but it spams to much
Reply with quote
hadar
Apprentice


Joined: 30 Aug 2009
Posts: 198
Location: my apt, in california

PostPosted: Wed Feb 12, 2014 2:50 pm   
 
Code:

<trigger priority="73360" id="7336">
  <pattern>^Your arm makes a rising motion</pattern>
  <trigger type="Within Lines" param="4">
    <pattern>^* gets hit with a giant piece of earth! </pattern>
    <value>c 'spitting earth'</value>
  </trigger>
</trigger>


im sure there is a better way for the second pattern but this "should" work for now
_________________
if you build it they will come, assuming that they have not already come to build it
Aardwolf Bootcamp
My youtube channel
Reply with quote
jotunhammer
Newbie


Joined: 11 Feb 2014
Posts: 7

PostPosted: Wed Feb 12, 2014 3:44 pm   
 
I remember someone said a long time ago something with a trigger and then it has a -1 or something like that in order for it to not trigger on more than the first line
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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