|
ToyMage Apprentice
Joined: 01 Sep 2005 Posts: 120
|
Posted: Fri Jul 05, 2019 5:41 pm
Trigger only once for match in list |
Can anyone help?
I want a trigger to cast fireball (area spell) 3 times when I see the following... but when they are 2 or more of them in the room, the trigger cast multiple times of 3 times.
I only want it to cast 3 times, no matter how many matches it found.
A cat is here
A dog is here
A goat is here
anyone know how to do it? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4689 Location: Pensacola, FL, USA
|
Posted: Sat Jul 06, 2019 12:06 am |
simple, give it an ID, then have it turn itself off
Code: |
#TRIGGER "tripleFirball" {* is here} {
#LOOP 3 {fireball}
#T- tripleFireball
} |
Then you just need to turn it back on, either via walking:
#EVENT onRoomEnter {#T+ tripleFireball}
Or by some time delay:
#ALARM "keepFireballing" +30 {#T+ tripleFireball}
The last one can be added to the body of the trigger, it will only keep the trigger turned off for 30 seconds. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
ToyMage Apprentice
Joined: 01 Sep 2005 Posts: 120
|
Posted: Sun Jul 07, 2019 3:16 pm |
ooo.. thanks thanks.. thats a different way of thinking..
|
|
|
|
|
|