additional changes to AI macros

This commit is contained in:
Iurii Chernyi 2009-11-11 21:16:55 +00:00
parent a69da1b92c
commit ac44576f15

View file

@ -207,6 +207,68 @@
#enddef
####
# simple aspect
#
#define AI_SIMPLE_ASPECT_VALUE ASPECT_ID FACET_ID VALUE
{AI_ASPECT {ASPECT_ID}
(
[facet]
id={FACET_ID}
[value]
{VALUE}
[/value]
[/facet]
)}
#enddef
####
# simple aspect which is always active
#
#define AI_SIMPLE_ALWAYS_ASPECT_VALUE ASPECT_ID VALUE
{AI_SIMPLE_ASPECT_VALUE {ASPECT_ID} "always" {VALUE}}
#enddef
####
# simple aspect which is active during a specified time of day
#
#define AI_SIMPLE_ASPECT_FOR_TIME_OF_DAY_VALUE ASPECT_ID FACET_ID TIMEOFDAY VALUE
{AI_ASPECT {ASPECT_ID}
(
[facet]
id={FACET_ID}
[value]
{VALUE}
[/value]
time_of_day={TIMEOFDAY}
[/facet]
)}
#enddef
####
# simple aspect which is active during the night
#
#define AI_SIMPLE_NIGHT_ASPECT_VALUE ASPECT_ID VALUE
{AI_SIMPLE_ASPECT_FOR_TIME_OF_DAY_VALUE {ASPECT_ID} "night" "dusk,first_watch,second_watch" {VALUE} }
#enddef
####
# simple aspect which is active during the day
#
#define AI_SIMPLE_DAY_ASPECT_VALUE ASPECT_ID VALUE
{AI_SIMPLE_ASPECT_FOR_TIME_OF_DAY_VALUE {ASPECT_ID} "day" "dawn,morning,afternoon" {VALUE} }
#enddef
############################################################
# ASPECTS - SIMPLE - ADD (NO PREAMBLE NEEDED)
############################################################
@ -271,6 +333,69 @@
####
# modify ai, add simple facet to an aspect
#
#define MODIFY_AI_ADD_SIMPLE_ASPECT_VALUE SIDE ASPECT_ID FACET_ID VALUE
{MODIFY_AI_ADD_ASPECT {SIDE} {ASPECT_ID}
(
[facet]
id={FACET_ID}
[value]
{VALUE}
[/value]
[/facet]
)}
#enddef
####
# modify ai, add simple aspect which is always active
#
#define MODIFY_AI_ADD_SIMPLE_ALWAYS_ASPECT_VALUE SIDE ASPECT_ID VALUE
{MODIFY_AI_ADD_SIMPLE_ASPECT_VALUE {SIDE} {ASPECT_ID} "always" {VALUE}}
#enddef
####
# modify ai, add simple aspect which is active during a specified time of day
#
#define MODIFY_AI_ADD_SIMPLE_ASPECT_FOR_TIME_OF_DAY_VALUE SIDE ASPECT_ID FACET_ID TIMEOFDAY VALUE
{MODIFY_AI_ADD_ASPECT {SIDE} {ASPECT_ID}
(
[facet]
id={FACET_ID}
[value]
{VALUE}
[/value]
time_of_day={TIMEOFDAY}
[/facet]
)}
#enddef
####
# modify ai, add simple aspect which is active during the night
#
#define MODIFY_AI_ADD_SIMPLE_NIGHT_ASPECT_VALUE SIDE ASPECT_ID VALUE
{MODIFY_AI_ADD_SIMPLE_ASPECT_FOR_TIME_OF_DAY_VALUE {SIDE} {ASPECT_ID} "night" "dusk,first_watch,second_watch" {VALUE} }
#enddef
####
# modify ai, add simple aspect which is active during the day
#
#define MODIFY_AI_ADD_SIMPLE_DAY_ASPECT_VALUE SIDE ASPECT_ID VALUE
{MODIFY_AI_ADD_SIMPLE_ASPECT_FOR_TIME_OF_DAY_VALUE {SIDE} {ASPECT_ID} "day" "dawn,morning,afternoon" {VALUE} }
#enddef
####
# make the AI team not recruit scouts.
#