• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

need help on my spell...(GUI)

Status
Not open for further replies.
Level 2
Joined
Aug 17, 2008
Messages
22
Problems are hes not moving towards his target he moves about 2 inches then hits the target and then they both teleport about half way accross the map.....

  • Events
    • Unit - A unit Begins casting an ability
  • Conditions
    • (Ability being cast) Equal to Chidori
  • Actions
    • Set ChidoriUnitArray[1] = (Casting unit)
    • Set ChidoriUnitArray[2] = (Target unit of ability being cast)
    • Set ChidoriPointArray[1] = (Position of ChidoriUnitArray[1])
    • Set ChidoriPointArray[2] = (Position of ChidoriUnitArray[2])
    • Set ChidoriRealArray[1] = (Distance between ChidoriPointArray[1] and ChidoriPointArray[2])
    • Unit - Make ChidoriUnitArray[1] face ChidoriUnitArray[2] over 0.00 seconds
    • Wait 0.10 seconds
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Distance between ChidoriPointArray[1] and ChidoriPointArray[2]) Less than or equal to 350.00
      • Then - Actions
        • Game - Display to (All players controlled by a ((Owner of ChidoriUnitArray[1]) controller) player) for 10.00 seconds the text: It would be to dang...
        • Unit - Order ChidoriUnitArray[1] to Stop
        • Custom script: call RemoveLocation(udg_ChidoriPointArray[1])
        • Custom script: call RemoveLocation(udg_ChidoriPointArray[2])
        • Set ChidoriUnitArray[1] = No unit
        • Set ChidoriUnitArray[2] = No unit
      • Else - Actions
        • Wait 0.50 seconds
        • Unit - Pause ChidoriUnitArray[1]
        • Unit - Turn collision for ChidoriUnitArray[1] Off
        • Unit - Make ChidoriUnitArray[1] Invulnerable
        • Trigger - Turn on Chidori Dash <gen>
        • Custom script: call RemoveLocation(udg_ChidoriPointArray[1])
        • Custom script: call RemoveLocation(udg_ChidoriPointArray[2])
This is just my first trigger then i have what comes after
  • Events
    • Time - Every 0.03 seconds of game time
  • Conditions
  • Actions
    • Set ChidoriPointArray[1] = (Position of ChidoriUnitArray[1])
    • Set ChidoriPointArray[2] = (Position of ChidoriUnitArray[2])
    • Special Effect - Create a special effect at ChidoriPointArray[1] using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
    • Special Effect - Destroy (Last created special effect)
    • Wait 0.01 seconds
    • Animation - Play ChidoriUnitArray[1]'s spell four animation
    • Wait 0.30 seconds
    • Special Effect - Create a special effect attached to the lefthand of ChidoriUnitArray[1] using Abilities\Weapons\Bolt\BoltImpact.mdl
    • Unit - Move ChidoriUnitArray[1] instantly to (ChidoriPointArray[1] offset by (40.00, 0.00))
    • Unit - Make ChidoriUnitArray[1] face ChidoriUnitArray[2] over 0.00 seconds
    • Set ChidoriRealArray[1] = (Distance between ChidoriPointArray[1] and ChidoriPointArray[2])
    • Special Effect - Destroy (Last created special effect)
    • Custom script: call RemoveLocation(udg_ChidoriPointArray[1])
    • Custom script: call RemoveLocation(udg_ChidoriPointArray[2])
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • ChidoriRealArray[1] Less than or equal to 100.00
      • Then - Actions
        • Unit - Make ChidoriUnitArray[1] Vulnerable
        • Unit - Unpause ChidoriUnitArray[1]
        • Unit - Turn collision for ChidoriUnitArray[1] On
        • Unit - Turn collision for ChidoriUnitArray[2] Off
        • Trigger - Turn off (This trigger)
        • Trigger - Turn on Chidori Knockback <gen>
        • Set ChidoriRealArray[2] = 325.00
        • Set ChidoriRealArray[3] = 0.00
      • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (ChidoriUnitArray[2] is dead) Equal to True
          • Then - Actions
            • Trigger - Turn off (This trigger)
            • Unit - Make ChidoriUnitArray[1] Vulnerable
            • Unit - Unpause ChidoriUnitArray[1]
            • Unit - Turn collision for ChidoriUnitArray[1] On
            • Unit - Turn collision for ChidoriUnitArray[2] On
            • Animation - Play ChidoriUnitArray[1]'s stand animation
            • Set ChidoriUnitArray[1] = No unit
            • Set ChidoriUnitArray[2] = No unit
            • Custom script: call RemoveLocation(udg_ChidoriPointArray[1])
            • Custom script: call RemoveLocation(udg_ChidoriPointArray[2])
          • Else - Actions
Then 1 more where thedamage comes in and the knockback
  • Events
    • Time - Every 0.03 seconds of game time
  • Conditions
  • Actions
    • Special Effect - Create a special effect attached to the lefthand of ChidoriUnitArray[1] using Abilities\Weapons\Bolt\BoltImpact.mdl
    • Set ChidoriPointArray[1] = (Position of ChidoriUnitArray[1])
    • Set ChidoriRealArray[3] = (ChidoriRealArray[3] + 25.00)
    • Special Effect - Destroy (Last created special effect)
    • Wait 0.01 seconds
    • Special Effect - Create a special effect attached to the chest of ChidoriUnitArray[2] using Abilities\Weapons\Bolt\BoltImpact.mdl
    • Wait 0.10 seconds
    • Special Effect - Destroy (Last created special effect)
    • Wait 0.01 seconds
    • Special Effect - Create a special effect at ChidoriPointArray[1] using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
    • Special Effect - Destroy (Last created special effect)
    • Unit - Move ChidoriUnitArray[2] instantly to (ChidoriPointArray[2] offset by 25.00 towards (Facing of ChidoriUnitArray[1]) degrees)
    • Custom script: call RemoveLocation(udg_ChidoriPointArray[1])
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • ChidoriRealArray[3] Greater than or equal to ChidoriRealArray[2]
      • Then - Actions
        • Unit - Unpause ChidoriUnitArray[1]
        • Unit - Turn collision for ChidoriUnitArray[2] On
        • Unit - Cause ChidoriUnitArray[1] to damage ChidoriUnitArray[2], dealing (100.00 x (Real((Level of Chidori for ChidoriUnitArray[1])))) damage of attack type Spells and damage type Normal
        • Trigger - Turn off (This trigger)
        • Trigger - Turn off Chidori Dash <gen>
        • Set ChidoriUnitArray[1] = No unit
        • Set ChidoriUnitArray[2] = No unit
        • Custom script: call RemoveLocation(udg_ChidoriPointArray[1])
        • Custom script: call RemoveLocation(udg_ChidoriPointArray[2])
      • Else - Actions
Long i know and i prolly dout people will look through it all but can u please show me wati did wrong or maby remake it and make it simpiler
(by the way the spell chidori is from naruto(anime))
 
Last edited by a moderator:
Level 2
Joined
Aug 17, 2008
Messages
22
its ok i went with zacks idea on using the lightning bash spell so i edited and tweaked to what i liked and it seems to work pretty well so thx for helping tho :D
 
Status
Not open for further replies.
Top