• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

The Siege of Anglesey // An Invasion [HELP NEEDED!]

Status
Not open for further replies.
Level 4
Joined
Jun 18, 2008
Messages
119
2re1qx4.jpg



spacer-rule.jpg


Screenshots are here!
 

Attachments

  • ff4add.jpg
    ff4add.jpg
    122.5 KB · Views: 151
Last edited:
Level 4
Joined
Jun 18, 2008
Messages
119
Those are your huts, by the way. :D

Also, I'm having some difficulty figuring out how to set up the fourth resource.

Event - a unit (requiring gold) begins training
Condition -
Action - If: Real (?): ??? (Something to the effect of, amount of variable x equal to x)
Then: Subtract x amount of variable x
Else: Stop training, display message: "you do not have enough merchant-supplied gold to do that"


If someone could get this in vJass with no leaks, I'd prefer it.
 
If you have enough discrete rate of gathering and spending this resource (you know 100, 200, 300, ... not 100, 101, ... , 199, 200 or 1, 2, 3, 4, ... would work too) you could make a dummy unit for each amount of resource. The max of these dummy units will be the cost of most expensive unit, then you store the value in a variable, so you do not need too much these dummy units. Their name will correspond to their value (e.g. "200 gold"). Depending how much you spend and gather, you remove/add that many gold units. Now when you will like to train/build/research stuff using this resource, the button will be inactive as long you have too few resources.

Hope you understand.
 
Status
Not open for further replies.
Top