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

[Trigger] Demon Jump

Status
Not open for further replies.
Level 11
Joined
Mar 30, 2008
Messages
666
Hi guys,I have a problem with this trigger.
When the dummy (Warden,is a hero) unit jumps to an enemy my camera goes to the cemetery (there I can ressurect).

Is there a way to stop that camera? I want it to stop only for this dummy (hero),not for my (playing) Hero.
When my heroe dies,my camera goes to cemetery automatically.
Demon Casted
  • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Shadow Strike
  • (Ability being cast) Equal to Shadow Strike
  • Actions
    • Set Owner_caster = (Player number of (Triggering player))
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Unit-type of (Casting unit)) Equal to Warden
      • Then - Actions
        • Set Demon_caster = (Casting unit)
      • Else - Actions
    • Unit - Set the custom value of (Target unit of ability being cast) to 1
    • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Picked unit) has buff Shadow Strike) Equal to False
            • (Custom value of (Picked unit)) Equal to 1
          • Then - Actions
            • Wait 1.00 seconds
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • (Custom value of (Picked unit)) Equal to 1
                • ((Picked unit) has buff Shadow Strike) Equal to False
              • Then - Actions
                • Unit - Set the custom value of (Picked unit) to 0
              • Else - Actions
          • Else - Actions

Demon Jump

  • Events
    • Unit - A unit Dies
  • Unit - A unit Dies
  • Conditions
    • (Custom value of (Dying unit)) Equal to 1
  • (Custom value of (Dying unit)) Equal to 1
  • Actions
    • Set Demon_jump_target = (Random unit from (Units within 500.00 of (Position of (Dying unit)) matching ((((Matching unit) has buff Shadow Strike) Equal to False) and (((Life of (Matching unit)) Greater than or equal to 20.00) and (((Owner of (Matching unit)) is an enemy of (Player(Ow
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Demon_jump_target Not equal to Last_Demon_jump
      • Then - Actions
        • Unit - Create 1 Warden for (Player(Owner_caster)) at (Position of (Dying unit)) facing Default building facing degrees
        • Unit - Turn collision for (Last created unit) Off
        • Hero - Set (Last created unit) Hero-level to 10, Hide level-up graphics
        • Hero - Learn skill for (Last created unit): Shadow Strike
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Level of Shadow Strike for Demon_caster) Equal to 2
          • Then - Actions
            • Hero - Learn skill for (Last created unit): Shadow Strike
          • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Level of Shadow Strike for Demon_caster) Equal to 3
          • Then - Actions
            • Hero - Learn skill for (Last created unit): Shadow Strike
            • Hero - Learn skill for (Last created unit): Shadow Strike
          • Else - Actions
        • Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike Demon_jump_target
        • Unit - Add a 1.40 second Generic expiration timer to (Last created unit)
      • Else - Actions
 
Level 6
Joined
Dec 28, 2007
Messages
178
Magic spells? I dont know what do you mean but all of the spells can be set as unit ability in the object editor, and i dont think that your dummy unit has a multyleveled skill, so try to set the 'magic spell' to 1 leveled and unit ability and then add it to a simple dummy unit, not hero, and try this whole thing out
 
Status
Not open for further replies.
Top