• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Need Help with GUI-Trigger

Status
Not open for further replies.
Level 2
Joined
Jun 11, 2009
Messages
21
I want to make a GUI Trigger, which activates, when a unit of a special unit type has less then 200 hp and gets attacked. Then a spell should be casted on it. Could s.o. tell me if it's possible to make sth.like this, and if it is possible, how to make it?
thanks.
 
  • Events
    • Unit - A unit is attacked
  • Conditions
    • ((Unit-type of (Attacked unit)) Equal to X
    • (Life of (Attacked unit)) Less than or Equal to 200
  • Actions
    • Set Point1 = (Position of (Attacked unit))
    • Unit - Create 1 Dummy for (Owner of (Attacked unit)) at Point1 facing defualt building degrees
    • Unit - Order (Last created unit) to (The order of your spell) (Attacked unit)
    • Unit - Add a 2.00 second generic expiration timer to (Last created unit)
    • Custom script: call RemoveLocation (udg_Point1)
Reference for new map makers: http://www.hiveworkshop.com/forums/tutorials.php
Welcome to the Hiveworkshop.com ;)
 
Status
Not open for further replies.
Top