Frozenwind
System maker
- Reaction score
- 99
lightning in local
---> see post #8, this is outdated!
[del]Well, I got this trigger... I've put "Game - Display Text To Force" so I could confirm that the trigger and all loops run, but the odd, the functions withing the loop seems to do nothing.[/del]
[del]I don't see any problem there for example, and don't worry, the problem isn't that I dont got a Casting Unit --> If I do from center of playable map area to center of playable map area with offset I don't see any lightning either.
Here is a part of the trigger that seems to do nothing:
I myself think that it has to do with the array of the integer with I use as "Integer A"?
[EDIT]:
Additional testinformation:
1) The loopmessage is displayed 3 times, just like it should, so the loop runs 3 times.
2) If I do "from source: center of playble map area" "to source: center of playable map area offset by 500 tow 0 degrees", still nothing happens. --> conclusion: "casting unit" isn't the problem.
I've heared of some 2nd type of loop, is it something like that?
[/EDIT]
Anyone can find the problem?
[/del]
frozenwind.
---> see post #8, this is outdated!
[del]Well, I got this trigger... I've put "Game - Display Text To Force" so I could confirm that the trigger and all loops run, but the odd, the functions withing the loop seems to do nothing.[/del]
Code:
Custom script: local unit cast = GetSpellAbilityUnit ()
Custom script: set udg_Temp_point1 = GetUnitLoc (cast)
Set Temp_point2 = (Temp_point1 offset by 50.00 towards 0.00 degrees)
Lightning - Create a Healing Wave - Primary lightning effect from source Temp_point1 to target Temp_point2
Here is a part of the trigger that seems to do nothing:
Code:
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]
Game - Display to (All players) the text: loop1
Custom script: set angle[A[0]] = I2R( A[0] * 120)
Custom script: set loc[A[0]] = GetUnitLoc (cast)
Lightning - Create a Healing Wave - Primary lightning effect from source Temp_point1 to target Temp_point2
Custom script: set light[A[0]] = GetLastCreatedLightningBJ()
Custom script: set A[0] = A[0] + 1
Custom script: endloop
Custom script: call RemoveLocation (udg_Temp_point1)
Custom script: call RemoveLocation (udg_Temp_point2)
Game - Display to (All players) the text: endfunction
[EDIT]:
Additional testinformation:
1) The loopmessage is displayed 3 times, just like it should, so the loop runs 3 times.
2) If I do "from source: center of playble map area" "to source: center of playable map area offset by 500 tow 0 degrees", still nothing happens. --> conclusion: "casting unit" isn't the problem.
I've heared of some 2nd type of loop, is it something like that?
[/EDIT]
Anyone can find the problem?
[/del]
frozenwind.