Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Scripting Introduction

Hypatech edited this page Sep 20, 2021 · 2 revisions

WIP page NOTE: This tutorial is going to be focused on teaching non-programmers how to script in Lua. If its too basic / not basic enough, please let us know!

Introduction

ULTRAKIT allows you to write custom scripts that to create entirely new behaviours for your content. These scripts are loaded by ULTRAKIT and given some default values to interact with the games code. They can be used to do almost anything within reason, and are therefore a very powerful tool.

However, scripting requires a little bit of knowledge on programming; this tutorial aims to catch non-programmers up to speed so that they can start making some basic addons

What is a script?

A script is a set of instructions that are executed line-by-line to try and perform some kind of task. For example, a very basic weapon script (at an abstract level) could be imagined as looking like this.

every frame: 
 was mouse pressed?
  yes: create a revolver beam
  no: do nothing