• 🏆 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] Fatal Error

Status
Not open for further replies.
Level 9
Joined
Dec 26, 2010
Messages
475
hey guys i need help with my spell triggers. when i cast my triggered spell it gives me fatal error! :goblin_wtf: :goblin_wtf:

Heres the trigger:


  • TKCero
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Cero (Kaname Tousen)
    • Actions
      • Set TKCero_Unit[0] = (Triggering unit)
      • Set TKCero_Unit[1] = (Target unit of ability being cast)
      • Set TKCero_Point[0] = (Position of TKCero_Unit[0])
      • Set TKCero_Point[1] = (Position of TKCero_Unit[1])
      • Set TKCero_Point[2] = ((Position of TKCero_Unit[0]) offset by 100.00 towards (Facing of TKCero_Unit[0]) degrees)
      • Unit - Pause TKCero_Unit[0]
      • Unit - Pause TKCero_Unit[1]
      • Special Effect - Create a special effect attached to the head of TKCero_Unit[0] using war3mapImported\GreenFireringMissile.mdx
      • Set TKCero_SFX[0] = (Last created special effect)
      • Wait 0.20 seconds
      • Special Effect - Destroy TKCero_SFX[0]
      • Unit - Create 1 Tousen Cero Green Dummy for (Owner of TKCero_Unit[0]) at TKCero_Point[2] facing (Position of TKCero_Unit[1])
      • Set TKCero_Unit[2] = (Last created unit)
      • Trigger - Turn on TKCero Loop <gen>

  • TKCero Loop
    • Events
      • Time - Every 0.02 seconds of game time
    • Conditions
    • Actions
      • Unit - Order TKCero_Unit[2] to Attack TKCero_Unit[1]
      • Unit - Create 1 Tousen Cero Green Dummy for (Owner of TKCero_Unit[0]) at (Position of TKCero_Unit[2]) facing (Position of TKCero_Unit[1])
      • Set TKCero_Unit[3] = (Last created unit)
      • Unit - Add a 2.00 second Generic expiration timer to TKCero_Unit[3]
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Distance between (Position of TKCero_Unit[2]) and (Position of TKCero_Unit[1])) Less than or equal to 100.00
        • Then - Actions
          • Unit - Remove TKCero_Unit[2] from the game
          • Unit - Cause TKCero_Unit[0] to damage TKCero_Unit[1], dealing 500.00 damage of attack type Spells and damage type Normal
          • Special Effect - Create a special effect at TKCero_Point[1] using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
          • Animation - Play TKCero_Unit[1]'s death animation
          • Trigger - Turn off (This trigger)
          • Custom script: call RemoveLocation(udg_TKCero_Point[0])
          • Custom script: call RemoveLocation(udg_TKCero_Point[1])
        • Else - Actions
          • Trigger - Run TKCero Loop <gen> (ignoring conditions)
 
Level 7
Joined
May 18, 2010
Messages
264
yea ... youre triget runs so many times u get oweride...
i kinda made same mistes .. multyple times :D

edit: i think if u added wait 0.2 sec or something like that.. ud get it wokring
why dont u make else actions
Wait conditions wait until the unit enters the 100 aoe of other unit ( youre units aniway)... checking evry 0.2 0,1 ...
 
Status
Not open for further replies.
Top