• 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.

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