- Joined
- Feb 15, 2005
- Messages
- 183
ok, This is what I have right now.
-Actions-
Custom script: local unit Farmer
Custom script: local unit Maid
pickevery unit in uncits currently selected by player and do actions:
IF- Picked Unit = to Peasant
THEN- Custom script: set Farmer = GetEnumUnit()
ELSE- Custom script: set Maid = GetEnumUnit()
Pause Picked unit
{bunch of other crap happens that is irrelevant}
Custom script: call Pause UnitBJ (false, Get Farmer)
Custom script: call Pause UnitBJ (false, Get Maid
Now, the reason i need to make these 2 picked units a local variable, is because if the trigger is activated while a previous loop is trying to resolve, the previous paused units will remain paused forever, since the "picked unit" variable will be assigned to the new units.
So this is my problem, I am getting errors on my script stating errors such as "Expected a variable name" and "Expected a name". So If anyone has any ideas or could help me with fixing my custom scripts to get the job done, I would be very appreciative, thanks!
-Actions-
Custom script: local unit Farmer
Custom script: local unit Maid
pickevery unit in uncits currently selected by player and do actions:
IF- Picked Unit = to Peasant
THEN- Custom script: set Farmer = GetEnumUnit()
ELSE- Custom script: set Maid = GetEnumUnit()
Pause Picked unit
{bunch of other crap happens that is irrelevant}
Custom script: call Pause UnitBJ (false, Get Farmer)
Custom script: call Pause UnitBJ (false, Get Maid
Now, the reason i need to make these 2 picked units a local variable, is because if the trigger is activated while a previous loop is trying to resolve, the previous paused units will remain paused forever, since the "picked unit" variable will be assigned to the new units.
So this is my problem, I am getting errors on my script stating errors such as "Expected a variable name" and "Expected a name". So If anyone has any ideas or could help me with fixing my custom scripts to get the job done, I would be very appreciative, thanks!