Fix Urza Afalas being unable to move when you ally with him
(and also prevent him from moving when under AI control in a prettier way).
This commit is contained in:
parent
046e5b2bf4
commit
2ced849209
1 changed files with 42 additions and 32 deletions
|
@ -66,11 +66,6 @@
|
|||
user_description= _ "Urza Afalas"
|
||||
profile=portraits/urza-afalas-masked.png
|
||||
|
||||
[modifications]
|
||||
{TRAIT_RESILIENT}
|
||||
{TRAIT_INTELLIGENT}
|
||||
[/modifications]
|
||||
|
||||
{GOLD 50 70 90}
|
||||
{INCOME 2 3 5}
|
||||
|
||||
|
@ -162,28 +157,6 @@
|
|||
#endif
|
||||
[/side]
|
||||
|
||||
# Scenario Prestart
|
||||
|
||||
[event]
|
||||
name=prestart
|
||||
[store_unit]
|
||||
[filter]
|
||||
description=Urza Afalas
|
||||
[/filter]
|
||||
variable=urza_store
|
||||
[/store_unit]
|
||||
|
||||
# Prevent the Bandit leader from moving so his sighted event will fire correctly
|
||||
{VARIABLE urza_store.movement_costs.castle 20}
|
||||
{VARIABLE urza_store.movement_costs.grassland 20}
|
||||
{VARIABLE urza_store.movement_costs.forest 30}
|
||||
{VARIABLE urza_store.movement_costs.shallow_water 80}
|
||||
[unstore_unit]
|
||||
variable=urza_store
|
||||
[/unstore_unit]
|
||||
{CLEAR_VARIABLE urza_store}
|
||||
[/event]
|
||||
|
||||
# Scenario Start
|
||||
[event]
|
||||
name=start
|
||||
|
@ -305,6 +278,36 @@
|
|||
[/message]
|
||||
[/event]
|
||||
|
||||
# This event prevents the AI-controlled Urza from moving before he's
|
||||
# sighted. Should be removed if there is no problem with his sighted event
|
||||
# when he's allowed to move
|
||||
|
||||
[event]
|
||||
name=ai turn
|
||||
first_time_only=no
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=side_number
|
||||
equals=2
|
||||
[/variable]
|
||||
|
||||
[variable]
|
||||
name=side_with_bandits
|
||||
not_equals=no
|
||||
[/variable]
|
||||
|
||||
[variable]
|
||||
name=side_with_bandits
|
||||
not_equals=yes
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
{MODIFY_UNIT (description=Urza Afalas) moves 0}
|
||||
[/then]
|
||||
[/if]
|
||||
[/event]
|
||||
|
||||
# The adventurers locate the bandits: a choice must be made
|
||||
|
||||
[event]
|
||||
|
@ -421,12 +424,19 @@
|
|||
variable=stored_Urza_Afalas
|
||||
[/store_unit]
|
||||
|
||||
{VARIABLE stored_Urza_Afalas.overlays "misc/hero-icon.png"}
|
||||
{VARIABLE stored_Urza_Afalas.canrecruit 0}
|
||||
[unit]
|
||||
side=1
|
||||
type=Outlaw
|
||||
description=Urza Afalas
|
||||
user_description= _ "Urza Afalas"
|
||||
x,y=$stored_Urza_Afalas.x,$stored_Urza_Afalas.y
|
||||
profile=portraits/urza-afalas.png
|
||||
{IS_HERO}
|
||||
facing=$stored_Urza_Afalas.facing
|
||||
experience=$stored_Urza_Afalas.experience
|
||||
[/unit]
|
||||
|
||||
[unstore_unit]
|
||||
variable=stored_Urza_Afalas
|
||||
[/unstore_unit]
|
||||
{CLEAR_VARIABLE stored_Urza_Afalas}
|
||||
|
||||
[redraw]
|
||||
[/redraw]
|
||||
|
|
Loading…
Add table
Reference in a new issue