AToTB S01 and S02 mercenary spawn overhaul (#6186)

* Fix for #6183
This commit is contained in:
Descacharrado 2021-10-19 22:52:56 +02:00 committed by GitHub
parent ed6e014c2d
commit a292afe183
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 6 deletions

View file

@ -241,7 +241,7 @@ Will he heed the call? I do not know if he has kept the amulet; we have not spok
[event]
name=turn 10
{NEED_MERCENARY}
{NEED_MERCENARY 38 30}
[message]
speaker=Arvith

View file

@ -342,7 +342,7 @@ Besides... I want my brother back."
[/capture_village]
#endif
{NEED_MERCENARY}
{NEED_MERCENARY 1 49}
[/event]
[event]
@ -551,8 +551,6 @@ Either way, nothing will be gained by your intrusion into our woods. Now advance
id=Muff Toras
[/filter]
{NEED_MERCENARY}
[message]
speaker=unit
message= _ "Hah! You have captured me, but it will avail you nothing. I sent your precious brother the mage north with half my men a day since; he will be safely locked away in our masters dungeons by now."
@ -598,6 +596,8 @@ Either way, nothing will be gained by your intrusion into our woods. Now advance
[/heal_unit]
{CLEAR_VARIABLE heal_amount}
{NEED_MERCENARY 1 49}
[message]
role=Mercenary
message= _ "Captain, what are we riding into? I thought you wanted nothing to do with Baran any more, not since Toen Caric."

View file

@ -45,7 +45,7 @@
[/event]
#enddef
#define NEED_MERCENARY
#define NEED_MERCENARY FROM_X FROM_Y
[role]
role=Mercenary
@ -57,13 +57,26 @@
reassign=no
[auto_recall][/auto_recall]
[else]
[store_unit]
[filter]
id=Arvith
[/filter]
variable=temp
[/store_unit]
[move_unit_fake]
type=Horseman
x={FROM_X},$($temp.x-1)
y={FROM_Y},$temp.y
[/move_unit_fake]
[unit]
role=Mercenary
side=1
type=Horseman
placement=leader
x,y=$($temp.x-1),$temp.y
facing=ne
animate=no
[/unit]
{CLEAR_VARIABLE temp}
[/else]
[/role]
#enddef