• 🏆 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!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!

Triggered Chaos Morph Ability

Status
Not open for further replies.
Level 7
Joined
Jun 8, 2010
Messages
283
Okay this is by far the most basic trigger I cannot seem to get to work.

When a unit uses the item, they will morph into another unit, then when using the item once again, they will morph into their original unit form.

  • chaos m16
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to M16 Assault Rifle
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Hero manipulating item)) Equal to TUCU Marine (M16)
        • Then - Actions
          • Unit - Add Chaos (Melee) to (Hero manipulating item)
        • Else - Actions
          • Unit - Add Chaos (m16) to (Hero manipulating item)
I have two abilities for the Chaos. Both are an exact copy of the Chaos ability however the -Data New Unit Type field are different.
For Chaos (m16) the new unit type field is TUCU Marine M16
For Chaos (melee) the new unit type field is TUCU Marine Melee

I really cannot seem to get this working and I do not know why. The most noob mistake I suppose..

Reward: +Rep
 
  • chaos m16
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to M16 Assault Rifle
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Hero manipulating item)) Equal to TUCU Marine (M16)
        • Then - Actions
          • Unit - Add Chaos (m16) to (Hero manipulating item)
        • Else - Actions
          • Unit - Add Chaos (Melee) to (Hero manipulating item)
for a start, you had the functions the wrong way round xP
 
Level 7
Joined
Jun 8, 2010
Messages
283
The trigger order was right, items need to have an ability to be consumed/used otherwise the
  • Unit - A unit Uses an item
trigger will not be met as the unit has not used the item's ability.

+Rep for you Tank-Commander nevertheless :)
 
Status
Not open for further replies.
Top