• 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.

Small Trigger Question

Status
Not open for further replies.
Level 30
Joined
Sep 30, 2008
Messages
1,460
For a request on my diablo 3 map, I'm adding blood every time a unit is hit.

Basically, I was wondering if this trigger will cause any leaks, as theres going to be a lot fo special effect in use here :D

What I have done:

  • Events
  • Unit - A unit is attacked
  • Actions
  • Special Effect - Create blood effect on triggering unit
  • Wait 0.5 seconds
  • Special Effect - Destroy (last created special effect)
Basically, i was wondering, if the trigger keeps being used more than every 0.5 seconds, will it restart itself without finishing the "destroy special effect"? :)

Thanks!
 
Level 5
Joined
Nov 12, 2007
Messages
134
Well its an item ability and it doesn't have an icon. So i think :p

Edit:
And what do you mean by this:
"can you make specific unit types exempt from the effect?"

I think he means if he can make certain units NOT show blood. I don't think this is possible, though maybe for units with special classification, like Undead, by changing the orb ability's targets.
 
Level 8
Joined
May 21, 2008
Messages
218
Exploits a local global bug so you can use waits in triggers

  • Events
    • Unit - A unit is attacked
    • Actions
    • Special Effect - Create blood effect on triggering unit
    • Wait 0.5 seconds
    • Special Effect - Destroy (last created special effect)
Change to
  • Events
    • Unit - A unit is attacked
    • Actions
    • local effect udg_bloodeffectvar = "string//filename"
    • Special Effect - Create bloodeffectvar on triggering unit
    • Wait 0.5 seconds
    • Special Effect - Destroy (bloodeffectvar)
This will make your trigger use locals and therefore Mui which means you won't even have to worry about waits screwing it up.

Triggers will always perfer locals over globals.
 
Exploits a local global bug so you can use waits in triggers

This will make your trigger use locals and therefore Mui which means you won't even have to worry about waits screwing it up.

Triggers will always perfer locals over globals.

Don't forget, this will work only for ONE variable!

You might want a JASS function to add a temporary special effect, using timers and handle local variables. You may find it here or at the Jass Vault...
 
Status
Not open for further replies.
Top