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

Help me with my petrification please

Status
Not open for further replies.
Level 1
Joined
Oct 11, 2008
Messages
1
  • Help me with my petrification Trigger[/b]
  • [FONT="Arial Black"]PETRIFICATION[/FONT]
  • I need help with my skill :) "petrification"; especially the explode skill transfer when the petrification is complete.
  • Here is the trigger
  • Settings
  • [TRIGGER]Petrification
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Petrification
    • Actions
      • Set PetriTrigger[0] = (Triggering unit)
      • Set PetriUnit[0] = (Target unit of ability being cast)
      • Set PetriPoint[1] = (Position of PetriUnit[0])
      • Unit - Create 1 Dummy for (Owner of PetriTrigger[0]) at (Position of PetriTrigger[0]) facing Default building facing degrees
      • Set PetriUnit[1] = (Last created unit)
      • Set PetriPoint[2] = (Position of PetriUnit[1])
      • Set PetrificationCountDown[0] = -5
      • Set PetrificationCountDown[1] = (1 + (1 x (Integer((Real((Level of Petrification for PetriTrigger[0])))))))
      • Set PetriReal[5] = 100.00
      • Trigger - Turn on Petrification Movement <gen>
Movement
  • Petrification Movement
    • Events
      • Time - Every 0.05 seconds of game time
    • Conditions
    • Actions
      • Set PetriPoint[2] = (Position of PetriUnit[1])
      • Set PetriPoint[1] = (Position of PetriUnit[0])
      • Set PetriReal[0] = (Angle from PetriPoint[2] to PetriPoint[1])
      • Special Effect - Create a special effect at PetriPoint[2] using Objects\Spawnmodels\Undead\ImpaleTargetDust\ImpaleTargetDust.mdl
      • Unit - Move PetriUnit[1] instantly to ((Position of PetriUnit[1]) offset by 25.00 towards PetriReal[0] degrees)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Distance between PetriPoint[2] and PetriPoint[1]) Less than or equal to 26.00
        • Then - Actions
          • Unit - Remove PetriUnit[1] from the game
          • Trigger - Turn on Petrification Effect <gen>
          • Trigger - Turn off (This trigger)
        • Else - Actions
Effect of the skill
  • Petrification Effect
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set PetriReal[5] = (PetriReal[5] - 20.00)
      • Set PetrificationCountDown[0] = (PetrificationCountDown[0] + 1)
      • Animation - Change PetriUnit[0]'s vertex coloring to (PetriReal[5]%, PetriReal[5]%, PetriReal[5]%) with 15.00% transparency
      • Unit - Set PetriUnit[0] movement speed to (Default movement speed of PetriUnit[0])
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PetriReal[5] Greater than 0.00
        • Then - Actions
          • Unit - Create 1 Dummy for (Owner of PetriTrigger[0]) at (Position of PetriUnit[0]) facing Default building facing degrees
          • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
          • Unit - Add Slow Petrification to (Last created unit)
          • Unit - Set level of Slow Petrification for (Last created unit) to (Integer((Real((Level of Petrification for PetriTrigger[0])))))
          • Unit - Order (Last created unit) to Human Sorceress - Slow PetriUnit[0]
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PetriReal[5] Equal to 0.00
        • Then - Actions
          • Unit - Add Detonate Petrified Unit to PetriTrigger[0]
          • Unit - Set level of Detonate Petrified Unit for PetriTrigger[0] to (Level of Petrification for PetriTrigger[0])
          • Animation - Change PetriUnit[0]'s animation speed to 0.00% of its original speed
          • Unit - Pause PetriUnit[0]
          • Set PetriReal[3] = (Life of PetriUnit[0])
          • Trigger - Turn on Petrification Hitpoints <gen>
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PetrificationCountDown[0] Equal to PetrificationCountDown[1]
        • Then - Actions
          • Unit - Remove Detonate Petrified Unit from PetriTrigger[0]
          • Unit - Unpause PetriUnit[0]
          • Animation - Change PetriUnit[0]'s animation speed to 100.00% of its original speed
          • Animation - Change PetriUnit[0]'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
          • Trigger - Turn off Petrification Hitpoints <gen>
          • Trigger - Turn off (This trigger)
        • Else - Actions
Hp Check: Petrified Units Cannot Be Damage Unless killing it with a single Blow
  • Petrification Hitpoints
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Unit - Set life of PetriUnit[0] to PetriReal[3]
Detonate for Damage
  • Petrification Detonate
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Detonate Petrified Unit
    • Actions
      • Trigger - Turn off Petrification Hitpoints <gen>
      • Trigger - Turn off Petrification Effect <gen>
      • Unit Group - Pick every unit in (Units within 300.00 of (Position of PetriUnit[0]) matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of PetriTrigger[0])) Equal to True)))) and do (Actions)
        • Loop - Actions
          • Unit - Cause PetriTrigger[0] to damage (Picked unit), dealing (70.00 x (Real((Level of Detonate Petrified Unit for PetriTrigger[0])))) damage of attack type Spells and damage type Normal
      • Unit - Remove Detonate Petrified Unit from PetriTrigger[0]
      • Unit - Unpause PetriUnit[0]
      • Animation - Change PetriUnit[0]'s animation speed to 100.00% of its original speed
      • Animation - Change PetriUnit[0]'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
      • Special Effect - Create a special effect at (Position of PetriUnit[0]) using war3mapImported\Shockwave.mdx
      • Special Effect - Create a special effect at (Position of PetriUnit[0]) using war3mapImported\NewDirtEXNofire.mdx
      • Custom script: call RemoveLocation(udg_PetriPoint[1])
      • Custom script: call RemoveLocation(udg_PetriPoint[2])
Thanks to Will The Almighty "explosion" and Vestras "shockwave"

Click To Download Map >> http://www.epicwar.com/maps/download/120655/3a1bbb9145385f21d6e438f58d91eb724b3d3b1e/Petrification.w3x

:D
 
Last edited:
Status
Not open for further replies.
Top