snippets.aoe2map.net

Share Age of Empires 2 Random Map Script snippets online

Change the amount of resources in a unit
/* ************************************************ */
/* Change the amount of wood in acacia trees to 100 */
/* ************************************************ */
#const ATTR_STORAGE_VALUE 21
#const DLC_ACACIATREE 1063 

<PLAYER_SETUP>
effect_amount SET_ATTRIBUTE DLC_ACACIATREE ATTR_STORAGE_VALUE 100

/* ***************************************** */
/* Change the amount of food in deer to 1000 */
/* ***************************************** */
#const ATTR_ATTR_STORAGE_VALUE 21
#const DEER 65 

<PLAYER_SETUP>
effect_amount SET_ATTRIBUTE DEER ATTR_STORAGE_VALUE 1000