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

[Spell] help me!

Status
Not open for further replies.
Level 1
Joined
Apr 23, 2014
Messages
475
Hey guys. i've created a spell that is like this...

  • Echo Slam Start Effect
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Echo Slam
    • Actions
      • Set Echoslamguyposition1 = (Position of (Casting unit))
      • Unit - Order EchSlamunit[1] to Neutral - Kaboom! (Position of (Casting unit))
      • Set EchSlamunit[1] = (Last created unit)
      • Floating Text - Create floating text that reads Boom! at Echoslamguyposition1 with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Custom script: call RemoveLocation(udg_Echoslamguyposition1)

the idea is to create 2 dummy units that will kaboom! at the enemies, and also make a special effect at the same time, can you help me, becuase i don;t want any leaks


also the special effect..

  • Echo Slam Effect
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Triggering unit) Equal to EchSlamunit[1]
    • Actions
      • Special Effect - Create a special effect at Echoslamguyposition1 using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Custom script: call RemoveLocation(udg_Echoslamguyposition1)
don't also want it leaking
 

Attachments

  • 34.PNG
    34.PNG
    20.7 KB · Views: 126
Last edited:
Level 2
Joined
Mar 20, 2013
Messages
12
i'm not good at it but if you said leaks, then all you need is HERE

it always took 30 seconds for me to know what i'm doing.
 
There is no sense for you to use "Position Of Casting Unit" in these unit orders. They leak. Just use the point variable.

Also look how to remove the location again you stored into the variable. It's explained in the tutorial that was posted in the post above.
Do so only once in the end of trigger, after you don't need the point anymore.

And I don't know if you really need the unit variables, because you can just use "order last created unit...", but you forgot to create a unit before "EchoSlamUnit[1] = LastCreatedUnit".
 
Level 12
Joined
Nov 3, 2013
Messages
989
  • Echo Slam Start Effect
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Echo Slam
    • Actions
      • Set Echoslamguyposition1 = (Position of (Casting unit))
      • Unit - Order EchSlamunit[1] to Neutral - Kaboom! (Position of (Casting unit))
      • Set EchSlamunit[1] = (Last created unit)
This looks really weird to me, EchSlamunit[1] is used before it's set and also there is no unit being made through this trigger (im thinking it's maybe a summon spell but since it uses "begins casting an ability" this trigger will run before the unit is actually summoned).


  • Echo Slam Start Effect
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Echo Slam
    • Actions
      • Set Echoslamguyposition1 = (Position of (Trigger Unit))
      • Set EchSlamunit[1] = (Last created unit)
      • Unit - Order EchSlamunit[1] to Neutral - Kaboom! Echoslamguyposition1

  • Echo Slam Start Effect
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Echo Slam
    • Actions
      • Set Echoslamguyposition1 = (Position of (Trigger Unit))
      • Unit - Create unit EchSlamDummy at Echslamguyposition1 facing (default building facing degrees)
      • Set EchSlamunit[1] = (Last created unit)
      • Unit - Order EchSlamunit[1] to Neutral - Kaboom! Echoslamguyposition1
 
Status
Not open for further replies.
Top