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

[Solved] Find the error

Status
Not open for further replies.
Level 3
Joined
Aug 16, 2011
Messages
26
OK, guys. So I have been making a Sprint ability similer to Wind Walk but without the invisibility. It changes the movement speed just fine. I wanted to add the additional damage with triggers and this is what I came up with:
  • Sprint
    • Events
      • Game - GDD_Event becomes Equal to 0.00
    • Conditions
      • ((Triggering unit) has buff Sprint ) Equal to True
    • Actions
      • Unit - Create 1 Dummy for (Owner of GDD_DamageSource) at (Position of GDD_DamageSource) facing 0.00 degrees
      • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
      • Set Sprint_Damage = (Real(((Level of Sprint for GDD_DamageSource) x 30)))
      • Unit - Cause (Last created unit) to damage GDD_DamagedUnit, dealing Sprint_Damage damage of attack type Hero and damage type Normal
      • Floating Text - Create floating text that reads ((String(Sprint_Damage)) + !) above GDD_DamagedUnit with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
      • Unit - Remove Sprint buff from GDD_DamageSource
It doesn't work and the game crashes. :grin: There obviously is an error somewhere. Help me find it.
 
Level 4
Joined
Aug 8, 2011
Messages
84
It's possible that it has to do with GetLastCreatedUnt. In my opinion, you should just make GDD_DamageSource do the extra damage, not a dummy. Remove the dummy entirely from the trigger and try again.

EDIT:
Pharaoh is right, your damage events were infinite looping, but I still think you should remove the dummy :p
 
Status
Not open for further replies.
Top