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:
parent
491686defd
commit
370e9a13e5
1 changed files with 23 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue