More resources at Random Maps

Upload your latest creations here.
Please note that by posting comments to posts in this forum you forfeit your personal copyright on whatever you post. AI Scripters reserves the right to re-use objective comments in script reviews without requiring the posting author's permission. Credit, where appropriate will be given in such cases.
Post Reply
AntonSynytsia
Forumer
Posts: 59
Joined: Wed Jul 04, 2012 4:49 pm

More resources at Random Maps

Post by AntonSynytsia »

Using the Turtle Pack, I thought it would be nice to add more gold, stone, and forage bushes to the random maps.
Advantage: When the Computer AI runs out of stone and gold at its base, it does not go off mining it at the corners of the map. The new gamedata_x1.drs adds more resources to the base of each player/AI, so that it will remain strong for the extended time.
Just 20 forage bushes, 8-12 gold/stone and more sheep, dear, and boar.
gamedata_x1.zip
Extract and place in C:\Program Files (x86)\Microsoft Games\Age of Empires II\Data\. Add the .bak extension to original one or just replace it.
(128.57 KiB) Downloaded 286 times
Example.jpg
Example.jpg (159.73 KiB) Viewed 2792 times

Archon
Waheguru
Posts: 1905
Joined: Sat Nov 08, 2003 9:22 am

Re: More resources at Random Maps

Post by Archon »

UP introduces resource_delta to address that so there is no need to clutter up your map like this.

AntonSynytsia
Forumer
Posts: 59
Joined: Wed Jul 04, 2012 4:49 pm

Re: More resources at Random Maps

Post by AntonSynytsia »

Hmm, really? :blink:
Could you be more specific on resource_delta, and how do I implement it?

Archon
Waheguru
Posts: 1905
Joined: Sat Nov 08, 2003 9:22 am

Re: More resources at Random Maps

Post by Archon »

About resource_delta
resource_delta inConstDelta
• Modify the resources of a specific instance of an object.
• Section: OBJECTS_GENERATION :: create_object
Examples for resource_delta

1. Remove 100 gold from a gold-mine object.

<OBJECTS_GENERATION>
create_object GOLD
{
number_of_objects 7
resource_delta -100
}
Source: the reference file that came with the UP.

Post Reply