#define ABILITY_FEEDING_ADVANCED [dummy] id=feedadv name=_"nazwa" description=_"opis" [/dummy] [/abilities] [event] name=die first_time_only=no [if] [variable] name=unit.race not_equals=undead [/variable] [and] [variable] name=unit.race not_equals=mechanical [/variable] [/and] [then] [switch] variable=unit.level [case] value=0 {VARIABLE amountofhitpoints 0} [/case] [case] value=1 {VARIABLE amountofhitpoints 2} [/case] [case] value=2 {VARIABLE amountofhitpoints 4} [/case] [case] value=3 {VARIABLE amountofhitpoints 8} [/case] [case] value=4 {VARIABLE amountofhitpoints 16} [/case] [else] {VARIABLE amountofhitpoints 32} [/else] [/switch] [heal_unit] [filter] x,y=$x2,$y2 [/filter] amount=$amountofhitpoints [/heal_unit] [/then] [/if] [/event] [+abilities]