• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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