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

Explode without trigger?

Status
Not open for further replies.
Level 11
Joined
Oct 31, 2010
Messages
1,057
Events

A unit dies

Conditions

Dying unit is equal to a grunt

Actions

Set positionunit = position of dying unit or triggering unit

Set tempgroup = every unit in 200 range of positionunit matching unit is not
equal to triggering unit

pick every unit in tempgroup and do (amount of damage) to picked unit

create a special effect (explosion maybe) on position unit

call destroygroup(udg_tempgroup)

call removelocation(udg_positionunit)


not sure about this but i know they leak, sorry i am new to leaks :3
see this is very easy,one trigger only :3
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
First, don't believe rumors spread without actual and solid evidence, just don't.
Please tell us where does the source you find that using trigger leaks ?

Trigger does not leak, but the application leaks it (Location, Units, etc), but we have methods to counter this leak, what's to afraid ?
 
Level 12
Joined
Sep 11, 2011
Messages
1,176
First, don't believe rumors spread without actual and solid evidence, just don't.
Please tell us where does the source you find that using trigger leaks ?

Trigger does not leak, but the application leaks it (Location, Units, etc), but we have methods to counter this leak, what's to afraid ?

he meant that abilities cause less memory use than triggers, not about leaks.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Ahh sorry to have misread his statement :/
Lol you're afraid that trigger consumes more memory than just using ability ?

It's like you have to eat burger but you're afraid of fats.

EDIT:
Or do you mean the size of the map is larger when use Triggers compared to Object Editor ?
 
Ahh sorry to have misread his statement :/
Lol you're afraid that trigger consumes more memory than just using ability ?

It's like you have to eat burger but you're afraid of fats.

EDIT:
Or do you mean the size of the map is larger when use Triggers compared to Object Editor ?

I mean that using barracks to create a unit will cause less memory use than the trigger "unit finished training" "create unit type based on unit trained" , since the triggers used by warcraft are built in, hardcoded to use near zero memory, which is what I'm asking, will using "unit died" "make effect of kaboom" will use too much memory (as in my map 50 units can die same time)
Edit: added the unmade map so you see what I mean. (sides, i don't think it looks so good)
 

Attachments

  • Third Ninja War v0.03.w3x
    55.3 KB · Views: 44
Status
Not open for further replies.
Top