Tuesday, December 06, 2005

Warcraft Economics

The following article will only be comprehensible to Warcraft III players:

Most players of Warcraft III will agree that the 'insane' level computer is a worthy opponent and that it takes a reasonable amount of patience and training to reach the skill level needed to be consistently victorious. Indeed, there are even rumors that the insane computer 'cheats'. This is perhaps because the computer does produce an unearthly number of units at a very distressing pace.

Yet, using some economic concepts, it is actually possible to work out a strategy that overwhelms and consistently annihilates an insane computer. This strategy works best against insane humans, night elves and less so against orcs (but you still can beat them quite easily). For reasons that will be clear to experienced warcraft players, it works least well against undead--but even then I have managed to use this strategy to beat them most of the time.

Before outlining the strategy, let us first consider the following:

Economic analysis of Warcraft

Efficiency

Economics studies how society extracts the highest 'value' from its limited resources. The greater the value produced from a given amount of resources, the higher is the 'efficiency' and productivity of an economy. An economically sound strategy in Warcraft will therefore be one that produces the greatest quality and quantity of military units from the limited resources of gold and lumber.

Can we measure this exactly? In one sense, yes. At the end of the game, there will be scores given for units and resources collected. The ratio between units and resources will be correlated to your efficiency. From my experience, the ratio of the [defeated] insane computer is typically 1:1. In other words, the computer has used 1 unit of resource to produce 1 unit of military force.

On the other hand, the strategy I use typically produces ratios of 2:1 or 3:1. If we factor in the hero score, the ratio can shoot much higher. In other words, the strategy outbuilds the computer by producing more and better units from less resources. It is no wonder that while I almost always collect less resources than the computer (I do not generally bother to expand), I still manage to field a force that is much more powerful than that of the computer.

Time

It is important to note that a more efficient strategy that produces more units from less resources, is also one that produces more units in less time. This is because the rate of gold collection is basically fixed and at its maximum, is roughly 20 gold/sec per base. In other words, in Warcraft, time is money, and how well you use your gold is really equivalent to how well you use your time. Lumber is not a truly limiting factor since its rate of collection can vary enormously dependent on your labor force, research level, faction etc.

Indeed, the strategy I shall outline below pits a goodly number of level 3 units against an insane computer with mostly level 1 and 2 units. This is achieved through the sheer speed of build-up.

Output value and opportunity costs

Given that efficiency and producitvity is related to output value/input value, how then do we measure output value? While the game puts an approximate numerical value to our units at the end of the game, yet is it possible to have a more complete measurement of 'military value'?

Actually it is quite difficult to have any exact measurement. Military value is determined by its hit points, damage, range, armor, special abilities and whether it is a flying, siege, melee or range unit. In different battles, different aspects of the unit may be helpful or become fatal. Thus, the military value of units differ from battle to battle. A tauren may be worth a lot fighting against footmen, but is utterly worthless against a frost wyrm. A human siege engine is very useful if you are attacking a town, but generally worthless otherwise.

Thus we seem to be stuck with a mostly approximate measurement of efficiency, because output value is so tentative. Yet economics always insists on 'opportunity costs': that due to limited resources, if you do something, you have to give up the next best alternative. Thus if you build a crypt fiend, you have to forgo 2 ghouls. If you go for the chimaera, you may have to give up your mountain giant. It is therefore supremely important to know which are the 'best units' to build to maximise your output value and efficiency.

Battle efficiency

This brings us to another important point. The key to winning warcraft is not just productive efficiency (producing more/better units from less resources) but battle efficiency. What do I mean? Basically in any battle, we aim to bring an army with a far higher [approximate] military value against a computer with less (or even better, non-existent) military value. It is indeed possible to lose a game by having high productive efficiency but low battle efficiency.

For instance (to use an extreme example) you might foolishly but efficiently build up 6 taurens and a tauren chieftain and send them against your inefficient undead foe with only level 2 units. Yet just ONE gargoyle will suffice to annihilate (albeit very slowly) your whole army. Or you may build 10 towers and ring them around your base. Yet just one siege unit is enough to destroy everything.

I have found that the best way to ensure high battle efficiency is to use flying units. The reason is obvious: flying units are vulnerable only to other flying units and range units. Typically the computer will only have a relatively small number of these and you can easily achieve overwhelming battle efficiency with enough flyers. Of course, crypt fiends and (to a lesser extent) raiders can reduce the efficiency by sending our units to the ground. Towers can also alter the balance.

But even with these caveats, the computer generally produce far too few crypt fiends, raiders (the computer take a long time to get to the ensnare ability), range or flying units. Thus my strategy will be one that uses a swarm of flying units to translate a high productive efficiency into an overwhelming battle efficiency.

Warcraft investment

Like in the real world economy, Warcraft productivity is achieved by investments. Basically the early choices of Warcraft are determined by whether we want to 'consume' the resources in building poor level 1 units, or 'invest' in upgrades that will allow us to build better units at the same cost, i.e. become more efficient.

Simple calculations will tell you that higher efficiency can only be achieved if we consume a minimum of resources in the early stages (just enough to defend your base), invest as much as we can, and save the rest in order to build the best units. Thus we try to 'tech', but safely.


The Strategy

This strategy works best if you take humans. The reasons should become apparent as I describe it.

Basically, we seek to get the highest value out of each unit of resource used and achieve the highest productive and battle efficiency. The way I have found to be most effective against the insane computer is to build a swarm of gryphon riders, dragonhawk riders and one paladin.

First, we settle the question of resource collection. Basically I find that 5 peasants collecting gold, 7 to the trees, and 2 building at all times, is quite an optimum arrangement. At the beginning, I will send 3 peasants to the mine and 2 to build a farm and an altar. The other 9 peasants will be produced and sent on their respective ways.

Now as stated above, we must defend our base by consuming a minimum of resources. How can this be done? The first way is to simply depend on your 14 peasant militia and one hero. While the 14 militia can beat off most early attacks, this policy involves undue risk. You can lose a battle and your whole base before you build your first gryphon rider. And you are likely to lose peasants in any attack. And most seriously, you slow down your resource collection each time the computer comes calling. This hardly constitutes productive efficiency.

A much better way (and one chief reason for using humans) is to use the 14 militia as a final backup. My way is to build 3 adjoined towers surrounded by farms. Why? I think it is hard to deny that towers using focused fire are indeed the most cost effective DEFENSIVE units in the early game. NO early attack (meaning one without siege units) from the insane computer can destroy a base with 3 towers, and if needed, 14 militia and one hero. Indeed, you don't have to call on your peasants at all. Best of all, 3 towers are really quite cheap and does not consume food.

So far, my worst experience is when an orc army came down and blew up 2 towers. But that was far too late, for 2 gryphon riders were produced during the battle and quickly routed them. I did not call on a single peasant.

So how to go about the tower construction? First I usually get 1 peasant to build 2 farms while another produces an altar. Once the altar is up, that peasant will build up a lumber mill (necessary to produce the tower upgrade) while the farm peasant start building 3 towers. When the mill is done, we upgrade the 3 scout towers to defensive ones. Meanwhile I will also research one level of masonry upgrade at the mill for 'kiasu' purposes. The 2 peasants will then continue building 4 more farms (6 altogether) to both ring the towers and to provide the food for the upcoming air units.

Upgrading to reach gryphon riders

With the defence settled, we now deal with the upgrading process. Basically in 'teching', there is only one rule: secure your base and then upgrade to castle above all else. Once my 9 peasants are out, I immediately upgrade (the resources are just enough at that point usually), then once stage 2 is done, I immediately start the castle upgrade. You must plan your resource usage for farms, towers and lumber collection upgrades (I usually upgrade once) in such a way that you are not even the least delayed in your upgrades. With this strategy you can reach Castle while the insane computer are still churning out mostly level 1 units.

Besides the upgrades you have the resources to build the following: At stage 2, after finishing 6 farms, you build an arcane vault, then start on 2 Gryphon aviaries. Usually I will have 2 aviaries and have produced one dragonhawk rider before Castle rolls along.

At this point, you would have saved lots of gold and lumber. Thus use your savings to produce gryphon riders. You would have enough to produce about 4 very quickly before being forced to slow down. Meanwhile one peasant will continue building farms (you can intially slow down on farm production since you already have a surplus), while another will start on the blacksmith and then barracks (for the upgrades).

Generally, even against the undead, you can feel quite safe when you reach about 8 gryphon riders and 2 dragonhawk riders. Obviously you should have started creeping with less and will have a decent level 3-4 paladin by now. The paladin should focus on divine shield (since he is alone on the ground--this ability is the main reason why the paladin is chosen) and devotion aura. He don't need to learn resurrection since flying units die without corpses.

With such an army (and more gryphon riders on the way), you can start creeping around the enemy base. For non-undead races, you can even attack the base directly (once you have the Cloud ability for dragonhawk riders) and finish the game speedily. The undead base is apt to have an unseemly number of Towers, necromancers, crypt fiends and other irritants. It is extremely unwise to attack them directly. You really would not want to cloud their 4 towers and then have your hawk rider webbed or sent to sleep...

For any faction, I usually prefer to lure the insane computer out and crush their huge but mainly worthless and primitive army.

There are several ways to lure them out. One expensive but infallible way is to build an expansion town. The truly insane computer will quickly dispatch a suicide mission towards your expansion, and you can wait for them at your leisure while increasing your air force. The outcome cannot be more certain. I usually prefer to attack THEIR expansion. That will also send their whole army out in a hurry.

Against non-undead computer players, victory is relatively straightforward. For humans, exterminate their few riflemen and the rest will be gone. Due to your production speed, they will have no gryphon riders or hawks (and even if they do, you have your aerial shackles and overwhelming numbers). For night elves, use storm hammer upgrades to exterminate their archers. Dryads (which are immune to gryphon magical attacks) are a special problem, but your hawk riders and paladin can deal with them. For orcs, kill their trolls and their raiders. Their raiders (if any) typically cannot ensnare yet. Orc towers and burrows are very fragile and indeed you don't even need dragonhawk riders. Just build up a mere 6 gryphons and usually it is enough to wipe out the orc army and demolish an entire base (though 8 will be more efficient).

In general, against non undead factions, your overwhelming air superiority, cloud/aerial shackles and your invincible (temporarily) paladin will allow you to exterminate them easily. Typically I demolish their expansion, send their defending army fleeing, and then harass them endlessly (lure them out, crush them etc.) till they are no more. The paladin typically reach level 9-10 at the end of it. Best try to secure some Fountain of health near their base for maximum ease of attack.

For a full undead army with crypt fiends, gargoyles, a dread lord with sleep and even frost wyrms, things can get nasty. But even then, aerial shackles can deal with the frost wyrm[s] (they are indeed the least of my concerns), and sufficient numbers (around 8) can make short work of the gargolyes even with some gryphons being webbed. Of course numbers will allow you to kill the crypt fiends quickly (you MUST). Still casualties can be significant, and you can even lose your first battle.

However so long as you don't hit the main base but lure them out, the insane computer tend not to concentrate its forces, but disperse them randomly, first sending gargoyles and frost wyrms to their doom, before the crypt fiends reach the scene. So most of the time the strategy still works. Of course you can simply build 15 gryphon riders etc., but the longer you wait the stronger the undead opponent becomes.

Such is the natural disadvantage of using air units against undead. I have been thinking of some superior and economically sound strategy, but no fruits yet. Any suggestions?

Hope this will provide some fruit for thoughts. For those who are interested, you can try it out and tell me what you think. The skill level needed to win with this strategy is quite modest. By the way, for obvious reasons, this strategy cannot work against non-computer opponents who knows you are going to use a swarm of air units. This is a strategy designed to beat predictably insane computers.

14 comments:

Me said...

ningfei here...

submit it to gamefaqs :D most probably it'll get in.. :D

hard to find a teacher playing warcraft tho..

Mad Hermit said...

What's gamefaqs?

Anonymous said...

This is GameFAQs.

Hard to find a teacher playing Warcraft? Not if your teacher is a child of the 80s (or should that be the late 70s?) And it's all too easy to know of a website that your teacher doesn't. :)

Anonymous said...

BTW, any thought of submitting this article to anywhere should hereforth be banished before any proofreading has been done. :) Typos are obvious and cannot be counted on one hand. It must have been a rather late night.

Anonymous said...

benjamin leong here,

i agree with ningfei, except thta i also dont know what game faqs too. =) However, i have proved you wrong once again -- I don't play Warcraft but I do understand what you're saying (to a certain extent).

kenji said...

kenji here...

This is a really gd guide to defeat the com but it will take quite long actualli lol :D

Anonymous said...

u suck

Anonymous said...

ssry wasnt meant for u

Anonymous said...

this stragety(pardon me)rocks!!!!!!1

Anonymous said...

Hi Mr Quek!
I didn't know you liked warcraft or even played warcraft.

This article is very much to standard. I will attempt to use your strategy during custom game.

Yongzhi said...

its a beautiful gamez... ... ask choong hsiong and u'll regret it for the 18 hours he stalls you... ... ask him at six in the morning and prepare a blanket and pillow to sleep over at HCI... ...

Yongzhi said...

Mr Quek... ... you said you didn't know who Medivh was!? He's the Guardian of Tirisfal, the most powerful and respected by the Kirin Tor during early days of the War against Draenor Orcs by the Alliance! And THATS Warcraft!

By the way, Archmage come from the Kirin Tor. Paladins appear from the legion dubbed "Knights of the SIlver Hand", Blood Elves a group separated from High Elves (Soceresses, Priests). The Mountain Kings are dwarves (I think Aerie dwarves but I'm not sure... ...)

Javan said...
This comment has been removed by a blog administrator.
Javan said...

Dear Mr Quek,
Our very dear Yichao post a racist remark on his blog.

He even demanded that the man be released from prison. This shows that he thinks that those who made racist remarks should be forgiven. I wonder if he doesn't have a clear understanding of the need for racial harmony in our society.