- Joined
- Aug 16, 2007
- Messages
- 884
Well, JASS makes my head explode. I'm using it more and more and learn more and more, but I'm only using it as functions and custom script, not 100% fully JASS triggers.
Anyway, since a while back I've started to use local variables, because they're awesome so I don't have to declare 100 global ones. But I've encountered a problem, as always...
The thing is I get this error: "Expected a variable name" with this trigger:
Anyway, since a while back I've started to use local variables, because they're awesome so I don't have to declare 100 global ones. But I've encountered a problem, as always...
The thing is I get this error: "Expected a variable name" with this trigger:
-
JassTest
-
Events
- Time - Elapsed game time is 2.00 seconds
- Conditions
-
Actions
- Custom script: local integer c = 0
- Set p_group[0] = (All players controlled by a User player)
-
Player Group - Pick every player in p_group[0] and do (Actions)
-
Loop - Actions
- Custom script: set c = c + 1
-
Loop - Actions
- Custom script: call DestroyForce(udg_p_group[0])
-
Events
- Custom script: set c = c + 1