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:
mattsc 2013-10-06 19:50:49 -07:00
parent 55b0626bdf
commit beac96055d

View file

@ -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]