• 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.

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