Gave Li'sar the new "initiative" ability (gives melee firststrike for adjacent allies).
This commit is contained in:
parent
a93ca43d8c
commit
6ec38efb14
4 changed files with 138 additions and 7 deletions
|
@ -69,10 +69,12 @@
|
|||
[binary_path]
|
||||
path=data/campaigns/Heir_To_The_Throne
|
||||
[/binary_path]
|
||||
|
||||
{campaigns/Heir_To_The_Throne/utils}
|
||||
|
||||
[+units]
|
||||
{campaigns/Heir_To_The_Throne/units}
|
||||
[/units]
|
||||
|
||||
{campaigns/Heir_To_The_Throne/utils}
|
||||
{campaigns/Heir_To_The_Throne/scenarios}
|
||||
#endif
|
||||
|
|
|
@ -23,10 +23,10 @@
|
|||
cost=60
|
||||
[abilities]
|
||||
{ABILITY_LEADERSHIP_LEVEL_3}
|
||||
{ABILITY_SKIRMISHER}
|
||||
{ABILITY_INITIATIVE}
|
||||
[/abilities]
|
||||
usage=fighter
|
||||
description= _ "A noble by birth, the Princess has learnt swordplay with the greatest generals, and battle tactics with the greatest sages, making her both a great combatant and leader. Now battle-hardened and strong of will, she can now aid those around her in the art of combat."+{SPECIAL_NOTES}+{SPECIAL_NOTES_LEADERSHIP}+{SPECIAL_NOTES_SKIRMISHER}
|
||||
description= _ "A noble by birth, the Princess has learnt swordplay with the greatest generals, and battle tactics with the greatest sages, making her both a great combatant and leader. Now battle-hardened and strong of will, she can now aid those around her in the art of combat."+{SPECIAL_NOTES}+{SPECIAL_NOTES_LEADERSHIP}+{SPECIAL_NOTES_INITIATIVE}
|
||||
die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
|
||||
[attack]
|
||||
name=saber
|
||||
|
@ -53,6 +53,7 @@
|
|||
|
||||
{SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -50}
|
||||
[/attack_anim]
|
||||
{WEAPON_SPECIAL_INITIATIVE_EVENTS}
|
||||
[variation]
|
||||
variation_name=scepter
|
||||
id=Battle Princess
|
||||
|
@ -77,10 +78,10 @@
|
|||
cost=110
|
||||
[abilities]
|
||||
{ABILITY_LEADERSHIP_LEVEL_3}
|
||||
{ABILITY_SKIRMISHER}
|
||||
{ABILITY_INITIATIVE}
|
||||
[/abilities]
|
||||
usage=fighter
|
||||
description= _ "A noble by birth, the Princess has learnt swordplay with the greatest generals, and battle tactics with the greatest sages, making her both a great combatant and leader. Now battle-hardened and strong of will, she can now aid those around her in the art of combat."{SPECIAL_NOTES}+{SPECIAL_NOTES_LEADERSHIP}+{SPECIAL_NOTES_SKIRMISHER}+{SPECIAL_NOTES_MAGICAL}
|
||||
description= _ "A noble by birth, the Princess has learnt swordplay with the greatest generals, and battle tactics with the greatest sages, making her both a great combatant and leader. Now battle-hardened and strong of will, she can now aid those around her in the art of combat."{SPECIAL_NOTES}+{SPECIAL_NOTES_LEADERSHIP}+{SPECIAL_NOTES_INITIATIVE}+{SPECIAL_NOTES_MAGICAL}
|
||||
die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
|
||||
[attack]
|
||||
name=saber
|
||||
|
|
|
@ -27,9 +27,10 @@
|
|||
cost=39
|
||||
[abilities]
|
||||
{ABILITY_LEADERSHIP_LEVEL_2}
|
||||
{ABILITY_INITIATIVE}
|
||||
[/abilities]
|
||||
usage=fighter
|
||||
description= _ "A noble by birth, the Princess has learnt swordplay with the greatest generals and battle tactics with the greatest sages, making her both a great combatant and leader. The units of lower level around the Princess will fight better due to her presence."+{SPECIAL_NOTES}+{SPECIAL_NOTES_LEADERSHIP}
|
||||
description= _ "A noble by birth, the Princess has learnt swordplay with the greatest generals and battle tactics with the greatest sages, making her both a great combatant and leader. The units of lower level around the Princess will fight better due to her presence."+{SPECIAL_NOTES}+{SPECIAL_NOTES_LEADERSHIP}+{SPECIAL_NOTES_INITIATIVE}
|
||||
die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
|
||||
[attack]
|
||||
name=saber
|
||||
|
@ -63,6 +64,7 @@
|
|||
|
||||
{SOUND:HIT_AND_MISS {SOUND_LIST:SWORD_SWISH} {SOUND_LIST:MISS} -75}
|
||||
[/attack_anim]
|
||||
{WEAPON_SPECIAL_INITIATIVE_EVENTS}
|
||||
[variation]
|
||||
variation_name=scepter
|
||||
id=Princess
|
||||
|
@ -85,9 +87,10 @@
|
|||
cost=110
|
||||
[abilities]
|
||||
{ABILITY_LEADERSHIP_LEVEL_2}
|
||||
{ABILITY_INITIATIVE}
|
||||
[/abilities]
|
||||
usage=fighter
|
||||
description= _ "A noble by birth, the Princess has learnt swordplay with the greatest generals and battle tactics with the greatest sages, making her both a great combatant and leader. The units of lower level around the Princess will fight better due to her presence."+{SPECIAL_NOTES}+{SPECIAL_NOTES_LEADERSHIP}+{SPECIAL_NOTES_MAGICAL}
|
||||
description= _ "A noble by birth, the Princess has learnt swordplay with the greatest generals and battle tactics with the greatest sages, making her both a great combatant and leader. The units of lower level around the Princess will fight better due to her presence."+{SPECIAL_NOTES}+{SPECIAL_NOTES_LEADERSHIP}+{SPECIAL_NOTES_INITIATIVE}+{SPECIAL_NOTES_MAGICAL}
|
||||
die_sound={SOUND_LIST:HUMAN_FEMALE_DIE}
|
||||
[attack]
|
||||
name=saber
|
||||
|
|
125
data/campaigns/Heir_To_The_Throne/utils/abilities.cfg
Normal file
125
data/campaigns/Heir_To_The_Throne/utils/abilities.cfg
Normal file
|
@ -0,0 +1,125 @@
|
|||
#textdomain wesnoth-httt
|
||||
|
||||
# NOTE: This code is tailored for Li'sar in this campaign specifically, and will
|
||||
# not work correctly elsewhere without modification.
|
||||
|
||||
#define ABILITY_INITIATIVE
|
||||
[dummy]
|
||||
id=initiative
|
||||
name= _ "initiative"
|
||||
description= _ "All adjacent friendly units will strike first in melee combat, even when defending."
|
||||
[/dummy]
|
||||
#enddef
|
||||
|
||||
#define SPECIAL_NOTES_INITIATIVE
|
||||
_"This unit's grasp of melee tactics allows adjacent allies to strike the first blow even when defending."#enddef
|
||||
|
||||
#define INITIATIVE_OBJECT FILTER
|
||||
[object]
|
||||
silent=yes
|
||||
|
||||
[filter]
|
||||
{FILTER}
|
||||
[/filter]
|
||||
|
||||
[effect]
|
||||
apply_to=attack
|
||||
range=melee
|
||||
|
||||
[set_specials]
|
||||
mode=append
|
||||
|
||||
[firststrike]
|
||||
id=initiative
|
||||
name=""
|
||||
description=""
|
||||
[filter_self]
|
||||
[filter_adjacent]
|
||||
id="Li'sar"
|
||||
[/filter_adjacent]
|
||||
[/filter_self]
|
||||
[/firststrike]
|
||||
[/set_specials]
|
||||
[/effect]
|
||||
[/object]
|
||||
#enddef
|
||||
|
||||
#define LACKS_INITIATIVE_FILTER
|
||||
side=1,2
|
||||
|
||||
[filter_side]
|
||||
[allied_with]
|
||||
[has_unit]
|
||||
id="Li'sar"
|
||||
[/has_unit]
|
||||
[/allied_with]
|
||||
[/filter_side]
|
||||
|
||||
[filter_wml]
|
||||
[attack]
|
||||
range=melee
|
||||
[/attack]
|
||||
[/filter_wml]
|
||||
|
||||
[not]
|
||||
[filter_wml]
|
||||
[attack]
|
||||
range=melee
|
||||
[specials]
|
||||
[firststrike]
|
||||
[/firststrike]
|
||||
[/specials]
|
||||
[/attack]
|
||||
[/filter_wml]
|
||||
[/not]
|
||||
#enddef
|
||||
|
||||
#define WEAPON_SPECIAL_INITIATIVE_EVENTS
|
||||
[event]
|
||||
id=initiative_1
|
||||
name=prerecruit,prerecall
|
||||
first_time_only=no
|
||||
|
||||
[filter]
|
||||
{LACKS_INITIATIVE_FILTER}
|
||||
[/filter]
|
||||
|
||||
{INITIATIVE_OBJECT x,y=$x1,$y1}
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
id=initiative_2
|
||||
name=side 1 turn, side 2 turn
|
||||
first_time_only=no
|
||||
|
||||
[store_unit]
|
||||
[filter]
|
||||
{LACKS_INITIATIVE_FILTER}
|
||||
[/filter]
|
||||
|
||||
kill=no
|
||||
variable=units_lacking_initiative
|
||||
[/store_unit]
|
||||
|
||||
{FOREACH units_lacking_initiative i}
|
||||
{INITIATIVE_OBJECT x,y=$units_lacking_initiative[$i].x,$units_lacking_initiative[$i].y}
|
||||
{NEXT i}
|
||||
|
||||
{CLEAR_VARIABLE units_lacking_initiative}
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
id=initiative_3
|
||||
name=attack
|
||||
first_time_only=no
|
||||
|
||||
[filter_second]
|
||||
{LACKS_INITIATIVE_FILTER}
|
||||
[/filter_second]
|
||||
|
||||
{INITIATIVE_OBJECT x,y=$x2,$y2}
|
||||
[/event]
|
||||
#enddef
|
||||
|
||||
#undef INITIATIVE_OBJECT
|
||||
#undef LACKS_INITIATIVE_FILTER
|
Loading…
Add table
Reference in a new issue