mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 06:24:03 +00:00
44 lines
1.2 KiB
INI
44 lines
1.2 KiB
INI
#define AI_ASPECT ID VALUE
|
|
#macro to define a simple facet of ai aspect
|
|
[aspect]
|
|
id={ID}
|
|
[facet]
|
|
id=simple
|
|
value={VALUE}
|
|
[/facet]
|
|
[/aspect]
|
|
#enddef
|
|
|
|
# #define AI_ASPECT_FOR_TIME_OF_DAY ID FACETID TIMEOFDAY VALUE
|
|
# #macro to define a simple facet of ai aspect which has an id of FACETID an is active during time of day TIMEOFDAY
|
|
#[aspect]
|
|
# id={ID}
|
|
# [facet]
|
|
# id={FACETID}
|
|
# time_of_day={TIMEOFDAY}
|
|
# value={VALUE}
|
|
# [/facet]
|
|
# [/aspect]
|
|
# #enddef
|
|
|
|
|
|
#define AI_NO_SCOUTS
|
|
# Macro to make an AI team not recruit scouts.
|
|
{AI_ASPECT villages_per_scout 0}
|
|
#enddef
|
|
|
|
|
|
# #define AI_CANDIDATE_ACTION_POISONING
|
|
# [candidate_action]
|
|
# engine=fai
|
|
# name=poisoner
|
|
# type=attack
|
|
# [filter]
|
|
# me="filter( input, 'me', filter(me.attacks,'att',filter(att.special,'spe',contains_string(spe,'poison'))))"
|
|
# target="filter( input, 'target', target.undead = 0 and target.hitpoints > 5 and index_of('poisoned',keys(target.states)) = -1)"
|
|
# [/filter]
|
|
# evaluation="{ai/formula/poisoner_eval.fai}"
|
|
# action="{ai/formula/poisoner_attack.fai}"
|
|
# [/candidate_action]
|
|
# #enddef
|