Share Age of Empires 2 Random Map Script snippets online
/* to play the Capture the Relic gamemode on Voobly you need to put victory condition: Relics */
/* Part1/3 Disabling ability to build monasteries and changing their stats */
/* place under PLAYER_SETUP (below random placement) */
<PLAYER_SETUP>
#const RI_MONASTERY 210
#const MONASTERY_F 30
#const MONASTERY_C 31
#const MONASTERY_I 32
/* building more monasteries will be disabled */
effect_amount ENABLE_TECH RI_MONASTERY ATTR_DISABLE 210
/* makes it impossible to delete the monastery */
effect_amount SET_ATTRIBUTE MONASTERY ATTR_TRAITS 64
effect_amount SET_ATTRIBUTE MONASTERY_F ATTR_TRAITS 64
effect_amount SET_ATTRIBUTE MONASTERY_C ATTR_TRAITS 64
effect_amount SET_ATTRIBUTE MONASTERY_I ATTR_TRAITS 64
/* change the defensive properties of the monastery with 30000hitpoints, maximum armor, and a healing ability */
effect_amount SET_ATTRIBUTE MONASTERY ATTR_HITPOINTS 30000
effect_amount SET_ATTRIBUTE MONASTERY_F ATTR_HITPOINTS 30000
effect_amount SET_ATTRIBUTE MONASTERY_C ATTR_HITPOINTS 30000
effect_amount SET_ATTRIBUTE MONASTERY_I ATTR_HITPOINTS 30000
effect_amount SET_ATTRIBUTE MONASTERY ATTR_HERO_STATUS 4
effect_amount SET_ATTRIBUTE MONASTERY_F ATTR_HERO_STATUS 4
effect_amount SET_ATTRIBUTE MONASTERY_C ATTR_HERO_STATUS 4
effect_amount SET_ATTRIBUTE MONASTERY_I ATTR_HERO_STATUS 4
effect_amount SET_ATTRIBUTE MONASTERY ATTR_HERO_HEAL_TIME 1
effect_amount SET_ATTRIBUTE MONASTERY_F ATTR_HERO_HEAL_TIME 1
effect_amount SET_ATTRIBUTE MONASTERY_C ATTR_HERO_HEAL_TIME 1
effect_amount SET_ATTRIBUTE MONASTERY_I ATTR_HERO_HEAL_TIME 1
effect_amount SET_ATTRIBUTE MONASTERY ATTR_ARMOR 255
effect_amount SET_ATTRIBUTE MONASTERY ATTR_ARMOR 511
effect_amount SET_ATTRIBUTE MONASTERY ATTR_ARMOR 767
effect_amount SET_ATTRIBUTE MONASTERY ATTR_ARMOR 1023
effect_amount SET_ATTRIBUTE MONASTERY_F ATTR_ARMOR 255
effect_amount SET_ATTRIBUTE MONASTERY_F ATTR_ARMOR 511
effect_amount SET_ATTRIBUTE MONASTERY_F ATTR_ARMOR 767
effect_amount SET_ATTRIBUTE MONASTERY_F ATTR_ARMOR 1023
effect_amount SET_ATTRIBUTE MONASTERY_C ATTR_ARMOR 255
effect_amount SET_ATTRIBUTE MONASTERY_C ATTR_ARMOR 511
effect_amount SET_ATTRIBUTE MONASTERY_C ATTR_ARMOR 767
effect_amount SET_ATTRIBUTE MONASTERY_C ATTR_ARMOR 1023
effect_amount SET_ATTRIBUTE MONASTERY_I ATTR_ARMOR 255
effect_amount SET_ATTRIBUTE MONASTERY_I ATTR_ARMOR 511
effect_amount SET_ATTRIBUTE MONASTERY_I ATTR_ARMOR 767
effect_amount SET_ATTRIBUTE MONASTERY_I ATTR_ARMOR 1023