• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Return lumber event

Level 13
Joined
Oct 28, 2019
Messages
528
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
 
Level 13
Joined
Oct 28, 2019
Messages
528
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
 
Top