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

Status
Not open for further replies.
Level 7
Joined
Feb 23, 2020
Messages
253
So i have this trigger that does not work. The divine shield is in a spellbook. Am i missing something? The trigger works fine if the target already have divine shield as an ordinary ability.

  • Divine Broadsword Work
    • Events
      • Game - DamageEvent becomes Equal to 1.00
    • Conditions
      • ((Item carried by DamageEventTarget of type Divine Broadsword) is owned) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 100) Less than or equal to 5
        • Then - Actions
          • Unit - Order DamageEventTarget to Human Paladin - Activate Divine Shield.
        • Else - Actions
 
Level 12
Joined
Mar 13, 2020
Messages
421
So i have this trigger that does not work. The divine shield is in a spellbook. Am i missing something? The trigger works fine if the target already have divine shield as an ordinary ability.

  • Divine Broadsword Work
    • Events
      • Game - DamageEvent becomes Equal to 1.00
    • Conditions
      • ((Item carried by DamageEventTarget of type Divine Broadsword) is owned) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 100) Less than or equal to 5
        • Then - Actions
          • Unit - Order DamageEventTarget to Human Paladin - Activate Divine Shield.
        • Else - Actions

Is it a Item Ability?
Then use Unit order Item
You can just do a Hiden Ability an Add them when the hero gets the item...
Just set it to the Button Position -13
 
Status
Not open for further replies.
Top