I made this spell and I have one problem with it.
Only thing that is working is that it shows "0" to all players every 1 second while channeling, but it doesnt continue with other commands.
Thanks for all replys
Only thing that is working is that it shows "0" to all players every 1 second while channeling, but it doesnt continue with other commands.
Thanks for all replys
Code:
Start Channel
Events
Unit - A unit Begins channeling an ability
Conditions
(Ability being cast) Equal to Spell
Actions
Trigger - Turn on Channeling <gen>
Set Number[321123] = 0.00
Set Unit[321123] = (Triggering unit)
Countdown Timer - Start Timer as a Repeating timer that will expire in 1.00 seconds
Code:
Channeling
Events
Time - Timer expires
Conditions
Actions
Game - Display to (All players) the text: 0
Set Number[321123] = (Number[321123] + 1.00)
Unit - Create 1 Dummy for (Owner of Unit[321123]) at (Position of Unit[321123]) facing Default building facing (270.0) degrees
Unit - Add Spell (dummy) to (Last created unit)
Unit - Set level of Spell (dummy) for (Triggering unit) to (Integer(Number[321123]))
Unit - Order (Last created unit) to Night Elf Druid Of The Claw - Roar
Special Effect - Create a special effect attached to the origin of Kuzelnik[321123] using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Code:
Stop Channel
Events
Unit - A unit Stops casting an ability
Conditions
(Ability being cast) Equal to Spell
Actions
Trigger - Turn off Channeling <gen>