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

[Trigger] Bouncle Like Spell Help

Status
Not open for further replies.
Hello!

I made this trigger(I'm totally lost in it)
It somehow works but it leads to infinity "crate special effect and dummies casting spells"

OK, i based spell on Cluster rockets with arc 0.50 and only one projectile. And dummies gets that ability too.

So i made a few points and order dummies to cast a spell on another point(somesort of chain) than i make special effects, so the spell looks like you throw a ball and than it jumps around...But its not working right..

  • Bounce Ball
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Bounce
    • Actions
      • Set TempLoc[1] = (Position of (Triggering unit))
      • Set TempLoc[2] = (Target point of ability being cast)
      • Set Real[1] = (Distance between TempLoc[1] and TempLoc[2])
      • Set Real[2] = (Facing of (Triggering unit))
      • -------- ----------------------------------- --------
      • Set Real[3] = (Real[1] + (Real[1] / 2.00))
      • Set TempLoc[3] = (TempLoc[2] offset by Real[3] towards Real[2] degrees)
      • -------- ----------------------------------- --------
      • Set Real[4] = (Distance between TempLoc[2] and TempLoc[3])
      • Set Real[5] = (Real[3] + (Real[4] / 2.00))
      • Set TempLoc[4] = (TempLoc[2] offset by Real[5] towards Real[2] degrees)
      • -------- ----------------------------------- --------
      • Set Real[6] = (Distance between TempLoc[3] and TempLoc[4])
      • Set Real[7] = (Real[5] + (Real[6] / 2.00))
      • Set TempLoc[5] = (TempLoc[2] offset by Real[7] towards Real[2] degrees)
      • -------- ----------------------------------- --------
      • Set Real[8] = (Distance between TempLoc[4] and TempLoc[5])
      • Set Real[9] = (Real[7] + (Real[8] / 2.00))
      • Set TempLoc[6] = (TempLoc[2] offset by Real[9] towards Real[2] degrees)
      • -------- ----------------------------------- --------
      • Set Real[10] = Real[1]
      • Set Real[11] = Real[4]
      • Set Real[12] = Real[6]
      • Set Real[13] = Real[8]
      • Set Real[14] = 1200.00
      • -------- ----------------------------------- --------
      • Wait (Real[10] / Real[14]) game-time seconds
      • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at TempLoc[2] facing Default building facing degrees
      • Set Dummy[1] = (Last created unit)
      • Unit - Add a 1.50 second Generic expiration timer to Dummy[1]
      • Unit - Add Bounce to Dummy[1]
      • Unit - Order Dummy[1] to Neutral Tinker - Cluster Rockets TempLoc[3]
      • Special Effect - Create a special effect at TempLoc[2] using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • -------- ----------------------------------- --------
      • Wait (Real[11] / Real[14]) game-time seconds
      • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at TempLoc[3] facing Default building facing degrees
      • Set Dummy[2] = (Last created unit)
      • Unit - Add a 1.50 second Generic expiration timer to Dummy[2]
      • Unit - Add Bounce to Dummy[2]
      • Unit - Order Dummy[2] to Neutral Tinker - Cluster Rockets TempLoc[4]
      • Special Effect - Create a special effect at TempLoc[3] using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • -------- ----------------------------------- --------
      • Wait (Real[12] / Real[14]) game-time seconds
      • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at TempLoc[4] facing Default building facing degrees
      • Set Dummy[3] = (Last created unit)
      • Unit - Add a 1.50 second Generic expiration timer to Dummy[3]
      • Unit - Add Bounce to Dummy[3]
      • Unit - Order Dummy[3] to Neutral Tinker - Cluster Rockets TempLoc[5]
      • Special Effect - Create a special effect at TempLoc[4] using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • -------- ----------------------------------- --------
      • Wait (Real[13] / Real[14]) game-time seconds
      • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at TempLoc[5] facing Default building facing degrees
      • Set Dummy[4] = (Last created unit)
      • Unit - Add a 1.50 second Generic expiration timer to Dummy[4]
      • Unit - Add Bounce to Dummy[4]
      • Unit - Order Dummy[4] to Neutral Tinker - Cluster Rockets TempLoc[6]
      • Special Effect - Create a special effect at TempLoc[5] using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • -------- ----------------------------------- --------
      • Wait (Real[10] / Real[14]) game-time seconds
      • Special Effect - Create a special effect at TempLoc[6] using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • -------- ----------------------------------- --------
      • Custom script: set udg_Dummy[1] = null
      • Custom script: set udg_Dummy[2] = null
      • Custom script: set udg_Dummy[3] = null
      • Custom script: set udg_Dummy[4] = null
      • Custom script: call RemoveLocation (udg_TempLoc[1])
      • Custom script: call RemoveLocation (udg_TempLoc[2])
      • Custom script: call RemoveLocation (udg_TempLoc[3])
      • Custom script: call RemoveLocation (udg_TempLoc[4])
      • Custom script: call RemoveLocation (udg_TempLoc[5])
      • Custom script: call RemoveLocation (udg_TempLoc[6])
Now the question, why doesn't this work right? Because of the waits? D:

And tell me if i should attach a map.

Thanks!
-BZR-

Edit:
Ohh i made a typo in the thread name... I meant bounce not bouncle..silly me D:
Edit2:
And if its possible to make this in a loop?
 
Last edited:
Level 29
Joined
Jul 29, 2007
Messages
5,174
First off - both of those arrays are not needed.

As to why it's an infinite loop, just look at your event and condition. Every time someone casts Cluster Rockets it fires off, but also your dummies cast Cluster Rockets and then they create more dummies which create more dummies which ... infinity!

And of course it can be done in a loop.
 

Rmx

Rmx

Level 19
Joined
Aug 27, 2007
Messages
1,164
hey bezerker i made the same abilitie and it has the thunder clap effect too man so who should post it on spell section?????????????????? MINE is bouncing thunder ball that bounces 500 range then 400 then 300 then 200 then 100 then stops bouncing and every bound deals 100 damage soooooo waht's ur idea .. ??
 
Last edited:
Status
Not open for further replies.
Top