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

Event Problem

Status
Not open for further replies.
Level 14
Joined
Jul 12, 2011
Messages
1,371
Hell o every one!
I'm making a spell in which, when a unit's life becomes less than 35% he gains 5 armor and when he overpasses 35% he looses the bonus armor.
My problem is that I can't find the correct event to put on the trigger script.
I know that there is a Life somewhere in the events section but it need to specify the unit.
Please help!
 
Level 14
Joined
Jul 12, 2011
Messages
1,371
Sadly the trigger is not working......
  • Wind Protection
    • Events
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to The Ruthless
    • Actions
      • Unit - Add Armor Bonus for Ruthless (+5) to (Triggering unit)
      • Special Effect - Create a special effect attached to the chest of (Triggering unit) using war3mapImported\Wind[1].mdx
      • Set WindProtectionVar01 = (Last created special effect)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of (Triggering unit)) Greater than or equal to ((Max life of (Triggering unit)) x 0.36)
        • Then - Actions
          • Special Effect - Destroy WindProtectionVar01
          • Unit - Remove Armor Bonus for Ruthless (+5) from (Triggering unit)
        • Else - Actions
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
Sadly the trigger is not working......
  • Wind Protection
    • Events
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to The Ruthless
    • Actions
      • Unit - Add Armor Bonus for Ruthless (+5) to (Triggering unit)
      • Special Effect - Create a special effect attached to the chest of (Triggering unit) using war3mapImported\Wind[1].mdx
      • Set WindProtectionVar01 = (Last created special effect)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of (Triggering unit)) Greater than or equal to ((Max life of (Triggering unit)) x 0.36)
        • Then - Actions
          • Special Effect - Destroy WindProtectionVar01
          • Unit - Remove Armor Bonus for Ruthless (+5) from (Triggering unit)
        • Else - Actions

where u added the event?
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
In another trigger
  • Wind Protection Event
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Trigger - Add to Wind Protection <gen> the event (Unit - (Triggering unit)'s life becomes Less than ((Max life of (Triggering unit)) x 0.35))

lol, thats why dont work, trigger unit work ONLY with correct events (when unit doing something in event, like casting, attacking, dieing etc) but dont exist trigger unit in your map init. since event not related with units, so if u want apply to everyunit then just pick all unit in playable map and use picked unit instead triggering unit at this action
 
Status
Not open for further replies.
Top