Problem with Ability with Timer

monar

New Member
Reaction score
0
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
;)
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>
 

Romek

Super Moderator
Reaction score
964
Why would you make the array 321123?
Also, You should check which timer expires :)
 

monar

New Member
Reaction score
0
Now I have another problem.
Everytime the timer expires (in 1 channel) the dummy unit uses lvl 1 spell.
How can i fix?
I know only 1 solution with making 10 spells and using conditions learn dummy unit the correct one.
 

Alphabet

New Member
Reaction score
12
Code:
Unit - Set level of Spell (dummy) for ([color=red]Triggering unit[/color]) to (Integer(Number[321123]))
Change that to 'Last created unit'.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top