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

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