• Studio

  • Studio API

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • CREATE

    Scripting

    Lua

    Edit

    Lua

    Introduction

    Lua is a lightweight, high-level scripting language designed for embedded systems and game development. It is known for its simplicity, flexibility, and ease of integration with other programming languages. In Highrise Studio, Lua is the primary scripting language used to create interactive gameplay, define behaviors, and customize game elements.

    Support in Highrise Studio

    In Highise Studio, Lua is used to script game logic, create interactive experiences, and enhance the functionality of your Highrise world. You can write Lua scripts to control game objects, handle player input, manage game states, and implement custom behaviors. Lua scripts are executed within the Highrise runtime environment, allowing you to interact with the game world and respond to events in real-time.

    You cannot use C# scripts in Highrise Studio. Lua is the only supported scripting language for creating games and experiences on the Highrise platform.

    Data Types

    • Nil - Represents the absence of a value.
    • Boolean - Represents true or false values.
    • Number - Represents numerical values.
    • String - Represents text or character data.
    • Table - Represents a collection of key-value pairs.

    Features

    • Variables - Containers for storing and manipulating data.
    • Control Structures - Statements controlling code execution flow.
    • Functions - Code blocks performing specific tasks.
    • Type Checking - Determining the data type of variables.
    • Scope - Visibility and accessibility of variables.
    • Operators - Symbols for performing operations.
    • Comments - Adding notes and explanations to scripts.

    Comparison to C#

    Best Practices

    Getting Started

    Resources

    Summary

    Lua is a versatile scripting language that offers a wide range of features for game development in Highrise Studio. By mastering Lua scripting, you can create engaging gameplay experiences, interactive environments, and custom game mechanics to bring your creative vision to life.

    Updated 4 months ago

    PocketWorlds Icon

    © 2024 Pocket Worlds. All rights reserved.