wesnoth/data/test/macros/unit_setup.cfg

116 lines
1.6 KiB
INI

#textdomain wesnoth-test
#define SET_HP
#arg VALUE
1#endarg
[modify_unit]
[filter]
[/filter]
hitpoints = {VALUE}
[/modify_unit]
#enddef
#define TEST_ABILITY ABIL VALUE OTHER
#arg ID
1#endarg
#arg SELF
no#endarg
#arg ALLIES
no#endarg
#arg ENEMIES
no#endarg
#arg CUMULATIVE
no#endarg
[{ABIL}]
id = {ID}
name = _"test-{ABIL}_{ID}"
affect_self = {SELF}
affect_allies = {ALLIES}
affect_enemies = {ENEMIES}
value = {VALUE}
cumulative = {CUMULATIVE}
{OTHER}
[/{ABIL}]
#enddef
#define TEST_ABILITY_NO_VALUE ABIL OTHER
#arg ID
1#endarg
#arg SELF
no#endarg
#arg ALLIES
no#endarg
#arg ENEMIES
no#endarg
#arg CUMULATIVE
no#endarg
[{ABIL}]
id = {ID}
name = _"test-{ABIL}_{ID}"
affect_self = {SELF}
affect_allies = {ALLIES}
affect_enemies = {ENEMIES}
cumulative = {CUMULATIVE}
{OTHER}
[/{ABIL}]
#enddef
#define CUSTOM_TUNNEL SOURCE TARGET FILTER
#arg ID
1#endarg
#arg BIDIR
yes#endarg
#arg VISION
yes#endarg
#arg PASS_ALLIED
yes#endarg
#arg DVS
yes#endarg
[tunnel]
id=custom_teleport-{ID}
bidirectional={BIDIR}
allow_vision={VISION}
pass_allied_units={PASS_ALLIED}
delayed_variable_substitution={DVS}
{SOURCE}
{TARGET}
{FILTER}
[/tunnel]
#enddef
#define VILLAGE_TUNNEL
{CUSTOM_TUNNEL (
[source]
terrain=*^V*
[/source]
) (
[target]
terrain=*^V*
[/target]
) (
[filter][/filter]
)}
#enddef