1#textdomain wesnoth-trow 2 3#I'm putting TROW's common Macros in here. 4#This should make my WML a little more sane 5#So Far: 6#LOOT 7#GUARD_UNIT 8#HERO 9#UNDEAD_INTEL 10#RISE_UP_RISE_UP 11 12#define HERO TYPE ID_STRING NAME_STRING SIDE X Y PROFILE 13 [unit] 14 type={TYPE} 15 id={ID_STRING} 16 name={NAME_STRING} 17 profile={PROFILE} 18 side={SIDE} 19 x={X} 20 y={Y} 21 {IS_HERO} 22 unrenamable=yes 23 random_traits=no 24 [modifications] 25 {TRAIT_LOYAL} 26 [/modifications] 27 [/unit] 28#enddef 29 30#define GUARD_UNIT TYPE ID_STRING NAME_STRING SIDE X Y 31 [unit] 32 type={TYPE} 33 id={ID_STRING} 34 name={NAME_STRING} 35 side={SIDE} 36 x={X} 37 y={Y} 38 39 ai_special=guardian 40 41 [modifications] 42 {TRAIT_LOYAL} 43 [/modifications] 44 {IS_LOYAL} 45 [/unit] 46#enddef 47 48#define UNDEAD_INTEL TYPE ID_STRING NAME_STRING PROFILE SIDE X Y 49 [unit] 50 type={TYPE} 51 id={ID_STRING} 52 name={NAME_STRING} 53 profile={PROFILE} 54 side={SIDE} 55 x={X} 56 y={Y} 57 [modifications] 58 {TRAIT_UNDEAD} 59 {TRAIT_LOYAL} 60 [/modifications] 61 {IS_LOYAL} 62 [/unit] 63#enddef 64 65#define LIVING_INTEL TYPE ID_STRING NAME_STRING PROFILE SIDE X Y 66 [unit] 67 type={TYPE} 68 id={ID_STRING} 69 name={NAME_STRING} 70 profile={PROFILE} 71 side={SIDE} 72 x={X} 73 y={Y} 74 random_traits=no 75 [modifications] 76 {TRAIT_LOYAL} 77 [/modifications] 78 {IS_LOYAL} 79 [/unit] 80#enddef 81 82#define RISE_UP_RISE_UP 83 [unit] 84 name= _ "A Former Friend" 85 type={ON_DIFFICULTY "Walking Corpse" "Walking Corpse" "Soulless"} 86 side=2 87 x=$x1 88 y=$y1 89 placement=map 90 overwrite=yes 91 moves=0 92 attacks_left=0 93 variation=$unit.undead_variation 94 animate=yes 95 [modifications] 96 {TRAIT_LOYAL} 97 [/modifications] 98 {IS_LOYAL} 99 [/unit] 100#enddef 101