• Studio

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • CREATE

    Scripting

    Edit

    Scripting

    Scripting is a powerful tool that allows you to create custom behaviors and interactions in your Studio projects. You can use scripting to create custom animations, control the behavior of objects, and even create mini-games.

    Language Support

    Highrise Studio supports scripting in Lua which is a lightweight, high-level scripting language designed for embedded systems and game development. Lua is known for its simplicity, flexibility, and ease of integration with other programming languages.

    Scripting in Highrise Studio

    In Highrise Studio, scripting is used to define game logic, create interactive experiences, and enhance the functionality of your Highrise world. You can write scripts to control game objects, handle player input, manage game states, and implement custom behaviors. 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.

    First Time Writing Scripts?

    Below are some resources to help you get started with scripting in Highrise Studio:

    Advanced Scripting

    Once you are comfortable with the basics of scripting in Highrise Studio, you can explore more advanced topics such as:

    • Scripting a GameObject - Learn how to script a GameObject in Highrise Studio.
    • Unity Functions - Explore the built-in Unity functions available for scripting in Highrise Studio.
    • Triggers - Understand how to use triggers in your Lua scripts to create interactive experiences.

    Scripting Best Practices

    To ensure your scripts are efficient, maintainable, and easy to debug, consider following these best practices:

    • Code Organization - Organize your Lua scripts to improve readability and maintainability.
    • Name Conventions - Follow naming conventions to make your scripts more understandable and consistent.

    Summary

    Scripting in Highrise Studio allows you to create custom behaviors, interactions, and experiences in your projects. By writing Lua scripts, you can define game logic, control game objects, and enhance the functionality of your Highrise world. Whether you are a beginner or an experienced developer, scripting in Highrise Studio offers a powerful and flexible way to bring your ideas to life.

    Updated 15 days ago

    PocketWorlds Icon

    © 2024 Pocket Worlds. All rights reserved.