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

[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