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

[Trigger] doesn't work

Status
Not open for further replies.
Level 3
Joined
Apr 28, 2009
Messages
44
hello i got a problem with a test spell that i'm making.
srry that i don't know how to put a trigger in a post :( can someone tell me fast?
but on topic;
if you download the map you can see in the trigger editor that i have a special effect like this:
Special Effect - Create a special effect at (Position of unit_target) using Objects\Spawnmodels\Human\HumanLargeDeathExplode\HumanLargeDeathExplode.mdl

the problem with that special effect is that it only works 1 time, after the second cast it doesn't show.

the second problem is a trigger that totally doesn't work:
Unit - Move caster instantly to (Position of unit_target)

don't be mean, its like my first spell >.>
don't get inspired by my names of the map and spells xD
 

Attachments

  • lala.w3x
    18.1 KB · Views: 48
Level 3
Joined
Apr 28, 2009
Messages
44
thank you for the link.
now i have set the timer to a high number the teleport does work, but after that the lich king can't attack anymore.

  • boom boom paw
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Bo0m Bo0m pAw
    • Actions
      • Set caster = (Triggering unit)
      • Set timer = 0.00
      • Set timer2 = 0.00
      • Set unit_target = (Target unit of ability being cast)
      • Trigger - Turn on loop 1 <gen>
  • loop 1
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Set timer = (timer + 1.00)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • timer Greater than or equal to 10.00
        • Then - Actions
          • Unit - Move caster instantly to (Position of unit_target)
        • Else - Actions
          • Special Effect - Create a special effect at (Position of unit_target) using Objects\Spawnmodels\Human\HumanLargeDeathExplode\HumanLargeDeathExplode.mdl
          • Special Effect - Destroy (Last created special effect)
          • Trigger - Turn on stop boom boom paw <gen>
  • stop boom boom paw
    • Events
      • Time - Every 0.09 seconds of game time
    • Conditions
    • Actions
      • Set timer2 = (timer2 + 1.00)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • timer2 Greater than or equal to 100.00
        • Then - Actions
          • Trigger - Turn off loop 1 <gen>
          • Set timer = 0.00
        • Else - Actions
          • Set timer2 = 0.00
          • Trigger - Turn off stop boom boom paw <gen>
 
Level 3
Joined
Apr 28, 2009
Messages
44
if i do that:
  • loop 1
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Set timer = (timer + 1.00)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • timer Greater than or equal to 10.00
        • Then - Actions
          • Unit - Move caster instantly to (Position of unit_target)
        • Else - Actions
          • Special Effect - Create a special effect at (Position of unit_target) using Objects\Spawnmodels\Human\HumanLargeDeathExplode\HumanLargeDeathExplode.mdl
          • Special Effect - Destroy (Last created special effect)
          • Trigger - Turn on stop boom boom paw <gen>
          • Set timer = 0.00
          • Trigger - Turn off loop 1 <gen>
  • stop boom boom paw
    • Events
      • Time - Every 0.09 seconds of game time
    • Conditions
    • Actions
      • Set timer2 = (timer2 + 1.00)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • timer2 Greater than or equal to 100.00
        • Then - Actions
          • Set timer2 = 0.00
          • Trigger - Turn off stop boom boom paw <gen>
        • Else - Actions
the trigger stops before the lich king teleports for some strange reason :S
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
First of all, what is this trying to accomplish.... using my magick skills is this supposed to keep the position of the caster at the position of the unit for 1 second?...
 
Status
Not open for further replies.
Top