lets start
mapScripts:
- type: DEFAULT # forest, mountain
commands:
- type: addUFO
- type: addCraft
- type: addBlock
size: 2
executions: 2
- type: fillArea
i assume "size: 2 " means blocks of size 20x20
but can oxc handle non quadratic blocks 10x20 or 30*20 ?
can i use "size: [2,3]" to have a fixed 20x30 block?
- type: FARM
commands:
- type: addUFO
- type: addCraft
- type: fillArea
blocks: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18]
maxUses: [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]
i believe the blocks number corresponds with the position in the terrainlist
but do what is the number for the first entry in the list 0 or 1 ?
- type: addLine
label: 1
direction: vertical
executionChances: 50
rects:
- [1, 1, 4, 1]
label defines what block groups are used in this operation can i have multiple groups here ?
(if not i have to add a groups to the terrain for every operation with multiple blocktype sources)
i suppose "rects" defines where this operation takes place
since its a list you can select a bunch of possible regions
where is 1,1 ? most north, south,west or east blockposition?
is there a 0,0 position?
- type: URBAN
commands:
- type: addCraft
- type: addLine
label: 1
direction: vertical
executionChances: 50
rects:
- [1, 1, 4, 1]
- type: addLine
label: 2
conditionals: -1
executionChances: 50
direction: horizontal
rects:
- [1, 1, 1, 3]
- type: addLine
conditionals: [-1, -2]
ok does [-1,-2] means this:
if the last (-1) operation failed and the operation before last (-1)
failed execute this operation
(with negative=failed , positive = succes )
- type: ALIENBASE
commands:
- type: addBlock
groups: 2
executions: 2
- type: addBlock
size: 2
groups: 3
- type: addBlock
size: 2
executions: 3
- type: fillArea
groups: [0, 1]
freqs: [3, 2]
- type: digTunnel
direction: both
tunnelData:
level: 0
MCDReplacements:
- type: westWall
set: 2
entry: 18
- type: northWall
set: 2
entry: 17
- type: corner
set: 2
entry: 19
- type: floor
set: 1
entry: 63
...
- type: XBASE
commands:
- type: digTunnel
direction: both
tunnelData:
level: 0
MCDReplacements:
- type: westWall
set: 1
entry: 13
- type: northWall
set: 1
entry: 14
- type: fillArea
blocks: 20
in xcombase you do tunnel command before you fill the map
in alienbase you make the tunnel after you fill it
is there a reason for each operation position?
why does the alienbase need more mcd changes than the xcombase?
can i define the size of the tunnel and make small tunnels between blocks (make mansized "service-tunnel" in the upper layer of the xbase terrain)
- type: URBAN
commands:
- type: addCraft
- type: addLine
label: 1
direction: vertical
executionChances: 50
rects:
- [1, 1, 4, 1]
- type: addLine
label: 2
conditionals: -1
executionChances: 50
direction: horizontal
rects:
- [1, 1, 1, 3]
- type: addLine
conditionals: [-1, -2]
direction: both
rects:
- [1, 1, 3, 3]
here you give group 1 and 2 as blockgroups for the vertical/horizontal streets
but there is no such definition for the "direction: both" entry
how can i define these there and how can i say crossroads comes from group 56 ?
are the default values addlines/addcraft/addufo uses?
removeBlock
checkBlock
there is no example for the removeBlock /checkBlock command i found in the source