Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Scriptref Intro

From Lost City Wiki

Browse all Scriptref pages

RuneScript Reference/Scripting Tutorial

Disclaimer: this document is being written by a relative noob in an effort to document my findings and iron out any incorrect notions or faulty assumptions. It is not complete and may be (read: probably is) egregiously wrong in certain areas. Continue at your own peril!

Introduction

This document aims to acquaint new contributors with the basics of writing RuneScript as used by Lost City. Before reading, you are expected to have:

  • Decent reading comprehension
    • Go slowly and read each section multiple times if needed
  • Willingness to ask for help
    • Lost City is learning community and we are here to assist
  • Most importantly - a winning attitude!
    • If you get confused, ask a question and come back to the problem later

While not strictly required, having a working development environment set up on your computer would be a great advantage. You will be best able to follow along with the tutorial if you have:

Knowledge of basic programming fundamentals (variables, functions) will also help but is by no means required.

RuneScript

RuneScript files are written as plain text with the extension . RuneScript files are placed under `./data/src/scripts` in the server's source tree and are further organized by various criteria (area, quest, skill, etc).

The Lost City game server is capable of hot-reloading RuneScript files as you change them, meaning you can follow along with this tutorial and see your changes appear in-game in real time!

To learn the basics of RuneScript, continue with the next page of the tutorial where we examine triggers.

Next Page || Browse all Scriptref pages