Frozenwind
System maker
- Reaction score
- 99
This is the trigger:
I DO see the Green collored special effect, but
I DONT see the Red collored special effect, with other words, my global isn't stored into my local.
Is anyone able to explain me why not?
frozenwind (confused).
EDIT:
Another fact:
When I repalce the blue "0" for "B[0]", then it happens at "center of playable map area", instead of around my hero. (The taunt effect, not the thunderclap)
EDIT2:
It seems like the Orange parts get set just like I want them to be set. (it spins while getting bigger all the time)
Code:
TB Cast It
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Triangle Beam
Actions
Custom script: local location array loc
Custom script: local unit cast = GetSpellAbilityUnit ()
Custom script: local real array angle
Custom script: local real offset = 0.00
Custom script: local integer array A
Custom script: local integer array B
Custom script: local lightning array light
Custom script: set udg_Temp_point1 = GetUnitLoc (cast)
Set Temp_point2 = (Temp_point1 offset by 50.00 towards 0.00 degrees)
Custom script: set A[0] = 0
Custom script: set A[1] = 2
Custom script: loop
Custom script: exitwhen A[0]>A[1]
Custom script: set angle[A[0]] = I2R( A[0] * 120)
Custom script: set loc[A[0]] = GetUnitLoc (cast)
Custom script: set A[0] = A[0] + 1
Custom script: endloop
-------- END INITATION --------
Custom script: set A[0] = 0
Custom script: set A[1] = 150
Custom script: set B[1] = 2
Custom script: loop
Custom script: exitwhen A[0]>A[1]
[COLOR="DarkOrange"] Custom script: set offset = offset + 5[/COLOR]
Custom script: set udg_Temp_real1 = offset
Custom script: set B[0] = 0
Custom script: loop
Custom script: exitwhen B[0]>B[1]
[COLOR="DarkOrange"] Custom script: set angle[B[0]] = angle[B[0]] + 4[/COLOR]
Custom script: set udg_Temp_point1 = loc[B[0]]
Custom script: set udg_Temp_real2 = angle[B[0]]
Set Temp_point2 = (Temp_point1 offset by Temp_real1 towards Temp_real2 degrees)
Custom script: set loc[[COLOR="Blue"]0[/COLOR]] = udg_Temp_point2
[COLOR="Lime"] Special Effect - Create a special effect at Temp_point2 using Abilities\Spells\NightElf\Taunt\TauntCaster.mdl[/COLOR]
Custom script: call RemoveLocation (udg_Temp_point2)
[COLOR="Red"] Custom script: set udg_Temp_point2 = loc[[COLOR="Blue"]0[/COLOR]]
Special Effect - Create a special effect at Temp_point2 using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl[/COLOR]
[COLOR="Lime"] Game - Display to (All players) the text: thunderclap?[/COLOR]
Custom script: call RemoveLocation (udg_Temp_point2)
Custom script: set B[0] = B[0] + 1
Custom script: endloop
Custom script: call RemoveLocation (udg_Temp_point1)
Custom script: set A[0] = A[0] + 1
Wait 0.01 game-time seconds
Custom script: endloop
Game - Display to (All players) the text: endfunction
I DONT see the Red collored special effect, with other words, my global isn't stored into my local.
Is anyone able to explain me why not?
frozenwind (confused).
EDIT:
Another fact:
When I repalce the blue "0" for "B[0]", then it happens at "center of playable map area", instead of around my hero. (The taunt effect, not the thunderclap)
EDIT2:
It seems like the Orange parts get set just like I want them to be set. (it spins while getting bigger all the time)