scripting:samples
Table of Contents
Script Samples
Possibly the best place to find script samples is to create a local world, pick one of the templates provided then examine the scripts that make up the template. (You can look at the scripts in the F10 → Script Editor in game, or browse to your LocalWorlds folder which will be in C:\Users\[UserName]\AppData\Local\Games For May\The Universal\ by default). By editing those template scripts and reloading them while in game (press F11 or use *reloadscript) you can immediately see how changes affect your world.
You can also find lots of examples of the scripting language functions in the reference documentation
.
Simple Samples
Building Samples
- Basic 'Gather Item' building
- Data-driven building construction screens
- Building Proximity Event
- Simple School Script
- Generic School Script (Complex) (Used on Lovelace)
OSD Samples
Minigame/event Samples
Subgame Samples
Cutscene Samples
Whole World Samples
scripting/samples.txt · Last modified: 2023/07/12 14:50 by mit