• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

"change unit ownership" action is being ignored

Status
Not open for further replies.
Level 9
Joined
Jan 14, 2008
Messages
366
  • capture building
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Infiltration
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Life of (Target unit of ability being cast)) Less than or equal to (0.50 x (Max life of (Target unit of ability being cast)))
        • Then - Actions
          • Set Temp_Point1 = (Position of (Triggering unit))
          • Set Temp_Point2 = (Position of (Target unit of ability being cast))
          • Set Temp_Point3 = (Position of (Casting unit))
          • Unit - Remove (Triggering unit) from the game
          • Special Effect - Create a special effect at Temp_Point1 using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
          • Special Effect - Destroy (Last created special effect)
          • Special Effect - Create a special effect at Temp_Point2 using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
          • Special Effect - Destroy (Last created special effect)
          • Special Effect - Create a special effect at Temp_Point3 using Abilities\Spells\Undead\DarkRitual\DarkRitualTarget.mdl
          • Special Effect - Destroy (Last created special effect)
          • Game - Display to (Player group((Owner of (Triggering unit)))) the text: |c0000FF00Building ...
          • Advanced - Only for (Owner of (Triggering unit)) play QuestLog <gen>
          • Game - Display to (Player group((Owner of (Target unit of ability being cast)))) the text: |c00FF0000Building ...
          • Advanced - Only for (Owner of (Target unit of ability being cast)) play Warning <gen>
          • Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Casting unit)) and Change color
          • Custom script: call RemoveLocation (udg_Temp_Point1)
          • Custom script: call RemoveLocation (udg_Temp_Point2)
          • Custom script: call RemoveLocation (udg_Temp_Point3)
        • Else - Actions
          • Advanced - For (Owner of (Triggering unit)) display The target building is not damaged enough. as error message
          • Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) + 150.00)




thats the complete trigger. the "set mana to manaof... + 150" action aswell as the "change unit ownership" action are being completely ignored.

whoever all other actions execute properly. why is this?
 
Status
Not open for further replies.
Top