• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Another Passive not working...

Status
Not open for further replies.
Level 7
Joined
Aug 15, 2012
Messages
318
Well its been a pain trying to figure out what I did this time but I still feel dumb about all my other problems so ye. well heres my issue the passive im trying to get working basically has a % chance to cast the same abilitiy twice however it doesnt work on my map.. heres the trigger info

  • Persistancy
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
    • Actions
      • -------- --------------------------------------------------------------------------- Changeable Variables START --------------------------------------------------------------------------- --------
      • -------- PE_Chance2 should not be set very high, because it might cause an overflow on your system if too many spells are casted at the same time. --------
      • Set PE_Chance2 = (5 x (Level of |c00ffff00Persistancy|r for (Triggering unit)))
      • Set PE_Chance = (Random integer number between 1 and 100)
      • -------- --------------------------------------------------------------------------- Changeable Variables STOP --------------------------------------------------------------------------- --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PE_Chance Less than or equal to PE_Chance2
        • Then - Actions
          • Set TempLoc3 = (Position of (Triggering unit))
          • Set TempLoc4 = (Target point of ability being cast)
          • Unit - Create 1 Eldin Sunstrider (Persistance) for (Owner of (Triggering unit)) at TempLoc3 facing Default building facing degrees
          • Unit - Add a 1.60 second Generic expiration timer to (Last created unit)
          • Unit - Add (Ability being cast) to (Last created unit)
          • Unit - Add |c00ffff00Persistancy|r to (Last created unit)
          • Unit - Set level of (Ability being cast) for (Last created unit) to (Level of (Ability being cast) for (Triggering unit))
          • Unit - Set level of |c00ffff00Persistancy|r for (Last created unit) to (Level of |c00ffff00Persistancy|r for (Triggering unit))
          • -------- --------------------------------------------------------------------------- INSERT ABILITIES HERE --------------------------------------------------------------------------- --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Ability being cast) Equal to |c000f1effArcane Profanityr
            • Then - Actions
              • Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm TempLoc4
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Ability being cast) Equal to |c0080bcfaLightning Strike|r
                • Then - Actions
                  • Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave TempLoc4
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Ability being cast) Equal to |c00ff1e28Fiery Wrath|r
                    • Then - Actions
                      • Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Ability being cast) Equal to Freezing Spiral
                        • Then - Actions
                          • Unit - Order (Last created unit) to Night Elf Druid Of The Claw - Roar
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • (Ability being cast) Equal to Heat Ripple
                            • Then - Actions
                              • Unit - Order (Last created unit) to Night Elf Warden - Fan Of Knives
                            • Else - Actions
          • -------- --------------------------------------------------------------------------- INSERT ABILITIES HERE --------------------------------------------------------------------------- --------
          • Custom script: call RemoveLocation (udg_TempLoc3)
          • Custom script: call RemoveLocation (udg_TempLoc4)
        • Else - Actions
 
Level 18
Joined
Nov 21, 2012
Messages
835
You didnt add ability, and you didnt set level of ability for your unit: Eldin Sunstrider. Later you refering to those abilities. Also try to set this unit to variable insted useing 'last created unit'.

If still doenst work maybe try create 5 triggers insted of this 1. Everyone with main condition (Ability being cast) Equal to ...yourAbility.. and then check it out.

Zibi
 
Status
Not open for further replies.
Top