SotBE S6: transport galleons now return after delivering troops
They now go back to the hex from where they came (bottom left corner) and disappear, rather than hanging out at the delivery point without doing anything.
This commit is contained in:
parent
55b0626bdf
commit
beac96055d
1 changed files with 23 additions and 29 deletions
|
@ -367,30 +367,6 @@
|
|||
[/unstore_unit]
|
||||
{NEXT i}
|
||||
|
||||
[store_unit]
|
||||
[filter]
|
||||
type=Transport Galleon
|
||||
side=3
|
||||
|
||||
[filter_wml]
|
||||
[variables]
|
||||
landed=yes
|
||||
[/variables]
|
||||
[/filter_wml]
|
||||
[/filter]
|
||||
|
||||
kill=yes
|
||||
variable=stored_transports
|
||||
[/store_unit]
|
||||
|
||||
{FOREACH stored_transports i}
|
||||
{VARIABLE stored_transports[$i].moves 0}
|
||||
|
||||
[unstore_unit]
|
||||
variable=stored_transports[$i]
|
||||
[/unstore_unit]
|
||||
{NEXT i}
|
||||
|
||||
{CLEAR_VARIABLE stored_transports}
|
||||
[/then]
|
||||
[/if]
|
||||
|
@ -419,12 +395,16 @@
|
|||
[/filter_wml]
|
||||
[/filter]
|
||||
|
||||
{VARIABLE unit.variables.landed yes}
|
||||
[modify_unit]
|
||||
[filter]
|
||||
id=$unit.id
|
||||
[/filter]
|
||||
|
||||
[unstore_unit]
|
||||
variable=unit
|
||||
find_vacant=no
|
||||
[/unstore_unit]
|
||||
goto_x,goto_y=1,30
|
||||
[variables]
|
||||
landed=yes
|
||||
[/variables]
|
||||
[/modify_unit]
|
||||
|
||||
{RANDOM 0..2}
|
||||
|
||||
|
@ -467,6 +447,20 @@
|
|||
[/message]
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
name=moveto
|
||||
first_time_only=no
|
||||
|
||||
[filter]
|
||||
type=Transport Galleon
|
||||
x,y=1,30
|
||||
[/filter]
|
||||
|
||||
[kill]
|
||||
id=$unit.id
|
||||
[/kill]
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
name=last breath
|
||||
[filter]
|
||||
|
|
Loading…
Add table
Reference in a new issue