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

help with dragon spell

Status
Not open for further replies.
Level 7
Joined
Nov 13, 2007
Messages
244
Well what I need is spell that looks like a fire dragon going forward i tried like this:

  • dragon flame justu
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Fire Style: Dragon Flame Jutsu
    • Actions
      • Set DragonCaster = (Casting unit)
      • Set DragonTarget = (Target unit of ability being cast)
      • Set DragonDummie = (Last created unit)
      • Wait 0.05 seconds
      • Unit - Create 1 Dragon Flame Dummy for (Owner of DragonCaster) at (Position of DragonCaster) facing Default building facing degrees
      • Trigger - Turn on dragons <gen>
      • Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
      • Unit - Order (Last created unit) to Move To (Position of DragonTarget)
  • dragons
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 Dragon Flame Dummy for (Owner of DragonCaster) at (Position of DragonCaster) facing Default building facing degrees
      • Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
      • Unit - Order (Last created unit) to Move To (Position of DragonTarget)
      • Wait 10.00 seconds
      • Trigger - Turn off (This trigger)
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
So, the dragon has to move from the position 1 (caster) to position 2 (target unit), right?
If so, first set the locations:
  • Actions
    • temp_target = Position of (Target unit of ability being cast)
    • temp_caster = Position of DragonCaster
After, create the dragon at the position temp_caster
  • Unit - Create 1 Dragon Flame Dummy for (Owner of DragonCaster) at temp_caster facing temp_target
  • Set DragonDummie = (Last created unit)
Now order it to move to temp_target
  • Unit - Order DragonDummie to move to temp_target
  • Wait x seconds (x is the time the dragon needs to get to the target depending on his movementspeed)
Here insert whatever you want the dragondummie to do
And last, remove the dragondummie
  • Unit - Remove DragonDummie from the game
  • CustomScript - call RemoveLocation(udg_temp_caster)
  • CustomScript - call RemoveLocation(udg_temp_target)
 
Status
Not open for further replies.
Top