• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Event Problem

Status
Not open for further replies.
Level 14
Joined
Jul 12, 2011
Messages
1,370
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,370
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