Hi,
I want wisps (or any other type of workers) to go lumber harvesting after they have finished a building.
Here's my trigger:
What is is supposed to do is picking every wisp nearby (the range isnt fitting yet) and check whether it is harvesting something ( -> do nothing) or it just stand near the finished building ( -> send it to harvest).
My problem is the 'Current Order' line. When I use gather, like above, it returns: 'Wisp picked - Wisp gathers something' everytime.
When I use 'harvest' as orderstring, how the oderstring of the ability is called, it always returns 'Wisp doesnt gather' everytime.
If I left out the condition everytime a building is finished all wisps nearby would stop harvesting and go to the nearest tree (which is the old one again). This causes heavy interruptions, because wisps need some time to gather +5 lumber. ( I hope it is clear what i mean)
Greets Bonzo
I want wisps (or any other type of workers) to go lumber harvesting after they have finished a building.
Here's my trigger:
Buildings Finished
Events
Unit - A unit owned by Player 1 (Red) Finishes Construction
Conditions
Actions
Wait 0.01 seconds
Unit Group - Pick every unit in (Units within 500.00 of (Position of (Triggering unit)) matching ((Unit-type of (Matching unit)) Equal to Wisp)) and do (Actions)
Loop - Actions
Game - Display to (All players) the text: Wisp picked
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'- Conditions
(Current order of (Picked unit)) Ungleich (Order(gather))
'THEN'-Actions
Game - Display to (All players) the text: Wisp doesnt gather
{ Send wisp to harvest lumber }
'ELSE'-Actions
Game - Display to (All players) the text: Wisp gathers something
Events
Unit - A unit owned by Player 1 (Red) Finishes Construction
Conditions
Actions
Wait 0.01 seconds
Unit Group - Pick every unit in (Units within 500.00 of (Position of (Triggering unit)) matching ((Unit-type of (Matching unit)) Equal to Wisp)) and do (Actions)
Loop - Actions
Game - Display to (All players) the text: Wisp picked
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'- Conditions
(Current order of (Picked unit)) Ungleich (Order(gather))
'THEN'-Actions
Game - Display to (All players) the text: Wisp doesnt gather
{ Send wisp to harvest lumber }
'ELSE'-Actions
Game - Display to (All players) the text: Wisp gathers something
What is is supposed to do is picking every wisp nearby (the range isnt fitting yet) and check whether it is harvesting something ( -> do nothing) or it just stand near the finished building ( -> send it to harvest).
My problem is the 'Current Order' line. When I use gather, like above, it returns: 'Wisp picked - Wisp gathers something' everytime.
When I use 'harvest' as orderstring, how the oderstring of the ability is called, it always returns 'Wisp doesnt gather' everytime.
If I left out the condition everytime a building is finished all wisps nearby would stop harvesting and go to the nearest tree (which is the old one again). This causes heavy interruptions, because wisps need some time to gather +5 lumber. ( I hope it is clear what i mean)
Greets Bonzo