Xan_Kriegor
I can change this now in User CP.
- Reaction score
- 12
I have a pretty basic trigger here that for some reason just won't compile:
The error I'm getting is that it expected a code statement for the line "local unit caster". I've also tried using "local unit caster = GetTriggerUnit()" as I've seen that occasionally but it had the same result. The subsequent lines have the errors "expected a variable name" and "expected a name" for the last two respectively.
I have a fresh install of WC3 TFT recently updated off Battle.net, and no NewGen or anything of the sort. Any ideas why I'm getting these errors?
EDIT: Nevermind! Moved the declaration above the Game message and it compiled. Silly me.
Trigger:
- Phase Warp Activate
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Phase Shift
- Actions
- Game - Display to (All players) the text: Phase Warp Active.
- Custom script: local unit caster
- Custom script: set caster = GetTriggerUnit()
- Custom script: call GroupAddUnitSimple(caster, udg_ugTolenaarPhaseWarpActive)
- Wait 3.00 game-time seconds
- Custom script: call GroupRemoveUnitSimple(caster, udg_ugTolenaarPhaseWarpActive)
The error I'm getting is that it expected a code statement for the line "local unit caster". I've also tried using "local unit caster = GetTriggerUnit()" as I've seen that occasionally but it had the same result. The subsequent lines have the errors "expected a variable name" and "expected a name" for the last two respectively.
I have a fresh install of WC3 TFT recently updated off Battle.net, and no NewGen or anything of the sort. Any ideas why I'm getting these errors?
EDIT: Nevermind! Moved the declaration above the Game message and it compiled. Silly me.