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

Divine shield

Status
Not open for further replies.
Level 8
Joined
Mar 6, 2014
Messages
203
heres the trigger

  • Divine SHield
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Divine Shield
    • Actions
      • Set DS_Int = (DS_Int + 1)
      • Set DS_Caster[DS_Int] = (Triggering unit)
      • Set DS_Target[DS_Int] = (Target unit of ability being cast)
      • Unit - Make DS_Target[DS_Int] Invulnerable
      • Special Effect - Create a special effect attached to the origin of DS_Target[DS_Int] using Abilities\Spells\Human\DivineShield\DivineShieldTarget.mdl
      • Set DS_SFX[DS_Int] = (Last created special effect)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (DS_Target[DS_Int] is A structure) Equal to True
        • Then - Actions
          • Wait (6.00 + ((Real((Level of Divine Shield for DS_Caster[DS_Int]))) / 2.00)) seconds
          • Set DS_Int2 = (DS_Int2 + 1)
          • Unit - Make DS_Target[DS_Int2] Vulnerable
          • Special Effect - Destroy DS_SFX[DS_Int2]
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • DS_Int2 Equal to DS_Int
            • Then - Actions
              • Set DS_Int = 0
              • Set DS_Int2 = 0
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (DS_Target[DS_Int] is A Hero) Equal to True
        • Then - Actions
          • Wait (6.00 + (Real((Level of Divine Shield for DS_Caster[DS_Int])))) seconds
          • Set DS_Int2 = (DS_Int2 + 1)
          • Unit - Make DS_Target[DS_Int2] Vulnerable
          • Special Effect - Destroy DS_SFX[DS_Int2]
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • DS_Int2 Equal to DS_Int
            • Then - Actions
              • Set DS_Int = 0
              • Set DS_Int2 = 0
            • Else - Actions
        • Else - Actions
i can cast the spell 1st on unit then next on structure. the divine shield on unit is only 4 seconds while in structure is 8 seconds. and when i cast again in The spell 1st on structure then next on unit. the duration is 4 seconds in structure while 8 seconds in units @_@
 
Status
Not open for further replies.
Top