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

Need help with chain spell

Status
Not open for further replies.
Level 2
Joined
Oct 4, 2006
Messages
7
Im making a chain spell, but the problem is that its only jump one time, and I can't find whats wrong.
So if someone would like to look at it and tell me whats wrong, it would be appriciated.

Here is the code (short version):

Unit - A unit Starts the effect of an ability

(Ability being cast) Equal to Frost Chain

Set FrostChainTarget = (Target unit of ability being cast)
Unit Group - Pick every unit in (Random 1 units from (Units within 500.00 of (Position of FrostChainTarget) matching ((((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True) and ((((Matching unit) is alive) Equal to True) and ((Matching unit) Not equal to FrostCha and do (Actions)
Loop - Actions
Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Position of FrostChainTarget) facing Default building facing degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Set FrostChainTarget = (Picked unit)
Unit - Add Frost Chain (dmg) to (Last created unit)
Unit - Order (Last created unit) to Special Archimonde - Finger Of Death (Target unit of ability being cast)
 
Status
Not open for further replies.
Top