- Joined
- Sep 11, 2006
- Messages
- 172
So I'm putting together a trigger using local player variables and Jass helper is telling me I have errors.
I have a function just like this one in another trigger. In fact, I copied that function for use in this new trigger. The only difference in the custom script is that I changed the global variable being used to reference the owner of a particular unit.
Jass helper keeps telling me that my local player variable is undeclared and that the "if GetLocalPlayer()==p then" part of the script is an invalid comparison.
I have a function just like this one in another trigger. In fact, I copied that function for use in this new trigger. The only difference in the custom script is that I changed the global variable being used to reference the owner of a particular unit.
Jass helper keeps telling me that my local player variable is undeclared and that the "if GetLocalPlayer()==p then" part of the script is an invalid comparison.
-
Storm
-

Events
-


Time - Every 15.00 seconds of game time
-
-

Conditions
-

Actions
-


Custom script: local player p
-


Set sound = No sound
-


Set sound = LightningBolt1 <gen>
-


Sound - Play sound
-


Set TempGroup = (Units in (Playable map area)((Unit-type of (Matching unit)) Equal to Window Shine))
-


Unit Group - Pick every unit in TempGroup and do (Actions)
-



Loop - Actions
-




Unit - Unhide (Picked unit)
-




-------- Local Player --------
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Hunting Rect Copy 2 <gen> contains Hero[1]) Equal to True
-
-





Then - Actions
-






Set sound = No sound
-






Set sound = RollingThunder1 <gen>
-






Custom script: if GetLocalPlayer() == GetOwningPlayer(udg_Hero[1]) then
-






Sound - Play sound
-






Custom script: endif
-






Custom script: set p = GetOwningPlayer(udg_Hero[1])
-






Custom script: call SetCineFilterTexture("ReplaceableTextures\\CameraMasks\\White_mask.blp")
-






Custom script: call SetCineFilterStartColor(0,0,0,0)
-






Custom script: call SetCineFilterEndColor(0,0,0,255)
-






Custom script: call SetCineFilterDuration(1)
-






Custom script: if GetLocalPlayer()==p then
-






Custom script: call DisplayCineFilter(true)
-






Custom script: endif
-
-





Else - Actions
-
-




-------- Local Player --------
-




Wait 1.00 seconds
-




Unit - Hide (Picked unit)
-




Wait 0.25 seconds
-




Unit - Unhide (Picked unit)
-




Wait 0.25 seconds
-




Unit - Hide (Picked unit)
-




Wait 0.25 seconds
-




Unit - Unhide (Picked unit)
-




Wait 1.00 seconds
-




Unit - Hide (Picked unit)
-
-
-
-


