park object provides access to park management, finances, ratings, and guest-related functionality.
Financial Properties
The current cash balance of the park.
The current bank loan amount.
The maximum bank loan available.
The current entrance fee for the park.
The purchase price of one tile for park ownership.
The purchase price of one tile for construction rights.
Park Status
The park rating from 0 to 999.
The park value, updated every 512 ticks.
The company value, updated every 512 ticks.
Calculated as:
park.value + park.cash - park.bankLoanThe number of tiles on the map with park ownership or construction rights.
Updated every 4096 ticks.
The name of the park shown on the park entrance.
The penalty points currently applied to the park rating for drowned guests and crashed coaster cars.
Guest Management
The number of guests within the park (not including guests outside but still on the map).
The maximum number of guests that will spawn naturally (soft guest cap).
In scenarios with difficult guest generation, guests won’t spawn above this value without advertisements.
The probability out of 65535 that guests will spawn per tick.
Guests per second = 40 * (guestGenerationProbability / 65535)
The average amount of cash guests spawn with.
The average happiness guests spawn at (0-255).
The average hunger guests spawn at (0-255).
The average thirst guests spawn at (0-255).
The total number of guests that have entered the park.
The total amount of income gained from admissions into the park.
The sum of ride values, used to determine the most guests will pay to enter the park and for some awards.
Calculated as: sum of (ride value - ride price) * 2
generateGuest()
Spawns a new guest at a random peep spawn point.The “guest.generation” hook will be called before this function returns.
Research
The current research status, including what has and hasn’t been researched.
Park Flags
getFlag()
Gets whether a given flag is set.The flag to test. Can be:
"difficultGuestGeneration""difficultParkRating""forbidHighConstruction""forbidLandscapeChanges""forbidMarketingCampaigns""forbidTreeRemoval""freeParkEntry""noMoney""open""preferLessIntenseRides""preferMoreIntenseRides""scenarioCompleteNameInput""unlockAllPrices"
setFlag()
Sets a flag to the given value.The flag to set.
Whether to set or clear the flag.
Messages and Awards
The park message/notification queue and historical messages.
postMessage()
Posts a message to the park message queue.- Simple Message
- Detailed Message
The message text to post.
The current awards of the park.
clearAwards()
Clears all awards from the park.grantAward()
Grants an award to the park without checking eligibility.The award type to grant: “mostUntidy”, “mostTidy”, “bestRollerCoasters”, “bestValue”, “mostBeautiful”, “worstValue”, “safest”, “bestStaff”, “bestFood”, “worstFood”, “bestToilets”, “mostDisappointing”, “bestWaterRides”, “bestCustomDesignedRides”, “mostDazzlingRideColours”, “mostConfusingLayout”, “bestGentleRides”
If the park already has 4 active awards, the oldest will be removed.
Financial History
getMonthlyExpenditure()
Gets the monthly expenditure history for a given type.The type of expenditure: “ride_construction”, “ride_runningcosts”, “land_purchase”, “landscaping”, “park_entrance_tickets”, “park_ride_tickets”, “shop_sales”, “shop_stock”, “food_drink_sales”, “food_drink_stock”, “wages”, “marketing”, “research”, “interest”

