• 🏆 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] Trigger Help

Status
Not open for further replies.
Level 6
Joined
Dec 26, 2007
Messages
125
Im trying to make a kind of trigger for a lightsaber that i found.
Theres a lightsaber hilt so i also put it into my map.
when a unit picks it up it has the saber hilt so what i wanted is:

a unit uses an item
item being manipulated equals to Lightsaber
Add 35 damages to triggering unit.

The problem is i tried something like this:

  • Lightsaber
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Lightsaber
    • Actions
      • Unit - Add Lightsaber to (Triggering unit)
      • Unit - Change color of (Triggering unit) to Blue
      • Trigger - Turn off (This trigger)
      • Trigger - Turn on Lightsaber2 <gen>
And the second part of trigger is:

  • Lightsaber2
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Lightsaber
    • Actions
      • Unit - Remove Lightsaber from (Triggering unit)
      • Unit - Change color of (Triggering unit) to Blue
      • Trigger - Turn off (This trigger)
      • Trigger - Turn on Lightsaber <gen>

(Note: The lightsaber ability is where the real lightsaber attachment is, and its not the saber hilt)
thats what i tried but when it uses the item the lightsaber attachment comes out and disapear just like that and no damage bonus.
 
Status
Not open for further replies.
Top