Difference between revisions of "TerrainMacrosWML"
(Created page with '{{DevFeature1.9}} This page is entirely base on the 1.9 macros, they are very close to the 1.8 macros, but no attempt has been done to document the difference == Documentation f…') |
(→Documentation format) |
||
Line 18: | Line 18: | ||
* SOME_MACRO_B | * SOME_MACRO_B | ||
− | this is a toplevel macro, it is used directly in ''terrains-graphics.cfg'' ( | + | this is a toplevel macro, it is used directly in ''terrains-graphics.cfg'' (others : Internal,Builder) |
=== SOME_MACRO PARAM1 P=PROB=100 L=LAYER=0 F=FLAG=overlay B=BUILDER=IMAGE_SINGLE IMAGESTEM === | === SOME_MACRO PARAM1 P=PROB=100 L=LAYER=0 F=FLAG=overlay B=BUILDER=IMAGE_SINGLE IMAGESTEM === | ||
'''Toplevel''' | '''Toplevel''' | ||
+ | |||
+ | ''containing_filename.cfg'' | ||
This macro is an example for documentation | This macro is an example for documentation | ||
Line 32: | Line 34: | ||
* '''Param1''': description of a mandatory param | * '''Param1''': description of a mandatory param | ||
* '''P=Prob''': description of an optional param | * '''P=Prob''': description of an optional param | ||
+ | == Common Parameters == | ||
+ | |||
+ | These parameters are very common in animations, we document them here to avoid repetition | ||
+ | * '''PROB''' : The probability of the rules generated by the macros of being applied. See the discussion in [[TerrainGraphicsTutorial#Cumulative_Probabilities]] for complications | ||
+ | * '''LAYER''' : The layer that will be used for the generated rules | ||
+ | * '''BUILDER''' : the builder macro that will be used to create the animations in the image= field of the generated terrain code. See the dicussion at the begining of the builder section | ||
+ | * '''IMAGESTEM''': the basename on which filenames will be based. | ||
+ | == Image Builder macros == | ||
+ | === The problem === | ||
+ | suppose we want to animate a transition with the following line | ||
+ | image=image1;image2;image3 | ||
+ | Since it's a transition, we would like to write something like (simplified) | ||
+ | {TRANSITION_BASE <parameters> image1;image2;image3} | ||
+ | However, for a north transition, the macro would expand to something similar to | ||
+ | image=image1;image2;image3-n | ||
+ | Which is wrong, we want the prefix added to all images in the animation | ||
+ | image=image1-n;image2-n;image3-n | ||
+ | To get the result we want, we use macro indirection. In other word, we have a set of macros who take two parameters | ||
+ | #define BUILDER IMAGESTEM POSTFIX | ||
+ | Which are in charge of returning what should be on the right side of the image= So, with the following macro | ||
+ | #define MY_BUILDER IMAGESTEM POSTFIX | ||
+ | {IMAGESTEM}1{POSTFIX};{IMAGESTEM}2{POSTFIX};{IMAGESTEM}3{POSTFIX}; | ||
+ | and the following code in the TRANSITION_BASE macro | ||
+ | image={{BUILDER} {IMAGESTEM} -n} | ||
+ | a call to | ||
+ | {TRANSITION_BASE_B <parameters> MY_BUILDER image} | ||
+ | would correctly expand. | ||
+ | |||
+ | === Common parameters for all builders === | ||
+ | All builders must have exactly the same parameters | ||
+ | * IMAGESTEM : the base name of the image from which to build | ||
+ | * POSTFIX : a postfix to add to all images | ||
+ | |||
+ | === IMAGE_SINGLE IMAGESTEM POSTFIX === | ||
+ | '''Builer''' | ||
+ | |||
+ | ''builder.cfg'' | ||
+ | |||
+ | builds a single image image= line (i.e not animated) mainly used as default value for BUILDER parameter of meta-macros | ||
+ | === ANIMATION_03 IMAGESTEM POSTFIX === | ||
+ | '''Builer''' | ||
+ | |||
+ | ''builder.cfg'' | ||
+ | |||
+ | builds a Three image animation, each image being displayed for 100 ms | ||
+ | ==== Images Used ==== | ||
+ | * IMAGESTEM-A01 | ||
+ | * IMAGESTEM-A02 | ||
+ | * IMAGESTEM-A03 | ||
+ | === ANIMATION_04 IMAGESTEM POSTFIX === | ||
+ | '''Builer''' | ||
+ | |||
+ | ''builder.cfg'' | ||
+ | |||
+ | builds a four image animation, each image being displayed for 100 ms | ||
+ | ==== Images Used ==== | ||
+ | * IMAGESTEM-A01 | ||
+ | * IMAGESTEM-A02 | ||
+ | * IMAGESTEM-A03 | ||
+ | * IMAGESTEM-A04 | ||
+ | === ANIMATION_10 IMAGESTEM POSTFIX === | ||
+ | '''Builer''' | ||
+ | |||
+ | ''builder.cfg'' | ||
+ | |||
+ | builds a ten image animation, each image being displayed for 100 ms | ||
+ | ==== Images Used ==== | ||
+ | * IMAGESTEM-A01 | ||
+ | * IMAGESTEM-A02 | ||
+ | * IMAGESTEM-A03 | ||
+ | * IMAGESTEM-A04 | ||
+ | * IMAGESTEM-A05 | ||
+ | * IMAGESTEM-A06 | ||
+ | * IMAGESTEM-A07 | ||
+ | * IMAGESTEM-A08 | ||
+ | * IMAGESTEM-A09 | ||
+ | * IMAGESTEM-A10 | ||
+ | === ANIMATION_15 IMAGESTEM POSTFIX === | ||
+ | '''Builer''' | ||
+ | |||
+ | ''builder.cfg'' | ||
+ | |||
+ | builds a fifteen image animation, each image being displayed for 100 ms | ||
+ | ==== Images Used ==== | ||
+ | * IMAGESTEM-A01 | ||
+ | * IMAGESTEM-A02 | ||
+ | * IMAGESTEM-A03 | ||
+ | * IMAGESTEM-A04 | ||
+ | * IMAGESTEM-A05 | ||
+ | * IMAGESTEM-A06 | ||
+ | * IMAGESTEM-A07 | ||
+ | * IMAGESTEM-A08 | ||
+ | * IMAGESTEM-A09 | ||
+ | * IMAGESTEM-A10 | ||
+ | * IMAGESTEM-A11 | ||
+ | * IMAGESTEM-A12 | ||
+ | * IMAGESTEM-A13 | ||
+ | * IMAGESTEM-A14 | ||
+ | * IMAGESTEM-A15 | ||
+ | === ANIMATION_04_140 IMAGESTEM POSTFIX === | ||
+ | '''Builer''' | ||
+ | |||
+ | ''builder.cfg'' | ||
+ | |||
+ | builds a four image animation, each image being displayed for 140 ms | ||
+ | ==== Images Used ==== | ||
+ | * IMAGESTEM-A01 | ||
+ | * IMAGESTEM-A02 | ||
+ | * IMAGESTEM-A03 | ||
+ | * IMAGESTEM-A04 | ||
+ | === ANIMATION_18_70 IMAGESTEM POSTFIX === | ||
+ | '''Builer''' | ||
+ | |||
+ | ''builder.cfg'' | ||
+ | |||
+ | builds a eighteen image animation, each image being displayed for 100 ms | ||
+ | ==== Images Used ==== | ||
+ | * IMAGESTEM-A01 | ||
+ | * IMAGESTEM-A02 | ||
+ | * IMAGESTEM-A03 | ||
+ | * IMAGESTEM-A04 | ||
+ | * IMAGESTEM-A05 | ||
+ | * IMAGESTEM-A06 | ||
+ | * IMAGESTEM-A07 | ||
+ | * IMAGESTEM-A08 | ||
+ | * IMAGESTEM-A09 | ||
+ | * IMAGESTEM-A10 | ||
+ | * IMAGESTEM-A11 | ||
+ | * IMAGESTEM-A12 | ||
+ | * IMAGESTEM-A13 | ||
+ | * IMAGESTEM-A14 | ||
+ | * IMAGESTEM-A15 | ||
+ | * IMAGESTEM-A16 | ||
+ | * IMAGESTEM-A17 | ||
+ | * IMAGESTEM-A18 | ||
+ | |||
+ | |||
+ | == Base tile related macros == | ||
+ | |||
+ | == TO BE DOCUMENTED == | ||
+ | === adjacent.cfg === | ||
+ | #define TERRAIN_ADJACENT_4_FL LAYER TERRAIN ADJACENT IMAGESTEM FLAG | ||
+ | #define TERRAIN_ADJACENT_3_FL LAYER TERRAIN ADJACENT IMAGESTEM FLAG | ||
+ | #define TERRAIN_ADJACENT_2_FL LAYER TERRAIN ADJACENT IMAGESTEM FLAG | ||
+ | #define TERRAIN_ADJACENT_1_FL LAYER TERRAIN_PATTERN ADJACENT IMAGESTEM FLAG | ||
+ | #define TERRAIN_ADJACENT_FL LAYER TERRAIN_PATTERN ADJACENT IMAGESTEM FLAG | ||
+ | #define TERRAIN_ADJACENT LAYER TERRAIN_PATTERN ADJACENT IMAGESTEM | ||
+ | #define TERRAIN_ADJACENT_OV LAYER TERRAIN_PATTERN ADJACENT IMAGESTEM | ||
+ | #define TERRAIN_ADJACENT_CUSTOM LAYER TERRAIN_PATTERN ADJACENT IMAGESTEM FLAG | ||
+ | # define a specific rule for layering when the transition borders | ||
+ | #define TERRAIN_ADJACENT_3_DIFFERENT LAYER TERRAIN_PATTERN ADJACENT OTHER_TERRAIN_PATTERN IMAGESTEM FLAG | ||
+ | === base.cfg === | ||
+ | #define TERRAIN_BASE_PROB_FL TERRAIN_PATTERN IMAGESTEM PROB FLAG LAYER | ||
+ | #define TERRAIN_BASE_FL TERRAIN_PATTERN IMAGESTEM FLAG LAYER | ||
+ | #define TERRAIN_BASE_PROB TERRAIN_PATTERN IMAGESTEM PROB | ||
+ | #define TERRAIN_BASE_PROB_OV TERRAIN_PATTERN IMAGESTEM PROB | ||
+ | #define TERRAIN_BASE_OV TERRAIN_PATTERN IMAGESTEM | ||
+ | #define TERRAIN_BASE_DEFAULT IMAGESTEM | ||
+ | #define KEEP_BASE TERRAIN_PATTERN IMAGESTEM | ||
+ | === bridges.cfg === | ||
+ | #define IMAGE_L_N LAYER NAME | ||
+ | #define DOCK_END IMAGESTEM WATER_TERRAIN_NAME BRIDGETYPE_NAME BEACHSIDE_AFFIX X Y | ||
+ | #define RAMP_BRIDGE IMAGESTEM BRIDGETYPE_NAME BRIDGES_VALUE R0 R1 R2 R3 R4 R5 S0 S1 S2 S3 S4 S5 | ||
+ | #define RAMP_END IMAGESTEM WATER_TERRAIN_NAME NOTERM_AFFIX BRIDGETYPE_NAME R0 R1 R2 R3 R4 R5 X Y | ||
+ | #define BRIDGE_Y BRIDGETYPE1_NAME BRIDGETYPE2_NAME BRIDGETYPE3_NAME Y_IMAGE R0 R1 R2 R3 R4 R5 S0 S1 S2 S3 S4 S5 | ||
+ | #define BRIDGECONNECT BRIDGETYPE_NAME R0 R1 R2 R3 R4 R5 X Y | ||
+ | #define CORNER ANGLE_IMAGE BRIDGETYPE1_NAME BRIDGETYPE2_NAME A1 A2 A3 A4 A5 A6 S0 S1 S2 S3 S4 S5 | ||
+ | #define BRIDGE SE_NW_VALUE N_S_VALUE NE_SW_VALUE WATER_TERRAIN_NAME NOTERM_AFFIX IMAGESTEM | ||
+ | # these 3 macros define the default straight bridges | ||
+ | === builder.cfg === | ||
+ | #define ANIMATION_01_INTERNAL IMAGESTEM POSTFIX DURATION | ||
+ | #define ANIMATION_02_INTERNAL IMAGESTEM POSTFIX DURATION | ||
+ | #define ANIMATION_03_INTERNAL IMAGESTEM POSTFIX DURATION | ||
+ | #define ANIMATION_04_INTERNAL IMAGESTEM POSTFIX DURATION | ||
+ | #define ANIMATION_05_INTERNAL IMAGESTEM POSTFIX DURATION | ||
+ | #define ANIMATION_06_INTERNAL IMAGESTEM POSTFIX DURATION | ||
+ | #define ANIMATION_07_INTERNAL IMAGESTEM POSTFIX DURATION | ||
+ | #define ANIMATION_08_INTERNAL IMAGESTEM POSTFIX DURATION | ||
+ | #define ANIMATION_09_INTERNAL IMAGESTEM POSTFIX DURATION | ||
+ | #define ANIMATION_10_INTERNAL IMAGESTEM POSTFIX DURATION | ||
+ | #define ANIMATION_11_INTERNAL IMAGESTEM POSTFIX DURATION | ||
+ | #define ANIMATION_12_INTERNAL IMAGESTEM POSTFIX DURATION | ||
+ | #define ANIMATION_13_INTERNAL IMAGESTEM POSTFIX DURATION | ||
+ | #define ANIMATION_14_INTERNAL IMAGESTEM POSTFIX DURATION | ||
+ | #define ANIMATION_15_INTERNAL IMAGESTEM POSTFIX DURATION | ||
+ | #define ANIMATION_16_INTERNAL IMAGESTEM POSTFIX DURATION | ||
+ | #define ANIMATION_17_INTERNAL IMAGESTEM POSTFIX DURATION | ||
+ | #define ANIMATION_18_INTERNAL IMAGESTEM POSTFIX DURATION | ||
+ | #define BUILD_IMAGE BUILDER IMAGESTEM POSTFIX | ||
+ | === building.cfg === | ||
+ | #define BUILDING TERRAIN IMAGE_WML | ||
+ | #define BUILDING_PROBABILITY TERRAIN IMAGE_WML PROB | ||
+ | === canyon.cfg === | ||
+ | #define TRANS_0 TERRAIN | ||
+ | #define TRANS_1 TERRAIN | ||
+ | #define TRANS_2 TERRAIN | ||
+ | #define TRANS_3 TERRAIN | ||
+ | #define TRANS_4 TERRAIN | ||
+ | #define TRANS_5 TERRAIN | ||
+ | #define CANYON TERRAIN IMAGESTEM | ||
+ | === castles.cfg === | ||
+ | #define TERRAIN_ADJACENT_CORNER_LAYER TERRAIN1 TERRAIN2 TERRAIN3 LAYER BASE_POSITION IMAGESTEM | ||
+ | #define TERRAIN_ADJACENT_CORNER TERRAIN1 TERRAIN2 TERRAIN3 BASE_POSITION IMAGESTEM | ||
+ | #define TERRAIN_ADJACENT_CORNER_FLAG1 TERRAIN1 TERRAIN2 TERRAIN3 BASE_POSITION FLAG IMAGESTEM | ||
+ | #define TERRAIN_ADJACENT_CORNER_PROB TERRAIN1 TERRAIN2 TERRAIN3 BASE_POSITION IMAGESTEM PROB | ||
+ | === compat.cfg === | ||
+ | #define TERRAIN_ADJACENT_CORNER_BOTH INNER_TERRAIN_PATTERN OUTER_TERRAIN_PATTERN IMAGESTEM | ||
+ | #define TERRAIN_OVERLAY_PROB TERRAIN_PATTERN FLAG PROB IMAGESTEM | ||
+ | #define SHEX TYPE FLAG PROB TILE_NAME | ||
+ | #define SHEX_DOUBLE TYPE FLAG PROB TILE1_NAME TILE2_NAME | ||
+ | #define SHEX_LAYER TYPE FLAG LAYER PROB TILE_NAME | ||
+ | === corner_overlay.cfg === | ||
+ | #meta-macro CORNER_OVERLAY TERRAIN ADJACENT1 ADJACENT2 P=PROB=100 L=LAYER=0 B=BASE=(54,72) F=FLAG=overlay IMAGE | ||
+ | #define DISABLE_CORNER_TRANSITIONS_F TERRAIN FLAG | ||
+ | #define DISABLE_CORNER_TRANSITIONS TERRAIN | ||
+ | === foresetcastle.cfg === | ||
+ | #define FORESTADJCASTLEA FOREST_ID ID PROB TILE_IMAGE | ||
+ | #define FORESTADJCASTLES FOREST_ID ID PROB TILE_IMAGE | ||
+ | #define FORESTADJCASTLEO FOREST_ID ID PROB TILE_IMAGE | ||
+ | #define FORESTADJCASTLE FOREST_ID ID PROB TILE_IMAGE | ||
+ | #define FORESTADJ FOREST_ID ID PROB TILE_IMAGE | ||
+ | #define MOUNTAINADJCASTLEA FOREST_ID ID PROB TILE_IMAGE | ||
+ | === forest.cfg === | ||
+ | #define SINGLE_FOREST_TILE TERRAINLIST PROB IMAGESTEM | ||
+ | #define SINGLE_FOREST_TILE_RESTRICTED TERRAINLIST ADJACENT PROB IMAGESTEM | ||
+ | #define SIMPLE_FOREST_TERRAIN TERRAINLIST ADJACENT IMAGESTEM | ||
+ | === misc.cfg === | ||
+ | #meta-macro WALL_TRANSITION TERRAIN ADJACENT P=PROB=100 L=LAYER=0 F=FLAG=overlay IMAGESTEM | ||
+ | #meta-macro WALL_TRANSITION2 TERRAIN1 TERRAIN2 ADJACENT P=PROB=100 L=LAYER=0 F=FLAG=overlay IMAGESTEM | ||
+ | #meta-macro WALL_TRANSITION3 TERRAIN1 TERRAIN2 TERRAIN3 P=PROB=100 L=LAYER=0 F=FLAG=overlay IMAGESTEM | ||
+ | #define SIMPLE_OVERLAY_TERRAIN TERRAINLIST RESTRICTING IMAGESTEM | ||
+ | #define VILLAGE_PB TERRAIN PROB BUILDER IMAGESTEM | ||
+ | #define VILLAGE_P TERRAIN PROB IMAGESTEM | ||
+ | #define VILLAGE TERRAIN IMAGESTEM | ||
+ | === mountains.cfg === | ||
+ | #define MOUNTAINS_2x2 TERRAIN PROB FLAG IMAGESTEM | ||
+ | #define MOUNTAINS_2x4_NW_SE TERRAIN PROB FLAG IMAGESTEM | ||
+ | #define MOUNTAINS_2x4_SW_NE TERRAIN PROB FLAG IMAGESTEM | ||
+ | #define MOUNTAINS_1x3_NW_SE TERRAIN PROB FLAG IMAGESTEM | ||
+ | #define MOUNTAINS_1x3_SW_NE TERRAIN PROB FLAG IMAGESTEM | ||
+ | #define MOUNTAIN_SINGLE TERRAIN PROB FLAG IMAGESTEM | ||
+ | #define PEAKS_LARGE TERRAIN PROB FLAG IMAGESTEM | ||
+ | #define PEAKS_1x2_SW_NE TERRAIN PROB FLAG IMAGESTEM | ||
+ | === rails.cfg === | ||
+ | #define RAIL_SWITCH IMAGESTEM BRIDGETYPE_NAME BRIDGETYPE_JOIN_NAME SWITCHSIDE_AFFIX MAINRAIL_AFFIX SWITCH_REVERSE_AFFIX X Y | ||
+ | #define RAIL_END IMAGESTEM BRIDGETYPE_NAME TRACKSIDE_AFFIX X Y | ||
+ | #define RAILWAY SE_NW_VALUE N_S_VALUE NE_SW_VALUE IMAGESTEM | ||
+ | # these 3 macros define the default straight bridges | ||
+ | === random.cfg === | ||
+ | #meta-macro OVERLAY_RANDOM TERRAIN L=LAYER=0 F=FLAG=overlay IMAGESTEM | ||
+ | #meta-macro TERRAIN_BASE_RANDOM TERRAINLIST L=LAYER=-1000 F=FLAG=base IMAGESTEM | ||
+ | #define VILLAGE_RANDOM TERRAINLIST IMAGESTEM | ||
+ | restricted-transitions | ||
+ | #meta-macro OVERLAY_RESTRICTED TERRAIN ADJACENT P=PROB=100 L=LAYER=0 F=FLAG=overlay IMAGESTEM | ||
+ | #meta-macro OVERLAY_RESTRICTED2 TERRAIN ADJACENT P=PROB=100 L=LAYER=0 F=FLAG=overlay IMAGESTEM | ||
+ | #meta-macro OVERLAY_RESTRICTED3 TERRAIN ADJACENT P=PROB=100 L=LAYER=0 F=FLAG=overlay IMAGESTEM | ||
+ | #meta-macro TRANSITION_RESTRICTED TERRAIN ADJACENT P=PROB=100 L=LAYER=0 B=BASE=(90,144) F=FLAG=overlay IMAGESTEM | ||
+ | #meta-macro TRANSITION_RESTRICTED2 TERRAIN ADJACENT P=PROB=100 L=LAYER=0 B=BASE=(90,144) F=FLAG=overlay IMAGESTEM | ||
+ | #define OVERLAY_RESTRICTED2_N_NE_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM | ||
+ | #define OVERLAY_RESTRICTED2_N_SE_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM | ||
+ | #define OVERLAY_RESTRICTED2_N_S_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM | ||
+ | #define OVERLAY_RESTRICTED2_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM | ||
+ | #define OVERLAY_RESTRICTED3_N_NE_SE_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM | ||
+ | #define OVERLAY_RESTRICTED3_N_NE_S_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM | ||
+ | #define OVERLAY_RESTRICTED3_N_NE_SW_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM | ||
+ | #define OVERLAY_RESTRICTED3_N_SE_SW_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM | ||
+ | #define OVERLAY_RESTRICTED3_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM | ||
+ | === tiles.cfg === | ||
+ | #meta-macro TERRAIN_BASE TERRAIN P=PROB=100 L=LAYER=-1000 F=FLAG=base B=BUILDER=IMAGE_SINGLE IMAGESTEM | ||
+ | #meta-macro OVERLAY TERRAINLIST P=PROB=100 L=LAYER=0 F=FLAG=overlay B=BUILDER=IMAGE_SINGLE IMAGESTEM | ||
+ | === transitions_base === | ||
+ | #meta-macro TRANSITION_BASE TERRAIN ADJACENT P=PROB=100 L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM | ||
+ | #define TRANSITION1_BASE_PLFB TERRAIN ADJACENT PROB LAYER FLAG BUILDER IMAGESTEM | ||
+ | #define TRANSITION2_BASE_PLFB TERRAIN ADJACENT PROB LAYER FLAG BUILDER IMAGESTEM | ||
+ | #define TRANSITION3_BASE_PLFB TERRAIN ADJACENT PROB LAYER FLAG BUILDER IMAGESTEM | ||
+ | #define TRANSITION4_BASE_PLFB TERRAIN ADJACENT PROB LAYER FLAG BUILDER IMAGESTEM | ||
+ | #define DISABLE_BASE_TRANSITIONS_F TERRAIN FLAG | ||
+ | #define DISABLE_BASE_TRANSITIONS TERRAINLIST | ||
+ | === transitions_overlay === | ||
+ | #meta-macro TRANSITION1_OVERLAY TERRAIN ADJACENT P=PROB=100 L=LAYER=0 B=BASE=(90,144) F=FLAG=overlay IMAGE | ||
+ | #meta-macro TRANSITION2_OVERLAY TERRAIN ADJACENT P=PROB=100 L=LAYER=0 B=BASE=(90,144) F=FLAG=overlay IMAGE | ||
+ | === util.cfg === | ||
+ | #define VIMG BASE_STRING NAME_STRING | ||
+ | #define DISABLE_TRANSITIONS TERRAIN_PATTERN | ||
+ | #define FLAG_IF_ADJACENT TERRAIN ADJACENT FLAG | ||
+ | === walls.cfg === | ||
+ | #define IMAGE_NW BUILDER IMAGESTEM | ||
+ | #define IMAGE_N BUILDER IMAGESTEM | ||
+ | #define IMAGE_NE BUILDER IMAGESTEM | ||
+ | #define IMAGE_SE BUILDER IMAGESTEM | ||
+ | #define IMAGE_S BUILDER IMAGESTEM | ||
+ | #define IMAGE_SW BUILDER IMAGESTEM | ||
+ | #define IMAGE_NW_N BUILDER IMAGESTEM | ||
+ | #define IMAGE_N_NE BUILDER IMAGESTEM | ||
+ | #define IMAGE_NE_SE BUILDER IMAGESTEM | ||
+ | #define IMAGE_SE_S BUILDER IMAGESTEM | ||
+ | #define IMAGE_S_SW BUILDER IMAGESTEM | ||
+ | #define IMAGE_SW_NW BUILDER IMAGESTEM | ||
+ | #define IMAGE_NW_N_NE BUILDER IMAGESTEM | ||
+ | #define IMAGE_N_NE_SE BUILDER IMAGESTEM | ||
+ | #define IMAGE_NE_SE_S BUILDER IMAGESTEM | ||
+ | #define IMAGE_SE_S_SW BUILDER IMAGESTEM | ||
+ | #define IMAGE_S_SW_NW BUILDER IMAGESTEM | ||
+ | #define IMAGE_SW_NW_N BUILDER IMAGESTEM | ||
+ | #define IMAGE_N_NE_SE_S BUILDER IMAGESTEM | ||
+ | #define IMAGE_S_SW_NW_N BUILDER IMAGESTEM | ||
+ | #define IMAGE_NW_N_NE_SE BUILDER IMAGESTEM | ||
+ | #define IMAGE_SW_NW_N_NE BUILDER IMAGESTEM | ||
+ | #define IMAGE_NE_SE_S_SW BUILDER IMAGESTEM | ||
+ | #define IMAGE_SE_S_SW_NW BUILDER IMAGESTEM | ||
+ | #define IMAGE_NW_N_NE_SE_S BUILDER IMAGESTEM | ||
+ | #define IMAGE_N_NE_SE_S_SW BUILDER IMAGESTEM | ||
+ | #define IMAGE_NE_SE_S_SW_NW BUILDER IMAGESTEM | ||
+ | #define IMAGE_SE_S_SW_NW_N BUILDER IMAGESTEM | ||
+ | #define IMAGE_S_SW_NW_N_NE BUILDER IMAGESTEM | ||
+ | #define IMAGE_SW_NW_N_NE_SE BUILDER IMAGESTEM | ||
+ | #define IMAGE_N_NE_SE_S_SW_NW BUILDER IMAGESTEM | ||
+ | #define WALL_1_VARIATION PROB TERRAIN_PATTERN ADJACENT BUILDER IMAGESTEM | ||
+ | #define WALL_ADJACENT_1 TERRAIN_PATTERN ADJACENT BUILDER IMAGESTEM | ||
+ | #define WALL_2_VARIATION PROB TERRAIN_PATTERN ADJACENT BUILDER IMAGESTEM | ||
+ | #define WALL_ADJACENT_2 TERRAIN_PATTERN ADJACENT BUILDER IMAGESTEM | ||
+ | #define WALL_ADJACENT_3 TERRAIN_PATTERN ADJACENT BUILDER IMAGESTEM | ||
+ | #define WALL_ADJACENT_4 TERRAIN_PATTERN ADJACENT BUILDER IMAGESTEM | ||
+ | #define WALL_ADJACENT_5 TERRAIN_PATTERN ADJACENT BUILDER IMAGESTEM | ||
+ | #define WALL_ADJACENT_6 TERRAIN_PATTERN ADJACENT BUILDER IMAGESTEM | ||
+ | #define DISABLE_WALLS TERRAIN1 TERRAIN2 TERRAIN3 | ||
+ | #define WALL_ADJACENT TERRAIN_PATTERN ADJACENT BUILDER IMAGESTEM BASE_NAME |
Revision as of 17:53, 23 May 2010
Template:DevFeature1.9 This page is entirely base on the 1.9 macros, they are very close to the 1.8 macros, but no attempt has been done to document the difference
Contents
- 1 Documentation format
- 2 Common Parameters
- 3 Image Builder macros
- 3.1 The problem
- 3.2 Common parameters for all builders
- 3.3 IMAGE_SINGLE IMAGESTEM POSTFIX
- 3.4 ANIMATION_03 IMAGESTEM POSTFIX
- 3.5 ANIMATION_04 IMAGESTEM POSTFIX
- 3.6 ANIMATION_10 IMAGESTEM POSTFIX
- 3.7 ANIMATION_15 IMAGESTEM POSTFIX
- 3.8 ANIMATION_04_140 IMAGESTEM POSTFIX
- 3.9 ANIMATION_18_70 IMAGESTEM POSTFIX
- 4 Base tile related macros
- 5 TO BE DOCUMENTED
- 5.1 adjacent.cfg
- 5.2 base.cfg
- 5.3 bridges.cfg
- 5.4 builder.cfg
- 5.5 building.cfg
- 5.6 canyon.cfg
- 5.7 castles.cfg
- 5.8 compat.cfg
- 5.9 corner_overlay.cfg
- 5.10 foresetcastle.cfg
- 5.11 forest.cfg
- 5.12 misc.cfg
- 5.13 mountains.cfg
- 5.14 rails.cfg
- 5.15 random.cfg
- 5.16 tiles.cfg
- 5.17 transitions_base
- 5.18 transitions_overlay
- 5.19 util.cfg
- 5.20 walls.cfg
Documentation format
here is an example of macro
this is a macro with default parameters. It means that the following macros exist
- SOME_MACRO
- SOME_MACRO_P
- SOME_MACRO_PL
- SOME_MARCRO_PLF
- SOME_MACRO_PLFB
- SOME_MACRO_L
- SOME_MACRO_LF
- SOME_MACRO_LFB
- SOME_MACRO_F
- SOME_MACRO_FB
- SOME_MACRO_B
this is a toplevel macro, it is used directly in terrains-graphics.cfg (others : Internal,Builder)
SOME_MACRO PARAM1 P=PROB=100 L=LAYER=0 F=FLAG=overlay B=BUILDER=IMAGE_SINGLE IMAGESTEM
Toplevel
containing_filename.cfg
This macro is an example for documentation
Images used
- IMAGESTEM_n
- IMAGESTEM_tr
Parameters
- Param1: description of a mandatory param
- P=Prob: description of an optional param
Common Parameters
These parameters are very common in animations, we document them here to avoid repetition
- PROB : The probability of the rules generated by the macros of being applied. See the discussion in TerrainGraphicsTutorial#Cumulative_Probabilities for complications
- LAYER : The layer that will be used for the generated rules
- BUILDER : the builder macro that will be used to create the animations in the image= field of the generated terrain code. See the dicussion at the begining of the builder section
- IMAGESTEM: the basename on which filenames will be based.
Image Builder macros
The problem
suppose we want to animate a transition with the following line
image=image1;image2;image3
Since it's a transition, we would like to write something like (simplified)
{TRANSITION_BASE <parameters> image1;image2;image3}
However, for a north transition, the macro would expand to something similar to
image=image1;image2;image3-n
Which is wrong, we want the prefix added to all images in the animation
image=image1-n;image2-n;image3-n
To get the result we want, we use macro indirection. In other word, we have a set of macros who take two parameters
#define BUILDER IMAGESTEM POSTFIX
Which are in charge of returning what should be on the right side of the image= So, with the following macro
#define MY_BUILDER IMAGESTEM POSTFIX {IMAGESTEM}1{POSTFIX};{IMAGESTEM}2{POSTFIX};{IMAGESTEM}3{POSTFIX};
and the following code in the TRANSITION_BASE macro
image={{BUILDER} {IMAGESTEM} -n}
a call to
{TRANSITION_BASE_B <parameters> MY_BUILDER image}
would correctly expand.
Common parameters for all builders
All builders must have exactly the same parameters
- IMAGESTEM : the base name of the image from which to build
- POSTFIX : a postfix to add to all images
IMAGE_SINGLE IMAGESTEM POSTFIX
Builer
builder.cfg
builds a single image image= line (i.e not animated) mainly used as default value for BUILDER parameter of meta-macros
ANIMATION_03 IMAGESTEM POSTFIX
Builer
builder.cfg
builds a Three image animation, each image being displayed for 100 ms
Images Used
- IMAGESTEM-A01
- IMAGESTEM-A02
- IMAGESTEM-A03
ANIMATION_04 IMAGESTEM POSTFIX
Builer
builder.cfg
builds a four image animation, each image being displayed for 100 ms
Images Used
- IMAGESTEM-A01
- IMAGESTEM-A02
- IMAGESTEM-A03
- IMAGESTEM-A04
ANIMATION_10 IMAGESTEM POSTFIX
Builer
builder.cfg
builds a ten image animation, each image being displayed for 100 ms
Images Used
- IMAGESTEM-A01
- IMAGESTEM-A02
- IMAGESTEM-A03
- IMAGESTEM-A04
- IMAGESTEM-A05
- IMAGESTEM-A06
- IMAGESTEM-A07
- IMAGESTEM-A08
- IMAGESTEM-A09
- IMAGESTEM-A10
ANIMATION_15 IMAGESTEM POSTFIX
Builer
builder.cfg
builds a fifteen image animation, each image being displayed for 100 ms
Images Used
- IMAGESTEM-A01
- IMAGESTEM-A02
- IMAGESTEM-A03
- IMAGESTEM-A04
- IMAGESTEM-A05
- IMAGESTEM-A06
- IMAGESTEM-A07
- IMAGESTEM-A08
- IMAGESTEM-A09
- IMAGESTEM-A10
- IMAGESTEM-A11
- IMAGESTEM-A12
- IMAGESTEM-A13
- IMAGESTEM-A14
- IMAGESTEM-A15
ANIMATION_04_140 IMAGESTEM POSTFIX
Builer
builder.cfg
builds a four image animation, each image being displayed for 140 ms
Images Used
- IMAGESTEM-A01
- IMAGESTEM-A02
- IMAGESTEM-A03
- IMAGESTEM-A04
ANIMATION_18_70 IMAGESTEM POSTFIX
Builer
builder.cfg
builds a eighteen image animation, each image being displayed for 100 ms
Images Used
- IMAGESTEM-A01
- IMAGESTEM-A02
- IMAGESTEM-A03
- IMAGESTEM-A04
- IMAGESTEM-A05
- IMAGESTEM-A06
- IMAGESTEM-A07
- IMAGESTEM-A08
- IMAGESTEM-A09
- IMAGESTEM-A10
- IMAGESTEM-A11
- IMAGESTEM-A12
- IMAGESTEM-A13
- IMAGESTEM-A14
- IMAGESTEM-A15
- IMAGESTEM-A16
- IMAGESTEM-A17
- IMAGESTEM-A18
TO BE DOCUMENTED
adjacent.cfg
- define TERRAIN_ADJACENT_4_FL LAYER TERRAIN ADJACENT IMAGESTEM FLAG
- define TERRAIN_ADJACENT_3_FL LAYER TERRAIN ADJACENT IMAGESTEM FLAG
- define TERRAIN_ADJACENT_2_FL LAYER TERRAIN ADJACENT IMAGESTEM FLAG
- define TERRAIN_ADJACENT_1_FL LAYER TERRAIN_PATTERN ADJACENT IMAGESTEM FLAG
- define TERRAIN_ADJACENT_FL LAYER TERRAIN_PATTERN ADJACENT IMAGESTEM FLAG
- define TERRAIN_ADJACENT LAYER TERRAIN_PATTERN ADJACENT IMAGESTEM
- define TERRAIN_ADJACENT_OV LAYER TERRAIN_PATTERN ADJACENT IMAGESTEM
- define TERRAIN_ADJACENT_CUSTOM LAYER TERRAIN_PATTERN ADJACENT IMAGESTEM FLAG
- define a specific rule for layering when the transition borders
- define TERRAIN_ADJACENT_3_DIFFERENT LAYER TERRAIN_PATTERN ADJACENT OTHER_TERRAIN_PATTERN IMAGESTEM FLAG
base.cfg
- define TERRAIN_BASE_PROB_FL TERRAIN_PATTERN IMAGESTEM PROB FLAG LAYER
- define TERRAIN_BASE_FL TERRAIN_PATTERN IMAGESTEM FLAG LAYER
- define TERRAIN_BASE_PROB TERRAIN_PATTERN IMAGESTEM PROB
- define TERRAIN_BASE_PROB_OV TERRAIN_PATTERN IMAGESTEM PROB
- define TERRAIN_BASE_OV TERRAIN_PATTERN IMAGESTEM
- define TERRAIN_BASE_DEFAULT IMAGESTEM
- define KEEP_BASE TERRAIN_PATTERN IMAGESTEM
bridges.cfg
- define IMAGE_L_N LAYER NAME
- define DOCK_END IMAGESTEM WATER_TERRAIN_NAME BRIDGETYPE_NAME BEACHSIDE_AFFIX X Y
- define RAMP_BRIDGE IMAGESTEM BRIDGETYPE_NAME BRIDGES_VALUE R0 R1 R2 R3 R4 R5 S0 S1 S2 S3 S4 S5
- define RAMP_END IMAGESTEM WATER_TERRAIN_NAME NOTERM_AFFIX BRIDGETYPE_NAME R0 R1 R2 R3 R4 R5 X Y
- define BRIDGE_Y BRIDGETYPE1_NAME BRIDGETYPE2_NAME BRIDGETYPE3_NAME Y_IMAGE R0 R1 R2 R3 R4 R5 S0 S1 S2 S3 S4 S5
- define BRIDGECONNECT BRIDGETYPE_NAME R0 R1 R2 R3 R4 R5 X Y
- define CORNER ANGLE_IMAGE BRIDGETYPE1_NAME BRIDGETYPE2_NAME A1 A2 A3 A4 A5 A6 S0 S1 S2 S3 S4 S5
- define BRIDGE SE_NW_VALUE N_S_VALUE NE_SW_VALUE WATER_TERRAIN_NAME NOTERM_AFFIX IMAGESTEM
# these 3 macros define the default straight bridges
builder.cfg
- define ANIMATION_01_INTERNAL IMAGESTEM POSTFIX DURATION
- define ANIMATION_02_INTERNAL IMAGESTEM POSTFIX DURATION
- define ANIMATION_03_INTERNAL IMAGESTEM POSTFIX DURATION
- define ANIMATION_04_INTERNAL IMAGESTEM POSTFIX DURATION
- define ANIMATION_05_INTERNAL IMAGESTEM POSTFIX DURATION
- define ANIMATION_06_INTERNAL IMAGESTEM POSTFIX DURATION
- define ANIMATION_07_INTERNAL IMAGESTEM POSTFIX DURATION
- define ANIMATION_08_INTERNAL IMAGESTEM POSTFIX DURATION
- define ANIMATION_09_INTERNAL IMAGESTEM POSTFIX DURATION
- define ANIMATION_10_INTERNAL IMAGESTEM POSTFIX DURATION
- define ANIMATION_11_INTERNAL IMAGESTEM POSTFIX DURATION
- define ANIMATION_12_INTERNAL IMAGESTEM POSTFIX DURATION
- define ANIMATION_13_INTERNAL IMAGESTEM POSTFIX DURATION
- define ANIMATION_14_INTERNAL IMAGESTEM POSTFIX DURATION
- define ANIMATION_15_INTERNAL IMAGESTEM POSTFIX DURATION
- define ANIMATION_16_INTERNAL IMAGESTEM POSTFIX DURATION
- define ANIMATION_17_INTERNAL IMAGESTEM POSTFIX DURATION
- define ANIMATION_18_INTERNAL IMAGESTEM POSTFIX DURATION
- define BUILD_IMAGE BUILDER IMAGESTEM POSTFIX
building.cfg
- define BUILDING TERRAIN IMAGE_WML
- define BUILDING_PROBABILITY TERRAIN IMAGE_WML PROB
canyon.cfg
- define TRANS_0 TERRAIN
- define TRANS_1 TERRAIN
- define TRANS_2 TERRAIN
- define TRANS_3 TERRAIN
- define TRANS_4 TERRAIN
- define TRANS_5 TERRAIN
- define CANYON TERRAIN IMAGESTEM
castles.cfg
- define TERRAIN_ADJACENT_CORNER_LAYER TERRAIN1 TERRAIN2 TERRAIN3 LAYER BASE_POSITION IMAGESTEM
- define TERRAIN_ADJACENT_CORNER TERRAIN1 TERRAIN2 TERRAIN3 BASE_POSITION IMAGESTEM
- define TERRAIN_ADJACENT_CORNER_FLAG1 TERRAIN1 TERRAIN2 TERRAIN3 BASE_POSITION FLAG IMAGESTEM
- define TERRAIN_ADJACENT_CORNER_PROB TERRAIN1 TERRAIN2 TERRAIN3 BASE_POSITION IMAGESTEM PROB
compat.cfg
- define TERRAIN_ADJACENT_CORNER_BOTH INNER_TERRAIN_PATTERN OUTER_TERRAIN_PATTERN IMAGESTEM
- define TERRAIN_OVERLAY_PROB TERRAIN_PATTERN FLAG PROB IMAGESTEM
- define SHEX TYPE FLAG PROB TILE_NAME
- define SHEX_DOUBLE TYPE FLAG PROB TILE1_NAME TILE2_NAME
- define SHEX_LAYER TYPE FLAG LAYER PROB TILE_NAME
corner_overlay.cfg
- meta-macro CORNER_OVERLAY TERRAIN ADJACENT1 ADJACENT2 P=PROB=100 L=LAYER=0 B=BASE=(54,72) F=FLAG=overlay IMAGE
- define DISABLE_CORNER_TRANSITIONS_F TERRAIN FLAG
- define DISABLE_CORNER_TRANSITIONS TERRAIN
foresetcastle.cfg
- define FORESTADJCASTLEA FOREST_ID ID PROB TILE_IMAGE
- define FORESTADJCASTLES FOREST_ID ID PROB TILE_IMAGE
- define FORESTADJCASTLEO FOREST_ID ID PROB TILE_IMAGE
- define FORESTADJCASTLE FOREST_ID ID PROB TILE_IMAGE
- define FORESTADJ FOREST_ID ID PROB TILE_IMAGE
- define MOUNTAINADJCASTLEA FOREST_ID ID PROB TILE_IMAGE
forest.cfg
- define SINGLE_FOREST_TILE TERRAINLIST PROB IMAGESTEM
- define SINGLE_FOREST_TILE_RESTRICTED TERRAINLIST ADJACENT PROB IMAGESTEM
- define SIMPLE_FOREST_TERRAIN TERRAINLIST ADJACENT IMAGESTEM
misc.cfg
- meta-macro WALL_TRANSITION TERRAIN ADJACENT P=PROB=100 L=LAYER=0 F=FLAG=overlay IMAGESTEM
- meta-macro WALL_TRANSITION2 TERRAIN1 TERRAIN2 ADJACENT P=PROB=100 L=LAYER=0 F=FLAG=overlay IMAGESTEM
- meta-macro WALL_TRANSITION3 TERRAIN1 TERRAIN2 TERRAIN3 P=PROB=100 L=LAYER=0 F=FLAG=overlay IMAGESTEM
- define SIMPLE_OVERLAY_TERRAIN TERRAINLIST RESTRICTING IMAGESTEM
- define VILLAGE_PB TERRAIN PROB BUILDER IMAGESTEM
- define VILLAGE_P TERRAIN PROB IMAGESTEM
- define VILLAGE TERRAIN IMAGESTEM
mountains.cfg
- define MOUNTAINS_2x2 TERRAIN PROB FLAG IMAGESTEM
- define MOUNTAINS_2x4_NW_SE TERRAIN PROB FLAG IMAGESTEM
- define MOUNTAINS_2x4_SW_NE TERRAIN PROB FLAG IMAGESTEM
- define MOUNTAINS_1x3_NW_SE TERRAIN PROB FLAG IMAGESTEM
- define MOUNTAINS_1x3_SW_NE TERRAIN PROB FLAG IMAGESTEM
- define MOUNTAIN_SINGLE TERRAIN PROB FLAG IMAGESTEM
- define PEAKS_LARGE TERRAIN PROB FLAG IMAGESTEM
- define PEAKS_1x2_SW_NE TERRAIN PROB FLAG IMAGESTEM
rails.cfg
- define RAIL_SWITCH IMAGESTEM BRIDGETYPE_NAME BRIDGETYPE_JOIN_NAME SWITCHSIDE_AFFIX MAINRAIL_AFFIX SWITCH_REVERSE_AFFIX X Y
- define RAIL_END IMAGESTEM BRIDGETYPE_NAME TRACKSIDE_AFFIX X Y
- define RAILWAY SE_NW_VALUE N_S_VALUE NE_SW_VALUE IMAGESTEM
# these 3 macros define the default straight bridges
random.cfg
- meta-macro OVERLAY_RANDOM TERRAIN L=LAYER=0 F=FLAG=overlay IMAGESTEM
- meta-macro TERRAIN_BASE_RANDOM TERRAINLIST L=LAYER=-1000 F=FLAG=base IMAGESTEM
- define VILLAGE_RANDOM TERRAINLIST IMAGESTEM
restricted-transitions
- meta-macro OVERLAY_RESTRICTED TERRAIN ADJACENT P=PROB=100 L=LAYER=0 F=FLAG=overlay IMAGESTEM
- meta-macro OVERLAY_RESTRICTED2 TERRAIN ADJACENT P=PROB=100 L=LAYER=0 F=FLAG=overlay IMAGESTEM
- meta-macro OVERLAY_RESTRICTED3 TERRAIN ADJACENT P=PROB=100 L=LAYER=0 F=FLAG=overlay IMAGESTEM
- meta-macro TRANSITION_RESTRICTED TERRAIN ADJACENT P=PROB=100 L=LAYER=0 B=BASE=(90,144) F=FLAG=overlay IMAGESTEM
- meta-macro TRANSITION_RESTRICTED2 TERRAIN ADJACENT P=PROB=100 L=LAYER=0 B=BASE=(90,144) F=FLAG=overlay IMAGESTEM
- define OVERLAY_RESTRICTED2_N_NE_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM
- define OVERLAY_RESTRICTED2_N_SE_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM
- define OVERLAY_RESTRICTED2_N_S_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM
- define OVERLAY_RESTRICTED2_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM
- define OVERLAY_RESTRICTED3_N_NE_SE_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM
- define OVERLAY_RESTRICTED3_N_NE_S_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM
- define OVERLAY_RESTRICTED3_N_NE_SW_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM
- define OVERLAY_RESTRICTED3_N_SE_SW_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM
- define OVERLAY_RESTRICTED3_PLF TERRAIN ADJACENT PROB LAYER FLAG IMAGESTEM
tiles.cfg
- meta-macro TERRAIN_BASE TERRAIN P=PROB=100 L=LAYER=-1000 F=FLAG=base B=BUILDER=IMAGE_SINGLE IMAGESTEM
- meta-macro OVERLAY TERRAINLIST P=PROB=100 L=LAYER=0 F=FLAG=overlay B=BUILDER=IMAGE_SINGLE IMAGESTEM
transitions_base
- meta-macro TRANSITION_BASE TERRAIN ADJACENT P=PROB=100 L=LAYER=-500 F=FLAG=transition B=BUILDER=IMAGE_SINGLE IMAGESTEM
- define TRANSITION1_BASE_PLFB TERRAIN ADJACENT PROB LAYER FLAG BUILDER IMAGESTEM
- define TRANSITION2_BASE_PLFB TERRAIN ADJACENT PROB LAYER FLAG BUILDER IMAGESTEM
- define TRANSITION3_BASE_PLFB TERRAIN ADJACENT PROB LAYER FLAG BUILDER IMAGESTEM
- define TRANSITION4_BASE_PLFB TERRAIN ADJACENT PROB LAYER FLAG BUILDER IMAGESTEM
- define DISABLE_BASE_TRANSITIONS_F TERRAIN FLAG
- define DISABLE_BASE_TRANSITIONS TERRAINLIST
transitions_overlay
- meta-macro TRANSITION1_OVERLAY TERRAIN ADJACENT P=PROB=100 L=LAYER=0 B=BASE=(90,144) F=FLAG=overlay IMAGE
- meta-macro TRANSITION2_OVERLAY TERRAIN ADJACENT P=PROB=100 L=LAYER=0 B=BASE=(90,144) F=FLAG=overlay IMAGE
util.cfg
- define VIMG BASE_STRING NAME_STRING
- define DISABLE_TRANSITIONS TERRAIN_PATTERN
- define FLAG_IF_ADJACENT TERRAIN ADJACENT FLAG
walls.cfg
- define IMAGE_NW BUILDER IMAGESTEM
- define IMAGE_N BUILDER IMAGESTEM
- define IMAGE_NE BUILDER IMAGESTEM
- define IMAGE_SE BUILDER IMAGESTEM
- define IMAGE_S BUILDER IMAGESTEM
- define IMAGE_SW BUILDER IMAGESTEM
- define IMAGE_NW_N BUILDER IMAGESTEM
- define IMAGE_N_NE BUILDER IMAGESTEM
- define IMAGE_NE_SE BUILDER IMAGESTEM
- define IMAGE_SE_S BUILDER IMAGESTEM
- define IMAGE_S_SW BUILDER IMAGESTEM
- define IMAGE_SW_NW BUILDER IMAGESTEM
- define IMAGE_NW_N_NE BUILDER IMAGESTEM
- define IMAGE_N_NE_SE BUILDER IMAGESTEM
- define IMAGE_NE_SE_S BUILDER IMAGESTEM
- define IMAGE_SE_S_SW BUILDER IMAGESTEM
- define IMAGE_S_SW_NW BUILDER IMAGESTEM
- define IMAGE_SW_NW_N BUILDER IMAGESTEM
- define IMAGE_N_NE_SE_S BUILDER IMAGESTEM
- define IMAGE_S_SW_NW_N BUILDER IMAGESTEM
- define IMAGE_NW_N_NE_SE BUILDER IMAGESTEM
- define IMAGE_SW_NW_N_NE BUILDER IMAGESTEM
- define IMAGE_NE_SE_S_SW BUILDER IMAGESTEM
- define IMAGE_SE_S_SW_NW BUILDER IMAGESTEM
- define IMAGE_NW_N_NE_SE_S BUILDER IMAGESTEM
- define IMAGE_N_NE_SE_S_SW BUILDER IMAGESTEM
- define IMAGE_NE_SE_S_SW_NW BUILDER IMAGESTEM
- define IMAGE_SE_S_SW_NW_N BUILDER IMAGESTEM
- define IMAGE_S_SW_NW_N_NE BUILDER IMAGESTEM
- define IMAGE_SW_NW_N_NE_SE BUILDER IMAGESTEM
- define IMAGE_N_NE_SE_S_SW_NW BUILDER IMAGESTEM
- define WALL_1_VARIATION PROB TERRAIN_PATTERN ADJACENT BUILDER IMAGESTEM
- define WALL_ADJACENT_1 TERRAIN_PATTERN ADJACENT BUILDER IMAGESTEM
- define WALL_2_VARIATION PROB TERRAIN_PATTERN ADJACENT BUILDER IMAGESTEM
- define WALL_ADJACENT_2 TERRAIN_PATTERN ADJACENT BUILDER IMAGESTEM
- define WALL_ADJACENT_3 TERRAIN_PATTERN ADJACENT BUILDER IMAGESTEM
- define WALL_ADJACENT_4 TERRAIN_PATTERN ADJACENT BUILDER IMAGESTEM
- define WALL_ADJACENT_5 TERRAIN_PATTERN ADJACENT BUILDER IMAGESTEM
- define WALL_ADJACENT_6 TERRAIN_PATTERN ADJACENT BUILDER IMAGESTEM
- define DISABLE_WALLS TERRAIN1 TERRAIN2 TERRAIN3
- define WALL_ADJACENT TERRAIN_PATTERN ADJACENT BUILDER IMAGESTEM BASE_NAME