• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Need help with custom resources

Status
Not open for further replies.
Level 12
Joined
Oct 28, 2019
Messages
480
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 12
Joined
Oct 28, 2019
Messages
480
  • 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