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

SpellBook - Setting Level of Hidden Auras

Status
Not open for further replies.
Level 10
Joined
Jan 21, 2007
Messages
576
EDIT: Post Cleanup.

:Mathmatical problems have be resolved, but i still need to know why this code crashes wc3
  • Unit - Add Spells - Track to (Casting unit)
Its adding the spellbook ability to a hero (the spellbook ability is a unit ability, 2 abilities in it, max/min spells set to 2).
  • Track Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Track
    • Actions
      • Unit - Order (Casting unit) to Attack (Target unit of ability being cast)
      • Set L = (Position of (Casting unit))
      • Unit - Create 1 Dummy Unit for (Owner of (Casting unit)) at L facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_L)
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Unit - Add Track Dummy to (Last created unit)
      • Unit - Order (Last created unit) to Undead Necromancer - Unholy Frenzy (Casting unit)
      • Unit - Add Spells - Track to (Casting unit)
      • Unit - Set level of Damage - Track for (Casting unit) to (Level of Track for (Casting unit))
      • Unit - Set level of Speed Bonus - Track for (Casting unit) to (Level of Track for (Casting unit))
 
Last edited:
Level 10
Joined
Jan 21, 2007
Messages
576
It is definently that line, i disabled every trigger, and when i casted the spell it didnt crash, then i disabled every trigger but one that only has that line:

  • Track Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Track
    • Actions
      • Unit - Add Spells - Track to (Casting unit)
And it crashed when i casted the spell. So... anyone know whatsup? Im gonna pm diablo-dk aswell though, he knows alot about spell books im pretty sure.
 
Level 10
Joined
Jan 21, 2007
Messages
576
I already tried that, i changed it to unit and then hero, no change on the crash ":(.
 
Level 10
Joined
Jan 21, 2007
Messages
576
*Running a multitude of tests atm - Restults Soon*
And it hit me like a sack o' potatoes, i had the value 'Shared Cooldown' set to false, and there were no abilities in the spell book with cooldowns, i guess that causes it to crash because i set it to true and it works perfectly now, thankyou all for your help! (Maybe this could be added to your guide diablo-dk, this was a bitch to fix >.>.)
 
Status
Not open for further replies.
Top