• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Need a JASS function

Status
Not open for further replies.
Level 5
Joined
Aug 23, 2007
Messages
141
I've just only started using JASS, so you could say I'm noob at this. I just need to know how to remove an event from a trigger if it is possible. You know... what function is used? A spell I'm working on consists of two JASS triggers. The first one adds an event to the second one. But to prevent leaks I think I have to remove the event after the second trigger runs. How do I do this? BTW. How do you also limit a trigger so that it will only read the "recieves damage" event if the damage is from an attack?
 
Last edited:
> I think I have to remove the event after the second trigger runs.

I don't think you need to do that. As far as I know, events do not leak.

> only read the "recieves damage" event if the damage is from an attack?

As far as I know, this is impossible. The only way to do what you want would probably involving writing your own damage detection system, which is a lot of work.
 
Ouch. :P Well is it possible to only read the "receives damage" trigger with particular attack types? (siege, hero, normal, etc.) that way it will only detect damage if the damage source has a Hero, Normal, or piercing attack.
 
Status
Not open for further replies.
Back
Top