Tutorial: Mottled Footpath
Too random? Not random enough? If I create a mottled footpath by hand, this question can haunt me for weeks. Better to use Hermit’s Heresy to generate a truly random one, and then make manual adjustments only where something obviously offends my taste.
This tutorial is standalone and can be done on any island, but can also be treated as a continuation of the Mottled Mountainside tutorial.
First we need to decide on a placeholder block which we know is not being used elsewhere. I choose the Seaside Scene block and know it is unused because I am on a fresh Buildertopia. Now use the trowel (or any technique of your choice) to define where the path should go:
(define path-mottler |
(build-mottler '[Grassy-Earth 1] |
'[Limegrassy-Earth 1] |
'[Mossy-Earth 1] |
'[Earth 1] |
'[Stony-Soil 2] |
'[Siltstone 2])) |
(define trav |
(traversal |
(cond |
[(block-matches? 'Seaside-Scene-Block) |
(set-block! (path-mottler))]))) |
(copy-all-save-files! #:from source-slot #:to dest-slot) |
(define stage (load-stage stage-id dest-slot)) |
(traverse stage trav) |
(save-stage! stage) |
Here is the result:
Hmm, I don’t like the way the path looks when it is adjacent to bare Earth. It doesn’t contrast well enough. So I’ll do a little manual trowel work to fix that:
#lang racket |
(require hermits-heresy) |
(save-dir "C:/Users/kramer/Documents/My Games/DRAGON QUEST BUILDERS II/Steam/76561198073553084/SD/") |
(define source-slot 'B02) ; slot 3 |
(define dest-slot 'B00) ; slot 1, my ephemeral slot |
(define stage-id 'BT1) ; Buildertopia 1 |
(define path-mottler |
(build-mottler '[Grassy-Earth 1] |
'[Limegrassy-Earth 1] |
'[Mossy-Earth 1] |
'[Earth 1] |
'[Stony-Soil 2] |
'[Siltstone 2])) |
(define trav |
(traversal |
(cond |
[(block-matches? 'Seaside-Scene-Block) |
(set-block! (path-mottler))]))) |
(copy-all-save-files! #:from source-slot #:to dest-slot) |
(define stage (load-stage stage-id dest-slot)) |
(traverse stage trav) |
(save-stage! stage) |
Good luck on the path.