Need help with custom resources

Status
Not open for further replies.
Level 13
Joined
Oct 28, 2019
Messages
523
Im planning a map that has 4 resources: Gold, wood, Iron, and leather.

Gold it gains loading units in a windmill. ( this already done).
Wood already done.

Iron im planning gather in a Iron mine (Gold mine)

And leather same as Gold loading units in a building.


Im using unit event. But idk how detect IF the loading is in windmill for Gold or other building to leather.

Other question is how appears the cost of the resource when trains a unit TY
 
Level 13
Joined
Oct 28, 2019
Messages
523
  • EnterMill
    • Events
      • Game - CargoEvent becomes Equal to 1.00
    • Conditions
    • Actions
      • Set VariableSet IntegerMill = (IntegerMill + 1)
  • Exit Mill
    • Events
      • Game - CargoEvent becomes Equal to 2.00
    • Conditions
    • Actions
      • Set VariableSet IntegerMill = (IntegerMill - 1)

IDK how do a condition that the loading unit loads or unload the windmill... cause the event is real variable, any suggestion ???
 
  • EnterMill
    • Events
      • Game - CargoEvent becomes Equal to 1.00
    • Conditions
    • Actions
      • Set VariableSet IntegerMill = (IntegerMill + 1)
  • Exit Mill
    • Events
      • Game - CargoEvent becomes Equal to 2.00
    • Conditions
    • Actions
      • Set VariableSet IntegerMill = (IntegerMill - 1)

IDK how do a condition that the loading unit loads or unload the windmill... cause the event is real variable, any suggestion ???
Did you use GUI Unit Event (now with a state-of-the-art Lua version) ?
If so, it's decently well documented imo. The answer is, it depends on if you've using Lua or Jass.
 
Status
Not open for further replies.
Top