# Define the Name of this Building Set
# Think of this as the "Map Name" in your lobby settings.
RuleSetName<override>:string = "MyProceduralFort"
# The Main Setup Function
# This is called when the game starts or the building is generated.
# PT (Piece Type) is like the "Gallery" you pick from.
SetupRules<override>(PT:piece_type_dir):void= {
# ---------------------------------------------------------
# RULES FOR ONE FLOOR
# This is the core logic for a single story of your building.
# ---------------------------------------------------------
FloorRules := vo_cornerwallsplit: {
# 1. Define the Corners (The Anchors)
# Like placing Spawn Points at the edges of your zone.
VO_CornerLength1 := vo_corner: {
VO_Corner := vo_prop: {
# Assign the Corner Prop from your Gallery
# This is like picking a specific wall piece from your Quick Bar.
Prop := PT.Building1_corner
}
}
# 2. Define the Walls/Faces (The Fillers)
# These connect the corners.
VO_Face := vo_prop: {
# Assign the Face/Prop piece
Prop := PT.Building1_face
}
Verse Library
verse
01 Fragment
Defines procedural building logic to generate a single-story fort using corner, face, and roof prop galleries.
verse-library/rules-for-one-floor-of-the-building/01-fragment.verse
Sign in free to read the full source 🌴
This Verse Library file is members-only. Create a free account to view the complete source and download the .verse file.