Scenario 1 rewrite and relevant dependencies.
Also bug update in Naga_Hunter.cfg.
This commit is contained in:
parent
da00b583b2
commit
9730b4d28e
6 changed files with 361 additions and 1444 deletions
22
data/campaigns/Under_the_Burning_Suns/changelog.txt
Normal file
22
data/campaigns/Under_the_Burning_Suns/changelog.txt
Normal file
|
@ -0,0 +1,22 @@
|
|||
1) Morning After
|
||||
|
||||
*Scrapped explicit turns declaration in favour of {TURNS}
|
||||
*Removed incorrect 'canrecruit' keys from side 2 and 3 declarations
|
||||
*Corrected recruitment ai comment
|
||||
*Optimised recruitment pattern declaration
|
||||
*Removed unnecessary leader teleportation and obsoleted comment
|
||||
*Scrapped explicit variable declarations in favour of {VARIABLE}
|
||||
*Removed 9 redundant variables
|
||||
*Rewritten mudcrawler encounter events to include the fact that you might see them for the first time at the barracks
|
||||
*Abandoned use of {FREE_UNIT} and {UNIT_T} custom macros in favour of {CREATE_UNIT}
|
||||
*Scrapped explicit incrementation in favour of custom {ADD} macro. Probably will be replaced by {VARIABLE_OP} in the future.
|
||||
*Rewritten barracks encounter to set rocky horrors die event after this one fired. Reduces amount of events on startup.
|
||||
Also the event now takes into account the fact that heroes might never seen mudcrawlers before.
|
||||
*Rewritten finding druids and deep one event to allow delation of two redundant variables.
|
||||
*Extracted dialogue from scouts events to a macro to save space. Rewritten the conditions to allow removal of redundant variable.
|
||||
*Rewritten necromancer arrival events. Redundant variable removed, explicit gold and income modifications replaced by {GOLD} {INCOME}
|
||||
*Scrapped unnecesary upkeep=full key
|
||||
*Macroised outlying village capture event. Saved loads of space in removing redundant declarations.
|
||||
|
||||
filesize before : 38KB
|
||||
filesize after : 33KB
|
|
@ -1,6 +1,6 @@
|
|||
Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Hd , Hd , Hd , Hd , Hd , Dd , Hd , Dd , Dd , Dd , Dd , Hd , Hd , Hd , Dd , Dd , Hd
|
||||
Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Hd , Dd , Dd , Dd , Hd , Dd , Dd , Hd , Hd , Hd , Hd , Hd , Hd , Hd , Hd , Hd , Hd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Hd
|
||||
Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Hd , Hd , Hd , Hd , Ce , 3 Ke , Ce , Hd , Hd , Hd , Dd , Dd , Dd^Vdt , Dd , Dd , Dd , Hd , Hd , Dd , Dd
|
||||
Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Hd , Hd , Hd , Hd , Ce , Ke , Ce , Hd , Hd , Hd , Dd , Dd , Dd^Vdt , Dd , Dd , Dd , Hd , Hd , Dd , Dd
|
||||
Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Hd , Hd , Dd , Dd , Hd , Dd , Hd , Hd , Ce , Ce , Ce , Hd , Hd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Hd , Hd , Dd , Dd
|
||||
Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Hd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd^Vdt , Hd , Hd , Hd , Hd , Hd , Hd , Hd , Dd , Dd , Dd^Vdt , Ww , Ww , Dd , Dd , Dd , Dd , Dd , Hd
|
||||
Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Hd , Hd , Hd , Hd , Hd , Hd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Hd , Dd , Dd , Dd , Dd , Hd , Hd , Hd , Dd , Dd , Dd , Dd , Dd , Ww , Ww , Dd , Dd , Dd , Dd , Dd , Dd
|
||||
|
@ -19,7 +19,7 @@ Dd , Dd , Dd , Dd , Dd , Dd
|
|||
Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Hd , Hd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd^Dc , Dd , Dd , Dd , Dd^Dr , Dd , Dd^Dc , Dd , Dd , Dd , Dd , Rd , Dd , Dd , Dd , Dd , Dd^Dr , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Hd
|
||||
Dd , Dd , Dd , Dd , Dd , Dd , Dd , Hd , Hd , Hd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd^Dc , Dd , Dd , Dd , Dd , Dd , Dd^Dr , Dd^Dc , Chr , Chr , Dd , Dd^Dr , Chr , Dd , Dd^Dr , Rd , Dd , Dd , Chr , Ch , Ch , Dd^Dr , Dd^Dc , Dd , Dd , Dd^Dc , Dd , Dd , Dd^Dc , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Hd , Hd , Hd , Hd , Hd
|
||||
Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Hd , Dd , Dd , Dd , Dd , Dd^Dc , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Chr , Dd^Dr , Dd , Dd , Dd^Dc , Dd , Dd , Dd^Dc , Chr , Rd , Chr , Dd^Dr , Dd^Dc , Dd , Dd , Dd^Dr , Dd^Dc , Dd , Dd^Dr , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd^Dc , Dd , Dd , Dd , Dd , Dd , Dd , Hd , Hd , Hd , Hd
|
||||
Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd^Dr , Dd^Dr , Dd^Dc , Dd , Dd , Dd^Dr , Dd , Rd , Rd , Rd , Dd , Dd , Rd , Dd , Dd , Chr , Ch , Dd^Dr , Dd , Dd , Chr , Dd^Dr , Dd^Dc , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Hd , Dd
|
||||
Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd^Dr , Dd^Dr , Dd^Dc , Dd , Dd , 1 Dd^Dr , Dd , Rd , Rd , Rd , Dd , Dd , Rd , Dd , Dd , Chr , Ch , Dd^Dr , Dd , Dd , Chr , Dd^Dr , Dd^Dc , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Hd , Dd
|
||||
Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd^Dc , Dd , Dd , Chr , Dd^Dc , Dd , Dd , Dd^Dc , Dd , Rd , Rd , Dd , Dd , Dd^Dr , Rd , Rd , Rd , Rd , Dd , Ch , Dd^Dc , Dd^Dr , Dd , Gg , Dd , Gg , Chr , Dd^Dr , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd
|
||||
Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd^Dc , Dd , Dd , Dd , Dd , Chr , Chr , Dd^Dr , Dd , Dd^Vda , Dd , Rd , Rd , Dd , Dd^Dr , Dd , Dd , Dd , Dd^Dc , Dd , Rd , Dd , Rd , Dd^Dr , Chr , Dd , Dd^Dr , Dd^Dc , Gg , Gg , Gg , Dd^Dc , Dd^Dr , Dd , Dd , Dd^Dc , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd
|
||||
Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Ch , Dd , Dd^Dc , Dd^Dr , Dd , Rd , Rd , Dd , Dd , Dd , Dd^Dc , Wo , Wo , Wo , Wo , Wo , Dd , Wo , Dd , Dd , Dd , Dd , Dd , Dd , Gg , Gg , Gg , Dd^Dr , Dd^Dc , Dd , Dd , Dd , Dd , Dd , Dd^Dc , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd
|
||||
|
@ -47,5 +47,4 @@ Dd , Dd , Dd , Dd , Dd , Dd
|
|||
Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd
|
||||
Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd
|
||||
Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd
|
||||
1 Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd
|
||||
|
||||
Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd , Dd
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -3919,635 +3919,38 @@ first_time_only=no
|
|||
# when you find a hex that is valid, check to see if a unit is already
|
||||
# there, if the hex is empty teleport Kaleh there
|
||||
|
||||
# x+0 y+1
|
||||
|
||||
[set_variable]
|
||||
name=kaleh_x
|
||||
value={X_LOC}
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=kaleh_y
|
||||
value={Y_LOC}
|
||||
[/set_variable]
|
||||
[store_locations]
|
||||
x={X_LOC}
|
||||
y={Y_LOC}
|
||||
radius=1
|
||||
[filter]
|
||||
[not]
|
||||
[/not]
|
||||
[/filter]
|
||||
terrain=Uu, Re, Uu^Vu, Cud, Ke, Uh, Uu^Uf
|
||||
variable=coords
|
||||
[/store_locations]
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=found_empty_hex
|
||||
numerical_equals=0
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
|
||||
[set_variable]
|
||||
name=temp_x
|
||||
value=$kaleh_x
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=temp_y
|
||||
value=$kaleh_y
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=temp_y
|
||||
add=1
|
||||
[/set_variable]
|
||||
|
||||
[store_locations]
|
||||
x=$temp_x
|
||||
y=$temp_y
|
||||
terrain=Uu, Re, Uu^Vu, Cud, Ke, Uh, Uu^Uf
|
||||
variable=hex_loc
|
||||
[/store_locations]
|
||||
|
||||
[set_variable]
|
||||
name=temp
|
||||
value=$hex_loc.length
|
||||
[/set_variable]
|
||||
|
||||
{CLEAR_VARIABLE hex_loc}
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=temp
|
||||
numerical_equals=1
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
|
||||
[if]
|
||||
[have_unit]
|
||||
x,y=$temp_x,$temp_y
|
||||
[not]
|
||||
[have_unit]
|
||||
x=$coords[0].x
|
||||
y=$coords[0].y
|
||||
side=1
|
||||
[/have_unit]
|
||||
|
||||
[then]
|
||||
# do nothing
|
||||
[/then]
|
||||
|
||||
[else]
|
||||
|
||||
[teleport]
|
||||
[filter]
|
||||
description=Kaleh
|
||||
[/filter]
|
||||
x,y=$temp_x,$temp_y
|
||||
[/teleport]
|
||||
|
||||
[/else]
|
||||
[/if]
|
||||
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
[/then]
|
||||
|
||||
[/if]
|
||||
|
||||
|
||||
# x+1 y+0
|
||||
[if]
|
||||
[variable]
|
||||
name=found_empty_hex
|
||||
numerical_equals=0
|
||||
[/variable]
|
||||
|
||||
[/have_unit]
|
||||
[/not]
|
||||
[then]
|
||||
|
||||
[set_variable]
|
||||
name=temp_x
|
||||
value=$kaleh_x
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=temp_y
|
||||
value=$kaleh_y
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=temp_x
|
||||
add=1
|
||||
[/set_variable]
|
||||
|
||||
[store_locations]
|
||||
x=$temp_x
|
||||
y=$temp_y
|
||||
terrain=Uu, Re, Uu^Vu, Cud, Ke, Uh, Uu^Uf
|
||||
variable=hex_loc
|
||||
[/store_locations]
|
||||
|
||||
[set_variable]
|
||||
name=temp
|
||||
value=$hex_loc.length
|
||||
[/set_variable]
|
||||
|
||||
{CLEAR_VARIABLE hex_loc}
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=temp
|
||||
numerical_equals=1
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
|
||||
[if]
|
||||
[have_unit]
|
||||
x,y=$temp_x,$temp_y
|
||||
side=1
|
||||
[/have_unit]
|
||||
|
||||
[then]
|
||||
# do nothing
|
||||
[/then]
|
||||
|
||||
[else]
|
||||
|
||||
[teleport]
|
||||
[teleport]
|
||||
[filter]
|
||||
description=Kaleh
|
||||
description=Kaleh
|
||||
[/filter]
|
||||
x,y=$temp_x,$temp_y
|
||||
[/teleport]
|
||||
|
||||
[/else]
|
||||
[/if]
|
||||
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
# x+0 y-1
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=found_empty_hex
|
||||
numerical_equals=0
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
|
||||
[set_variable]
|
||||
name=temp_x
|
||||
value=$kaleh_x
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=temp_y
|
||||
value=$kaleh_y
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=temp_y
|
||||
add=-1
|
||||
[/set_variable]
|
||||
|
||||
[store_locations]
|
||||
x=$temp_x
|
||||
y=$temp_y
|
||||
terrain=Uu, Re, Uu^Vu, Cud, Ke, Uh, Uu^Uf
|
||||
variable=hex_loc
|
||||
[/store_locations]
|
||||
|
||||
[set_variable]
|
||||
name=temp
|
||||
value=$hex_loc.length
|
||||
[/set_variable]
|
||||
|
||||
{CLEAR_VARIABLE hex_loc}
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=temp
|
||||
numerical_equals=1
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
|
||||
[if]
|
||||
[have_unit]
|
||||
x,y=$temp_x,$temp_y
|
||||
side=1
|
||||
[/have_unit]
|
||||
|
||||
[then]
|
||||
# do nothing
|
||||
[/then]
|
||||
|
||||
[else]
|
||||
|
||||
[teleport]
|
||||
[filter]
|
||||
description=Kaleh
|
||||
[/filter]
|
||||
x,y=$temp_x,$temp_y
|
||||
[/teleport]
|
||||
|
||||
[/else]
|
||||
[/if]
|
||||
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
# x-1 y+0
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=found_empty_hex
|
||||
numerical_equals=0
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
|
||||
[set_variable]
|
||||
name=temp_x
|
||||
value=$kaleh_x
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=temp_y
|
||||
value=$kaleh_y
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=temp_x
|
||||
add=-1
|
||||
[/set_variable]
|
||||
|
||||
[store_locations]
|
||||
x=$temp_x
|
||||
y=$temp_y
|
||||
terrain=Uu, Re, Uu^Vu, Cud, Ke, Uh, Uu^Uf
|
||||
variable=hex_loc
|
||||
[/store_locations]
|
||||
|
||||
[set_variable]
|
||||
name=temp
|
||||
value=$hex_loc.length
|
||||
[/set_variable]
|
||||
|
||||
{CLEAR_VARIABLE hex_loc}
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=temp
|
||||
numerical_equals=1
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
|
||||
[if]
|
||||
[have_unit]
|
||||
x,y=$temp_x,$temp_y
|
||||
side=1
|
||||
[/have_unit]
|
||||
|
||||
[then]
|
||||
# do nothing
|
||||
[/then]
|
||||
|
||||
[else]
|
||||
|
||||
[teleport]
|
||||
[filter]
|
||||
description=Kaleh
|
||||
[/filter]
|
||||
x,y=$temp_x,$temp_y
|
||||
[/teleport]
|
||||
|
||||
[/else]
|
||||
[/if]
|
||||
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
# x+1 y+1
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=found_empty_hex
|
||||
numerical_equals=0
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
|
||||
[set_variable]
|
||||
name=temp_x
|
||||
value=$kaleh_x
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=temp_y
|
||||
value=$kaleh_y
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=temp_x
|
||||
add=1
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=temp_y
|
||||
add=1
|
||||
[/set_variable]
|
||||
|
||||
[store_locations]
|
||||
x=$temp_x
|
||||
y=$temp_y
|
||||
terrain=Uu, Re, Uu^Vu, Cud, Ke, Uh, Uu^Uf
|
||||
variable=hex_loc
|
||||
[/store_locations]
|
||||
|
||||
[set_variable]
|
||||
name=temp
|
||||
value=$hex_loc.length
|
||||
[/set_variable]
|
||||
|
||||
{CLEAR_VARIABLE hex_loc}
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=temp
|
||||
numerical_equals=1
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
|
||||
[if]
|
||||
[have_unit]
|
||||
x,y=$temp_x,$temp_y
|
||||
side=1
|
||||
[/have_unit]
|
||||
|
||||
[then]
|
||||
# do nothing
|
||||
[/then]
|
||||
|
||||
[else]
|
||||
|
||||
[teleport]
|
||||
[filter]
|
||||
description=Kaleh
|
||||
[/filter]
|
||||
x,y=$temp_x,$temp_y
|
||||
[/teleport]
|
||||
|
||||
[/else]
|
||||
[/if]
|
||||
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
# x+1 y-1
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=found_empty_hex
|
||||
numerical_equals=0
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
|
||||
[set_variable]
|
||||
name=temp_x
|
||||
value=$kaleh_x
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=temp_y
|
||||
value=$kaleh_y
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=temp_x
|
||||
add=1
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=temp_y
|
||||
add=-1
|
||||
[/set_variable]
|
||||
|
||||
[store_locations]
|
||||
x=$temp_x
|
||||
y=$temp_y
|
||||
terrain=Uu, Re, Uu^Vu, Cud, Ke, Uh, Uu^Uf
|
||||
variable=hex_loc
|
||||
[/store_locations]
|
||||
|
||||
[set_variable]
|
||||
name=temp
|
||||
value=$hex_loc.length
|
||||
[/set_variable]
|
||||
|
||||
{CLEAR_VARIABLE hex_loc}
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=temp
|
||||
numerical_equals=1
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
|
||||
[if]
|
||||
[have_unit]
|
||||
x,y=$temp_x,$temp_y
|
||||
side=1
|
||||
[/have_unit]
|
||||
|
||||
[then]
|
||||
# do nothing
|
||||
[/then]
|
||||
|
||||
[else]
|
||||
|
||||
[teleport]
|
||||
[filter]
|
||||
description=Kaleh
|
||||
[/filter]
|
||||
x,y=$temp_x,$temp_y
|
||||
[/teleport]
|
||||
|
||||
[/else]
|
||||
[/if]
|
||||
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
# x-1 y+1
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=found_empty_hex
|
||||
numerical_equals=0
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
|
||||
[set_variable]
|
||||
name=temp_x
|
||||
value=$kaleh_x
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=temp_y
|
||||
value=$kaleh_y
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=temp_x
|
||||
add=-1
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=temp_y
|
||||
add=1
|
||||
[/set_variable]
|
||||
|
||||
[store_locations]
|
||||
x=$temp_x
|
||||
y=$temp_y
|
||||
terrain=Uu, Re, Uu^Vu, Cud, Ke, Uh, Uu^Uf
|
||||
variable=hex_loc
|
||||
[/store_locations]
|
||||
|
||||
[set_variable]
|
||||
name=temp
|
||||
value=$hex_loc.length
|
||||
[/set_variable]
|
||||
|
||||
{CLEAR_VARIABLE hex_loc}
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=temp
|
||||
numerical_equals=1
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
|
||||
[if]
|
||||
[have_unit]
|
||||
x,y=$temp_x,$temp_y
|
||||
side=1
|
||||
[/have_unit]
|
||||
|
||||
[then]
|
||||
# do nothing
|
||||
[/then]
|
||||
|
||||
[else]
|
||||
|
||||
[teleport]
|
||||
[filter]
|
||||
description=Kaleh
|
||||
[/filter]
|
||||
x,y=$temp_x,$temp_y
|
||||
[/teleport]
|
||||
|
||||
[/else]
|
||||
[/if]
|
||||
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
# x-1 y-1
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=found_empty_hex
|
||||
numerical_equals=0
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
|
||||
[set_variable]
|
||||
name=temp_x
|
||||
value=$kaleh_x
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=temp_y
|
||||
value=$kaleh_y
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=temp_x
|
||||
add=-1
|
||||
[/set_variable]
|
||||
|
||||
[set_variable]
|
||||
name=temp_y
|
||||
add=-1
|
||||
[/set_variable]
|
||||
|
||||
[store_locations]
|
||||
x=$temp_x
|
||||
y=$temp_y
|
||||
terrain=Uu, Re, Uu^Vu, Cud, Ke, Uh, Uu^Uf
|
||||
variable=hex_loc
|
||||
[/store_locations]
|
||||
|
||||
[set_variable]
|
||||
name=temp
|
||||
value=$hex_loc.length
|
||||
[/set_variable]
|
||||
|
||||
{CLEAR_VARIABLE hex_loc}
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=temp
|
||||
numerical_equals=1
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
|
||||
[if]
|
||||
[have_unit]
|
||||
x,y=$temp_x,$temp_y
|
||||
side=1
|
||||
[/have_unit]
|
||||
|
||||
[then]
|
||||
# do nothing
|
||||
[/then]
|
||||
|
||||
[else]
|
||||
|
||||
[teleport]
|
||||
[filter]
|
||||
description=Kaleh
|
||||
[/filter]
|
||||
x,y=$temp_x,$temp_y
|
||||
[/teleport]
|
||||
|
||||
[/else]
|
||||
[/if]
|
||||
|
||||
[/then]
|
||||
[/if]
|
||||
|
||||
x=$coords[0].x
|
||||
y=$coords[0].y
|
||||
[/teleport]
|
||||
[/then]
|
||||
[else]
|
||||
[/else]
|
||||
|
||||
[/if]
|
||||
|
||||
#enddef
|
||||
|
|
|
@ -86,7 +86,6 @@
|
|||
image="naga-hunter-ranged-2.png"
|
||||
sound=bow-miss.ogg
|
||||
[/frame]
|
||||
[/if]
|
||||
[/else]
|
||||
[frame]
|
||||
begin=-300
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
# The file contains useful macros I use within the campaign
|
||||
|
||||
#***Macro that will unclutter scenarios somewhat***
|
||||
#define ADD VAR AMOUNT
|
||||
[set_variable]
|
||||
name={VAR}
|
||||
add={AMOUNT}
|
||||
[/set_variable]
|
||||
#enddef
|
||||
|
||||
#create a loop that runs X times
|
||||
#define LOOP VAR
|
||||
[set_variable]
|
||||
|
|
Loading…
Add table
Reference in a new issue