• 🏆 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!

A ziguratt casts raise dead

Status
Not open for further replies.
Level 12
Joined
Oct 28, 2019
Messages
475
The spell raise dead only works in 1500 range, even the cast range and area effect changes to 99999
So i´ve decided make a trigger, but I´m having troubles.

  • Zigurat´s raise dead
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Distance between (Position of Zigurate 0012<gen>) and (Position of (Triggering unit))) Less than or equal to 3000.00
      • ((Triggering unit) is A structure) Equal to Falso
      • ((Triggering unit) is Summoned) Equal to Falso
      • ((Triggering unit) is Mechanical) Equal to Falso
      • ((Triggering unit) is Undead) Equal to Falso
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • upgradedskeletons to (Researched tech-type)
        • Then - Actions
          • Wait 2.20 seconds
          • Unit - Replace (Dying unit) with a inferior skeleton using The new unit's default life and mana
          • Animation - Play (Last replaced unit)'s birth animation
          • Special Effect - Create a special effect at (Position of (Last replaced unit)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
        • Else - Actions
      • Wait 2.20 seconds
      • Unit - Replace (Dying unit) with a medium skeleton using The new unit's default life and mana
      • Animation - Play (Last replaced unit)'s birth animation
      • Special Effect - Create a special effect at (Position of (Last replaced unit)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl

The skeletons raises, but need change the skeleton raised with 2 upgrades,
Normal low skeleton
first upgrade medium skeleton
second upgrade High skeleton, need help this guys
 
Last edited:
You should post your triggers in [ trigger ] tags for better readability.

Also this is how I would have done it:

  • Raise Dead thing
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Current research level of Ziggurat Raise Dead for Player 1 (Red)) Equal to 1
        • Then - Actions
          • Unit - Replace (Triggering unit) with a Puny Skeleton using The old unit's relative life and mana
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Current research level of Ziggurat Raise Dead for Player 1 (Red)) Equal to 2
            • Then - Actions
              • Unit - Replace (Triggering unit) with a Normal Skeleton using The old unit's relative life and mana
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Current research level of Ziggurat Raise Dead for Player 1 (Red)) Equal to 3
                • Then - Actions
                  • Unit - Replace (Triggering unit) with a Badass Skeleton using The old unit's relative life and mana
                • Else - Actions
Also you're leaking so you might want to fix that. Distance between points leaks two points by the way.
 
Oh I didn't include stuff like that as I thought you knew it. You should play around with the actions a bit, it's pretty self explanatory.

You simply change the owner of the unit after you replace it to the owner of the killing unit.

  • Killing Unit
    • Events
    • Conditions
    • Actions
      • Unit - Replace (Triggering unit) with a Footman using The old unit's relative life and mana
      • Unit - Change ownership of (Triggering unit) to (Owner of (Killing unit)) and Change color
 
Level 12
Joined
Oct 28, 2019
Messages
475
  • RaiseDeadThing
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A structure) Equal to Falso
      • ((Triggering unit) is Summoned) Equal to Falso
      • ((Triggering unit) is Mechanical) Equal to Falso
      • ((Triggering unit) is Undead) Equal to Falso
      • (Distance between (Position of (Random unit from Ziguratts1)) and (Position of (Triggering unit))) Less than or equal to 3000.00
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Current research level of UpgradedRaiseDead for Player 1 (Red)) Equal to 0
        • Then - Actions
          • Wait 2.15 seconds
          • Unit - Replace (Dying unit) with a Lacaio Sombrio Inferior using The new unit's default life and mana
          • Animation - Play (Last replaced unit)'s birth animation
          • Special Effect - Create a special effect at (Position of (Last replaced unit)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
          • Unit - Change ownership of (Last replaced unit) to Player 2 (Blue) and Change color
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Current research level of UpgradedRaiseDead for Player 1 (Red)) Equal to 1
            • Then - Actions
              • Wait 2.15 seconds
              • Unit - Replace (Dying unit) with a Lacaio Sombrio using The new unit's default life and mana
              • Animation - Play (Last replaced unit)'s birth animation
              • Special Effect - Create a special effect at (Position of (Last replaced unit)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
              • Unit - Change ownership of (Last replaced unit) to Player 2 (Blue) and Change color
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Current research level of UpgradedRaiseDead for Player 1 (Red)) Equal to 2
                • Then - Actions
                  • Wait 2.15 seconds
                  • Unit - Replace (Dying unit) with a Grande Lacaio Sombrio using The new unit's default life and mana
                  • Animation - Play (Last replaced unit)'s birth animation
                  • Special Effect - Create a special effect at (Position of (Last replaced unit)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
                  • Unit - Change ownership of (Last replaced unit) to Player 2 (Blue) and Change color
                • Else - Actions
                  • Do nothing
Well this how I did. But there´s other problem. The 7 ziggurats are in a unit group. And sometimes a skeleton dont rise cause the trigger look the range of a randon unit in ziguratt. There´s a way to fix it?
 
Status
Not open for further replies.
Top