Created a version of RECALL_OR_CREATE...

...that allows the coder to specify the location where the unit would
be spawned/created.
This commit is contained in:
Steven Panek 2010-11-01 23:35:53 +00:00
parent 491686defd
commit 370e9a13e5

View file

@ -211,6 +211,29 @@
[/if]
#enddef
#define RECALL_OR_CREATE_TO_LOCATION WML ID_STRING X Y
# A substitute for [recall] that works even when there's no-one to recall
# useful for testing scenarios out of order.
[recall]
id={ID_STRING}
x={X}
y={Y}
[/recall]
[if]
[have_unit]
id={ID_STRING}
[/have_unit]
[else]
[unit]
{WML}
side=1
x={X}
y={Y}
[/unit]
[/else]
[/if]
#enddef
#define RECALL_OR_CREATE TYPE ID_STRING
# A substitute for [recall] that works even when there's no-one to recall
# useful for testing scenarios out of order.