scripting:samples
This is an old revision of the document!
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
- Generic School Script (Used on Lovelace)
OSD Samples
Minigame/event Samples
Subgame Samples
Cutscene Samples
Whole World Samples
scripting/samples.1687633165.txt.gz · Last modified: 2023/06/24 13:59 by mit