Return lumber event

Status
Not open for further replies.
Level 14
Joined
Oct 28, 2019
Messages
536
Need help with this event. Let me explain, when a peansant brings wood to the lumbermill creates a Item (wood) near that lumbermill.
The problem is if there are more then one lumbermill.

  • CreateItem
  • Player - Player 3 (Teal)'s Current lumber becomes Greater equal to ((Real((Player 3 (Teal) Current lumber))) + 10.00)
OBS the lumbermill is a ALLY IA player
I´ve tried this trigger, and if there are a second woodcutter it cuts a diferent quantity of wood, but with no sucess
Other thing i´ve planned, is set the other lumbermill to other ally IA player
 
solved
I´ve used Issued order, theres some issues, like the item appears in the moment the peasant is returning the wood, and not when he delivery the wood, but is ok
  • CreateItem Copy
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Issued order) Equal to (Order(resumeharvesting))
      • (Target unit of issued order) Equal to UnitWoodCutterHut1
    • Actions
      • Set VariableSet IntegerLumber1 = (Player 3 (Teal) Current lumber)
      • Item - Create Wood at PointWoodCutters1
      • Set VariableSet IntegerNumberWood1 = (IntegerNumberWood1 + 1)
      • Wait 0.10 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • IntegerNumberWood1 Equal to 1
        • Then - Actions
          • Set VariableSet ItemWood1a = (Last created item)
          • Trigger - Turn on SerfsGetWood1a <gen>
        • Else - Actions
 
Status
Not open for further replies.
Back
Top