• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

damage type

Status
Not open for further replies.
Level 14
Joined
Nov 4, 2006
Messages
1,241
Hi guys, i have a little problem, i have got units in my map which acquire items which attack units next to them, i used pheonix fire for this, the problem is that i can't change the damage typ of pheonix fire, but i need the reduction effect. i have 3 different damage types, i was thinking about doing it with triggers but i'm not 100% sure about an easy way to do that. and it needs to be sth general, cause i have many units using this and it would be to much work doing it for every single unit

Edit: i have another question, is there an event like "a unit is unloaded" ? and if not what can i use instead
 
Last edited:
Level 7
Joined
Mar 12, 2006
Messages
407
there is no unload event :(
but you can still workaround that problem depending on what u want to check

Do you want to detect burrows/transports filled with units or do you want to count units which are loaded in a transport ? Tell me what you want to do and i can tell you how you do it ;)
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
i want the transporting unit to do sth when a unit is unloaded (a single unit, not all), i already tried using the enter map event combined with unit is in range of transporting unit, but this is a problem if a unit is trained somewhere and and a transporting unit is next to it (which might happen very easily)
 
Level 7
Joined
Mar 12, 2006
Messages
407
  • release transported units
    • Event
      • Unit - A unit receives Order without target
    • Condition
      • (Unit-type of (Ordered unit)) equals 'Transporter'
      • (Issued order) equals (Order(standdown))
      • Action
        • Unit - Issue (Ordered Unit) to do whatever you want
  • Unload unit from transport
    • Event
      • Unit - A unit receives Order to target an object
    • Condition
      • And - All (Conditions) are true
        • Conditions
          • (Issued order) equals (Order(unload))
          • (Unit-type of (Ordered unit)) equals 'Transporter'
    • Actions
      • Unit - Order (Ordered unit) to do anything
Trigger 1 gets the transport if u hit unload all
Trigger 2 gets it when u unload by clicking on pictures in the middle bot window

My WE isnt english so i freely translated it... feel free to ask ;)
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
sure, i used the orc leave burrow ability
  • Events
    • Unit - a unit ends effect of an ability
  • Condtions
    • ability being cast equal to <leave burrow>
  • Actions
    • Unit - order triggering unit to do sth
in my case it was easier cause i already made the ability and, to tell the truth i don't really understand your first trigger
 
Level 7
Joined
Mar 12, 2006
Messages
407
actually ive been looking for a way to detect unloading to.. im trying to regenerate units inside a builing over time. About the Unload being cast thing.. if you click the unit where dmg is its also unloaded.. without the spell actually being cast

Read post #6 in this thread


@UreDe4D
You gotta go the hard way and trigger it all, im afraid
Maybe u can use kind of a dummy phoenix fire which deals one dmg to shoot a trigger that adds the damagetype in your desired amount
so you dont have to do the whole aiming n stuff via triggers
 
Status
Not open for further replies.
Top