UtBS: include stun weapon special events directly in Kaleh's unit type
This commit is contained in:
parent
fe73c98ad1
commit
b30e01422b
13 changed files with 87 additions and 96 deletions
|
@ -1431,9 +1431,6 @@
|
|||
[/message]
|
||||
[/event]
|
||||
|
||||
# Kaleh abilities - special custom AMLAS for Kaleh
|
||||
{UTBS_INCLUDE utils/kaleh-abilities.cfg}
|
||||
|
||||
# Common death events for heroes
|
||||
#define UTBS_GARAK_MUST_LIVE
|
||||
#enddef
|
||||
|
|
|
@ -2044,7 +2044,6 @@
|
|||
[/event]
|
||||
[/event]
|
||||
|
||||
{UTBS_INCLUDE utils/kaleh-abilities.cfg}
|
||||
#define UTBS_GARAK_MUST_LIVE
|
||||
#enddef
|
||||
{UTBS_INCLUDE utils/deaths.cfg}
|
||||
|
|
|
@ -2144,7 +2144,6 @@
|
|||
{CLEAR_VARIABLE killed_by_ystara}
|
||||
[/event]
|
||||
|
||||
{UTBS_INCLUDE utils/kaleh-abilities.cfg}
|
||||
#define UTBS_GARAK_MUST_LIVE
|
||||
#enddef
|
||||
{UTBS_INCLUDE utils/deaths.cfg}
|
||||
|
|
|
@ -1057,6 +1057,5 @@
|
|||
[/message]
|
||||
[/event]
|
||||
|
||||
{UTBS_INCLUDE utils/kaleh-abilities.cfg}
|
||||
{UTBS_INCLUDE utils/deaths.cfg}
|
||||
[/scenario]
|
||||
|
|
|
@ -2617,6 +2617,5 @@
|
|||
[/message]
|
||||
[/event]
|
||||
|
||||
{UTBS_INCLUDE utils/kaleh-abilities.cfg}
|
||||
{UTBS_INCLUDE utils/deaths.cfg}
|
||||
[/scenario]
|
||||
|
|
|
@ -1966,6 +1966,5 @@ _ "These undead trolls fight again in death as they did in life, except this tim
|
|||
[/message]
|
||||
[/event]
|
||||
|
||||
{UTBS_INCLUDE utils/kaleh-abilities.cfg}
|
||||
{UTBS_INCLUDE utils/deaths.cfg}
|
||||
[/scenario]
|
||||
|
|
|
@ -1738,6 +1738,5 @@
|
|||
[/message]
|
||||
[/event]
|
||||
|
||||
{UTBS_INCLUDE utils/kaleh-abilities.cfg}
|
||||
{UTBS_INCLUDE utils/deaths.cfg}
|
||||
[/scenario]
|
||||
|
|
|
@ -4540,6 +4540,5 @@
|
|||
{UNDERGROUND}
|
||||
[/time_area]
|
||||
|
||||
{UTBS_INCLUDE utils/kaleh-abilities.cfg}
|
||||
{UTBS_INCLUDE utils/deaths.cfg}
|
||||
[/scenario]
|
||||
|
|
|
@ -2828,6 +2828,5 @@
|
|||
{CLEAR_VARIABLE number_merfolk_deaths}
|
||||
[/event]
|
||||
|
||||
{UTBS_INCLUDE utils/kaleh-abilities.cfg}
|
||||
{UTBS_INCLUDE utils/deaths.cfg}
|
||||
[/scenario]
|
||||
|
|
|
@ -1502,6 +1502,5 @@
|
|||
[/fire_event]
|
||||
[/event]
|
||||
|
||||
{UTBS_INCLUDE utils/kaleh-abilities.cfg}
|
||||
{UTBS_INCLUDE utils/deaths.cfg}
|
||||
[/scenario]
|
||||
|
|
|
@ -1486,7 +1486,6 @@
|
|||
[/endlevel]
|
||||
[/event]
|
||||
|
||||
{UTBS_INCLUDE utils/kaleh-abilities.cfg}
|
||||
#define UTBS_IN_FINAL_FIGHT
|
||||
#enddef
|
||||
{UTBS_INCLUDE utils/deaths.cfg}
|
||||
|
|
|
@ -392,6 +392,8 @@ Enemy units cannot see this unit while it is in desert dunes, desert mountains,
|
|||
[/frame]
|
||||
{SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -100}
|
||||
[/attack_anim]
|
||||
|
||||
{WEAPON_SPECIAL_STUN_EVENTS}
|
||||
#enddef
|
||||
[unit_type]
|
||||
{KALEH_BASE}
|
||||
|
|
|
@ -2,96 +2,98 @@
|
|||
# add the events for Kaleh abilities
|
||||
|
||||
# the stun attack
|
||||
[event]
|
||||
name=attacker_hits
|
||||
first_time_only=no
|
||||
#define WEAPON_SPECIAL_STUN_EVENTS
|
||||
[event]
|
||||
name=attacker_hits
|
||||
first_time_only=no
|
||||
|
||||
[filter_attack]
|
||||
special=stun
|
||||
[/filter_attack]
|
||||
[filter_attack]
|
||||
special=stun
|
||||
[/filter_attack]
|
||||
|
||||
[filter_second]
|
||||
[not]
|
||||
level=0
|
||||
[or]
|
||||
status=stunned
|
||||
[/or]
|
||||
[/not]
|
||||
[/filter_second]
|
||||
[filter_second]
|
||||
[not]
|
||||
level=0
|
||||
[or]
|
||||
status=stunned
|
||||
[/or]
|
||||
[/not]
|
||||
[/filter_second]
|
||||
|
||||
{VARIABLE second_unit.status.stunned yes}
|
||||
{VARIABLE second_unit.status.stunned yes}
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=second_unit.gender
|
||||
equals=female
|
||||
[/variable]
|
||||
[if]
|
||||
[variable]
|
||||
name=second_unit.gender
|
||||
equals=female
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
[set_variable]
|
||||
name=tmp_stunned_text
|
||||
value= _ "female^stunned"
|
||||
[/set_variable]
|
||||
[/then]
|
||||
[then]
|
||||
[set_variable]
|
||||
name=tmp_stunned_text
|
||||
value= _ "female^stunned"
|
||||
[/set_variable]
|
||||
[/then]
|
||||
|
||||
[else]
|
||||
[set_variable]
|
||||
name=tmp_stunned_text
|
||||
value= _ "stunned"
|
||||
[/set_variable]
|
||||
[/else]
|
||||
[/if]
|
||||
|
||||
[unstore_unit]
|
||||
variable=second_unit
|
||||
find_vacant=no
|
||||
text=$tmp_stunned_text
|
||||
red,green,blue=196,196,128
|
||||
[/unstore_unit]
|
||||
|
||||
[object]
|
||||
silent=yes
|
||||
duration=turn end
|
||||
|
||||
[filter]
|
||||
x,y=$x2,$y2
|
||||
[/filter]
|
||||
|
||||
[effect]
|
||||
apply_to=image_mod
|
||||
replace="CS(50,50,0)"
|
||||
[/effect]
|
||||
|
||||
[effect]
|
||||
apply_to=zoc
|
||||
value=no
|
||||
[/effect]
|
||||
[/object]
|
||||
|
||||
[clear_variable]
|
||||
name=tmp_stunned_text
|
||||
[/clear_variable]
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
name=side turn end
|
||||
first_time_only=no
|
||||
|
||||
[store_unit]
|
||||
[filter]
|
||||
side=$side_number
|
||||
status=stunned
|
||||
[/filter]
|
||||
variable=stunned
|
||||
[/store_unit]
|
||||
|
||||
{FOREACH stunned i}
|
||||
{CLEAR_VARIABLE stunned[$i].status.stunned}
|
||||
[else]
|
||||
[set_variable]
|
||||
name=tmp_stunned_text
|
||||
value= _ "stunned"
|
||||
[/set_variable]
|
||||
[/else]
|
||||
[/if]
|
||||
|
||||
[unstore_unit]
|
||||
variable=stunned[$i]
|
||||
variable=second_unit
|
||||
find_vacant=no
|
||||
text=$tmp_stunned_text
|
||||
red,green,blue=196,196,128
|
||||
[/unstore_unit]
|
||||
{NEXT i}
|
||||
|
||||
{CLEAR_VARIABLE stunned}
|
||||
[/event]
|
||||
[object]
|
||||
silent=yes
|
||||
duration=turn end
|
||||
|
||||
[filter]
|
||||
x,y=$x2,$y2
|
||||
[/filter]
|
||||
|
||||
[effect]
|
||||
apply_to=image_mod
|
||||
replace="CS(50,50,0)"
|
||||
[/effect]
|
||||
|
||||
[effect]
|
||||
apply_to=zoc
|
||||
value=no
|
||||
[/effect]
|
||||
[/object]
|
||||
|
||||
[clear_variable]
|
||||
name=tmp_stunned_text
|
||||
[/clear_variable]
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
name=side turn end
|
||||
first_time_only=no
|
||||
|
||||
[store_unit]
|
||||
[filter]
|
||||
side=$side_number
|
||||
status=stunned
|
||||
[/filter]
|
||||
variable=stunned
|
||||
[/store_unit]
|
||||
|
||||
{FOREACH stunned i}
|
||||
{CLEAR_VARIABLE stunned[$i].status.stunned}
|
||||
|
||||
[unstore_unit]
|
||||
variable=stunned[$i]
|
||||
[/unstore_unit]
|
||||
{NEXT i}
|
||||
|
||||
{CLEAR_VARIABLE stunned}
|
||||
[/event]
|
||||
#enddef
|
||||
|
|
Loading…
Add table
Reference in a new issue