Added some macros to S2 to make the code more compact

This commit is contained in:
Bär Halberkamp 2013-12-14 20:29:50 +01:00
parent 8d12ff8208
commit b7a0f40e34

View file

@ -186,10 +186,7 @@
message= _ "Aye, well help ye, for we have nae love for the trolls. Anyone attacked by them deserves some help, I think."
[/message]
[if]
[variable]
name=undead
equals=yes
[/variable]
{VARIABLE_CONDITIONAL undead boolean_equals yes}
[then]
[message]
speaker=Dacyn
@ -269,61 +266,24 @@
#Mal-Bakral arrives
[event]
name=turn 6
[set_variable]
name=undead
value=yes
[/set_variable]
{VARIABLE undead yes}
[terrain]
x=2,3,4,2
y=4,4,4,5
terrain=Uu^Ii
[/terrain]
[unit]
type=Revenant
side=4
x=2
y=5
[/unit]
[unit]
type=Revenant
side=4
x=4
y=5
[/unit]
[unit]
type=Revenant
side=4
x=2
y=4
ai_special=guardian
[/unit]
[unit]
type=Revenant
side=4
x=4
y=4
ai_special=guardian
[/unit]
{GENERIC_UNIT 4 (Revenant) 2 5}
{GENERIC_UNIT 4 (Revenant) 4 5}
{GENERIC_UNIT 4 (Revenant) 2 4}
{GENERIC_UNIT 4 (Revenant) 4 4}
#ifdef HARD
[unit]
type=Bone Shooter
side=4
x=3
y=5
[/unit]
[unit]
type=Bone Shooter
side=4
x=3
y=4
ai_special=guardian
[/unit]
{GENERIC_UNIT 4 (Bone Shooter) 3 5}
{GENERIC_UNIT 4 (Bone Shooter) 3 4}
#endif
[remove_shroud]
side=1
x,y=3,3
x,y=2-4,3
[/remove_shroud]
[modify_side]
side=4
@ -359,9 +319,7 @@
speaker=Gweddry
message= _ "We have reached the end of the tunnel. I see daylight above us!"
[/message]
[clear_variable]
name=undead
[/clear_variable]
{CLEAR_VARIABLE undead}
[endlevel]
result=victory
bonus=yes