<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.miniworldgame.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wiki.miniworldgame.com/feed.php">
        <title>WIKI - Mini World: CREATA developer_center:developer_editor:script</title>
        <description></description>
        <link>https://wiki.miniworldgame.com/</link>
        <image rdf:resource="https://wiki.miniworldgame.com/lib/exe/fetch.php?media=wiki:favicon.ico" />
       <dc:date>2026-04-11T12:39:34+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:actor_event&amp;rev=1690510329&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:area_event&amp;rev=1689662215&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:autotranslationscript&amp;rev=1763734427&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:backpack_event&amp;rev=1702534866&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:basiccommands&amp;rev=1726249965&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:basic_rankings&amp;rev=1715882714&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:block_event&amp;rev=1689650303&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:buff_event&amp;rev=1689682947&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:chat_class&amp;rev=1718260222&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:cloudsever&amp;rev=1763781003&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:control_structures_and_functions_in_lua&amp;rev=1720933498&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:conversation&amp;rev=1724667225&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:creatures_event&amp;rev=1713997191&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:currencyscript&amp;rev=1730894206&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:datatype&amp;rev=1721915932&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:developer_center_script_world_playsoundeffectonpos&amp;rev=1719592863&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:displayboard&amp;rev=1718546955&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:enter_string_position_to_teleport&amp;rev=1721381042&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:game_event&amp;rev=1732847618&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:graphics&amp;rev=1689695539&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:hpbar&amp;rev=1750745624&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:introduction_to_closures_in_lua&amp;rev=1723523323&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:introduction_to_coroutines_in_lua&amp;rev=1720831434&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:introduction_to_metatable_in_lua&amp;rev=1721087804&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:itemid&amp;rev=1702973812&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:items_event&amp;rev=1689658379&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lesson_1_learn_to_write_and_execute_simple_lua_programs_understand_variables_and_work_with_basic_data_types&amp;rev=1720000357&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_basic&amp;rev=1698121528&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_conditionals&amp;rev=1711221859&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_function&amp;rev=1711383412&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_loop&amp;rev=1711387838&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_mathlibrary&amp;rev=1707167949&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_patternmatching&amp;rev=1718260046&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_recursion&amp;rev=1707673782&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_string&amp;rev=1705913416&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_tables&amp;rev=1716695151&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_var&amp;rev=1711220151&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lucky_number_game&amp;rev=1714923240&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:mapmark&amp;rev=1718675324&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:miniapi_customevents&amp;rev=1707940162&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:miniapi_tutorialerrorhandling&amp;rev=1707261232&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:miniapi_tutorialevent&amp;rev=1713998384&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:miniapi_tutorialplayerattr&amp;rev=1713998580&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:miniapi_tutorialtriggervar&amp;rev=1722783307&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:minishop&amp;rev=1709766488&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:minitimer&amp;rev=1707233809&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:misc_func&amp;rev=1717551966&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:objectlib_event&amp;rev=1689683156&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:oop_customswords&amp;rev=1734900294&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:others_event&amp;rev=1707233718&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:particles_event&amp;rev=1727835445&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:password&amp;rev=1723522956&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:players_event&amp;rev=1752178254&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:pluginvsix&amp;rev=1691557118&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:rounding_a_string&amp;rev=1729178672&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:sound_event&amp;rev=1719592247&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:spawnport&amp;rev=1689696133&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:specialblock&amp;rev=1693116359&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:team_event&amp;rev=1689682645&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:teleportallplayer&amp;rev=1707662647&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:ui_animation&amp;rev=1718397015&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:ui_event&amp;rev=1747969456&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:valuegroup&amp;rev=1747969251&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:varlib&amp;rev=1747969266&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:worldcontainer&amp;rev=1689661043&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:world_event&amp;rev=1718265699&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.miniworldgame.com/lib/exe/fetch.php?media=wiki:favicon.ico">
        <title>WIKI - Mini World: CREATA</title>
        <link>https://wiki.miniworldgame.com/</link>
        <url>https://wiki.miniworldgame.com/lib/exe/fetch.php?media=wiki:favicon.ico</url>
    </image>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:actor_event&amp;rev=1690510329&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-07-28T02:12:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Actor Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:actor_event&amp;rev=1690510329&amp;do=diff</link>
        <description>Actor Class

Class For Actor Interface

Return To Previous Page

----------

How to Write Event

 ScriptSupportEvent:registerEvent([[EventName]],callbackFunctionName) 

Example

function Dies (event)

local ActorDie , ActorCause , Actorid = event.eventobjid , event.toobjid , event.actorid

end

 ScriptSupportEvent:registerEvent([[Actor.Die]],Dies)</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:area_event&amp;rev=1689662215&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-07-18T06:36:55+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Area Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:area_event&amp;rev=1689662215&amp;do=diff</link>
        <description>Area Class

Class For Area Interface

Return To Previous Page

----------

API list
  Class:apiName(parameters)    Return    Description   Area:createAreaRect(pos:table, dim:table)  ErrorCode.OK _ areaaid:number  Create a rectangular area  Area:createAreaRectByRange(posBeg:table, posEnd:table)</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:autotranslationscript&amp;rev=1763734427&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-11-21T14:13:47+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>How to Use Auto Translation on Script</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:autotranslationscript&amp;rev=1763734427&amp;do=diff</link>
        <description>How to Use Auto Translation on Script

In this tutorial, we will show a special new API to detect player language.


local result,languageCode,areaCountry = Player:GetLanguageAndRegion(playerid);


If the player's account was created in Indonesia and they're currently using the English language on their current session, this will be the output:</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:backpack_event&amp;rev=1702534866&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-12-14T06:21:06+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Backpack Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:backpack_event&amp;rev=1702534866&amp;do=diff</link>
        <description>Backpack Class

Class For Backpack Interface

Return To Previous Page

----------

API list
  Class:apiName(Parameters)    Return    Description    Notes   Backpack:getBackpackBarIDRange(bartype:number)  ErrorCode.OK _ begid:number, endid:number  Obtain the ID range of the prop inventory column (start ID ~ end ID)</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:basiccommands&amp;rev=1726249965&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-09-13T17:52:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>How to: Create Basic Commands with Scripts</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:basiccommands&amp;rev=1726249965&amp;do=diff</link>
        <description>How to: Create Basic Commands with Scripts

In this article, you will learn how to create your own commands. Commands may seem insignificant but they can greatly improving your, and your player's experience, for players, they provide quick access to game features, be it changing settings, spawning items, or teleporting to locations. And for developers they are especially useful when it comes to debugging, whether you need to test a new feature, change an in-game variable, or switch to another ga…</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:basic_rankings&amp;rev=1715882714&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-05-16T18:05:14+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>[Script component] Basic leaderboard</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:basic_rankings&amp;rev=1715882714&amp;do=diff</link>
        <description>[Script component] Basic leaderboard

The goal of this script component is to allow the map developer can easily have the leaderboard feature on their map. Please feel free to give feedback or report bugs or feature requests. 

Feature of this leaderboard script component</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:block_event&amp;rev=1689650303&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-07-18T03:18:23+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Block Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:block_event&amp;rev=1689650303&amp;do=diff</link>
        <description>Block Class

Class For Block Interface

Return To Previous Page

----------

How to Write Event

 ScriptSupportEvent:registerEvent([[EventName]],callbackFunctionName) 

Example

function Placed (e)

local blockid = e.blockid
local x,y,z = e.x,e.y,e.z

end

ScriptSupportEvent:registerEvent([[Block.Add]],Placed)</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:buff_event&amp;rev=1689682947&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-07-18T12:22:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Buff Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:buff_event&amp;rev=1689682947&amp;do=diff</link>
        <description>Buff Class

Class For Buff Interface

Return To Previous Page

----------

API list
  Class:apiName(parameters)    Return    Description   Buff:addBuff(objid:number, buffid:number, bufflv:number, customticks:number)  ErrorCode.OK  Add effects to the object  Buff:removeBuff(objid:number, buffid:number)</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:chat_class&amp;rev=1718260222&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-06-13T06:30:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Chat Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:chat_class&amp;rev=1718260222&amp;do=diff</link>
        <description>Chat Class

Class For Chat Interface

Return To Previous Page

----------

API list
  Class:apiName(parameters)    Return    Description   Example Chat:sendChat(content:string, targetuin:number)  ErrorCode.OK _  Send chat messages (default to all players)  Chat:sendSystemMsg(content:string, targetuin:number)  ErrorCode.OK _  Send system messages (by default all players)</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:cloudsever&amp;rev=1763781003&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-11-22T03:10:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Cloudsever Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:cloudsever&amp;rev=1763781003&amp;do=diff</link>
        <description>Cloudsever Class

Class For Cloudsever Interface

Return To Previous Page

----------

API list
  Class:apiName(parameters)    Return    Description  CloudSever:setOrderDataBykey(libvarname:string, Key:string,value)ErrorCode.OK Set the value of the specified key in the leaderboard</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:control_structures_and_functions_in_lua&amp;rev=1720933498&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-07-14T05:04:58+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Control Structures and Functions in Lua</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:control_structures_and_functions_in_lua&amp;rev=1720933498&amp;do=diff</link>
        <description>Control Structures and Functions in Lua

1. Conditional Statements

Conditional statements allow your program to make decisions based on certain conditions. In Lua, you use if, elseif, and else to implement conditional logic.

If Statement

The if statement evaluates a condition and executes a block of code if the condition is true.</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:conversation&amp;rev=1724667225&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-08-26T10:13:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Conversation</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:conversation&amp;rev=1724667225&amp;do=diff</link>
        <description>Conversation

Finished product



UI Design



Script


local next_button = nil
local previous_button = nil
local text_element = nil
local text_process = nil
local uiid = nil
local first_content_process = nil
local number_of_content = nil
local content_1 = nil
local content_2 = nil
local content_3 = nil

local click = 0

function button(e)
    if e.uielement == next_button then
        click = click + 1
    elseif e.uielement == previous_button then
        click = click - 1
    end

    if clic…</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:creatures_event&amp;rev=1713997191&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-24T22:19:51+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Creatures Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:creatures_event&amp;rev=1713997191&amp;do=diff</link>
        <description>Creatures Class

Class For Creatures Interface

Return To Previous Page

----------

Api List
  Class:apiName(Parameters)    Return    Description   Creature:getAttr(objid: number,CreaturesAttr)  ErrorCode.OK, value: number  Get the creature's attribute setting  Creature:setAttr(objid: number,</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:currencyscript&amp;rev=1730894206&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-11-06T11:56:46+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Custom Currency System</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:currencyscript&amp;rev=1730894206&amp;do=diff</link>
        <description>Custom Currency System



This is about Creating Custom Currency System for Map Developer using Simple Script

Requirements

	*  You will need a Trigger Variable to Save Player Currency

 

IMPORTANT! Use Same Name with the Script Variable Use. Which is</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:datatype&amp;rev=1721915932&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-07-25T13:58:52+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>DataTypes and Usages</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:datatype&amp;rev=1721915932&amp;do=diff</link>
        <description>DataTypes and Usages

Scroll down

It can be called directly in the code without creating a new object. The calling form is as follows:


local errorCode = ErrorCode.OK
local worldType = WorldType.OWTYPE_GAMEMAKER


----------

Error Code
  Name    Value    Description</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:developer_center_script_world_playsoundeffectonpos&amp;rev=1719592863&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-06-28T16:41:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>World:playSoundEffectOnPos()</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:developer_center_script_world_playsoundeffectonpos&amp;rev=1719592863&amp;do=diff</link>
        <description>World:playSoundEffectOnPos()

Parameters :

	*  Table Position : table must contain named index of x,y,z with type of value is Number
	*  ID of Sound Effect: Library of Sound Effect on Miniworld;
	*  Volume : Number of Volume
	*  Pitch : Tone of the Sound effect;
	*  isLoop : Boolean Value;</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:displayboard&amp;rev=1718546955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-06-16T14:09:15+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>DisPlayBoard Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:displayboard&amp;rev=1718546955&amp;do=diff</link>
        <description>DisPlayBoard Class

Class For DisPlayBoard Interface

Return To Previous Page

----------

API list
  Class:apiName    Return    Description  showBoard (...) ErrorCode.OK  Display the display board to the player hideBoard (...)   ErrorCode.OK  Hide the display board from the player setBoardPicture     ErrorCode.OK  Set the picture of the display board for the player</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:enter_string_position_to_teleport&amp;rev=1721381042&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-07-19T09:24:02+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>How to make teleport UI</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:enter_string_position_to_teleport&amp;rev=1721381042&amp;do=diff</link>
        <description>How to make teleport UI

Finished product



Design



Script


local pos_1, pos_2, pos_3   -- Variables to store X, Y, Z coordinates
local X_input = nil        -- ID of X input box (to be replaced with actual ID)
local Y_input = nil        -- ID of Y input box (to be replaced with actual ID)
local Z_input = nil        -- ID of Z input box (to be replaced with actual ID)
local teleport_button = nil  -- ID of teleport button (to be replaced with actual ID)

-- Function to handle UI events
functio…</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:game_event&amp;rev=1732847618&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-11-29T02:33:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Game Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:game_event&amp;rev=1732847618&amp;do=diff</link>
        <description>Game Class

Class For Game Interface

Return To Previous Page

----------

How to Write Event

 ScriptSupportEvent:registerEvent([[EventName]],callbackFunctionName) 

Example

 ScriptSupportEvent:registerEvent([[Game.RunTime]],Update) 

Eventlist
 EventName  Parameters  Description</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:graphics&amp;rev=1689695539&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-07-18T15:52:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Graphics Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:graphics&amp;rev=1689695539&amp;do=diff</link>
        <description>Graphics Class

Class For Graphics Interface

Return To Previous Page

----------

API list
  Class:apiName(parameters)    Return    Description   Graphics:makeGraphicsText(title:string, font:number, apha:number, itype:number)  array:table  Create text board information  Graphics:makeflotageText(title:string, font:number, itype:number)</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:hpbar&amp;rev=1750745624&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-06-24T06:13:44+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>UI HP bar</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:hpbar&amp;rev=1750745624&amp;do=diff</link>
        <description>UI HP bar

----------

In this tutorial, you'll learn how to create a User Interface (UI) in this case, will be an hp bar. We'll do a quick walkthrough of the process step by step, covering the basics of using the CustomUI class and performing simple calculations in Lua. By the end of this guide, you'll be able to implement a functional and visually appealing HP bar in your game.</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:introduction_to_closures_in_lua&amp;rev=1723523323&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-08-13T04:28:43+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Closures in Lua</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:introduction_to_closures_in_lua&amp;rev=1723523323&amp;do=diff</link>
        <description>Closures in Lua

1. Basic Concept of Closures

Closures are an essential concept in programming that allows functions in Lua to retain their environment even after they have finished executing. They enable functions to access variables and functions from the scope in which they were created without needing to know the original scope.</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:introduction_to_coroutines_in_lua&amp;rev=1720831434&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-07-13T00:43:54+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Introduction to Coroutines in Lua</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:introduction_to_coroutines_in_lua&amp;rev=1720831434&amp;do=diff</link>
        <description>Introduction to Coroutines in Lua

Basics of Coroutines

Creating a Coroutine:

A coroutine in Lua is created using the coroutine.create function, which takes a Lua function as an argument and returns a coroutine.
function foo()
    print(&quot;Coroutine started&quot;)
    coroutine.yield()
    print(&quot;Coroutine resumed&quot;)
end</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:introduction_to_metatable_in_lua&amp;rev=1721087804&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-07-15T23:56:44+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>What Are Metatables?</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:introduction_to_metatable_in_lua&amp;rev=1721087804&amp;do=diff</link>
        <description>What Are Metatables?

Meta tables in Lua are special tables that let you change how regular tables behave. Think of them as “rules” you can set to control what happens when you do certain actions with a table. The logic is very simple and not confusing at all.</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:itemid&amp;rev=1702973812&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-12-19T08:16:52+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Mini world ID Defination</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:itemid&amp;rev=1702973812&amp;do=diff</link>
        <description>Mini world ID Defination

----------
  ID    Item Name    1    Flamas Ultra Stone    2    Functional Block    3    Static Water    4    Active Water    5    Static Lava    6    Flowing Lava    7    Teleport Effect    8    Embossed Brick    9    Speedup Block</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:items_event&amp;rev=1689658379&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-07-18T05:32:59+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Items Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:items_event&amp;rev=1689658379&amp;do=diff</link>
        <description>Items Class

Class For Items Interface

Return To Previous Page

----------

How to Write Event

 ScriptSupportEvent:registerEvent([[EventName]],callbackFunctionName) 

Example

function AnyDropCreated (e)

local playerid = e.eventobjid
local itemid,target = e.itemid,e.toobjid
local x,y,z = e.x,e.y,e.z

end

ScriptSupportEvent:registerEvent([[Item.Create]],AnyDropCreated)</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lesson_1_learn_to_write_and_execute_simple_lua_programs_understand_variables_and_work_with_basic_data_types&amp;rev=1720000357&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-07-03T09:52:37+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Learn to write and execute a simple Lua program, understand variables, and work with basic data types</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lesson_1_learn_to_write_and_execute_simple_lua_programs_understand_variables_and_work_with_basic_data_types&amp;rev=1720000357&amp;do=diff</link>
        <description>Learn to write and execute a simple Lua program, understand variables, and work with basic data types

1. Writing Your First Lua Program

A great way to start learning any programming language is by writing a simple program that prints “Hello, World!</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_basic&amp;rev=1698121528&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-10-24T04:25:28+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>LUA Programming Code</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_basic&amp;rev=1698121528&amp;do=diff</link>
        <description>LUA Programming Code

Unlock the Power of Lua: A Lightweight Programming Marvel

[User-Friendly Language ]

----------

Lua, an extensible and lightweight programming language, is a testament to the innovation that originated in 1993 through the collaborative efforts of Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes. Originally conceived as an in-house project, Lua has since grown into a versatile language with an exceptional set of features.</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_conditionals&amp;rev=1711221859&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-03-23T19:24:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Lua conditionals</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_conditionals&amp;rev=1711221859&amp;do=diff</link>
        <description>Lua conditionals

Conditionals in Lua allow your script to make decisions based on whether certain conditions are true or false. These conditions are typically expressions that evaluate to a boolean value (true or false). Lua supports several types of conditional statements, like if, if-else, if-elseif-else</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_function&amp;rev=1711383412&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-03-25T16:16:52+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Lua functions</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_function&amp;rev=1711383412&amp;do=diff</link>
        <description>Lua functions

Functions in Lua are like blocks of code that perform a specific task. They allow you to encapsulate pieces of code, allowing you to reuse them later, they also allow making your scripts more modular, which in most cases, is a good practice, they also make the code more readable and easier to maintain. Functions can accept input parameters, perform operations, and return results</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_loop&amp;rev=1711387838&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-03-25T17:30:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Lua loops</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_loop&amp;rev=1711387838&amp;do=diff</link>
        <description>Lua loops

Loops in Lua allow you to execute a block of code repeatedly until a certain condition is met. They are indispensable tools for performing iterative tasks such as iterating over arrays, processing data, and controlling game logic. In lua, there are 3 main types of loops:</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_mathlibrary&amp;rev=1707167949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-05T21:19:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Lua math library</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_mathlibrary&amp;rev=1707167949&amp;do=diff</link>
        <description>Lua math library

Random number generation
  Method   Description  math.random(x,y) Returns a pseudorandom number from x to y (y is optional, if there is no y, the value will be generated from 1 to x) math.randomseed(x)Sets x as the seed for the pseudo-random seed number generator.</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_patternmatching&amp;rev=1718260046&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-06-13T06:27:26+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Introduction to Lua Pattern Matching: A Comprehensive Guide</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_patternmatching&amp;rev=1718260046&amp;do=diff</link>
        <description>Introduction to Lua Pattern Matching: A Comprehensive Guide

Lua is a powerful, efficient, lightweight, embeddable scripting language. One of its lesser-known but incredibly useful features is pattern matching. Pattern matching in Lua is similar to regular expressions in other programming languages but with a simpler and more straightforward syntax.</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_recursion&amp;rev=1707673782&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-11T17:49:42+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Script recursion</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_recursion&amp;rev=1707673782&amp;do=diff</link>
        <description>Script recursion

What is recursion

Recursion in programming is a technique used mainly in functional programming languages to break down a problem you have into smaller, identical sub-problems. Recursion simplifies the problem-solving process by allowing the solution to be expressed in terms of a smaller version of the same problem.</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_string&amp;rev=1705913416&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-01-22T08:50:16+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>LUA String Usages</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_string&amp;rev=1705913416&amp;do=diff</link>
        <description>LUA String Usages

----------

Introduction

A string in Lua is a fundamental data type that is used to store and manipulate text data. It represents a sequence of characters, such as letters, numbers, symbols, spaces, and other special characters.</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_tables&amp;rev=1716695151&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-05-26T03:45:51+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Tables in Lua</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_tables&amp;rev=1716695151&amp;do=diff</link>
        <description>Tables in Lua

Introduction

Tables are the only data structure available in Lua and are incredibly versatile. They can be used to represent arrays, dictionaries, records, and more.

Basic Tables

A table in Lua is created using curly braces `{}`. Here is a simple table with some fruits.</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_var&amp;rev=1711220151&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-03-23T18:55:51+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Lua variables</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lua_var&amp;rev=1711220151&amp;do=diff</link>
        <description>Lua variables

Welcome, if you want to understand scripts, its crucial to have a solid understanding of variables in Lua. Variables serve as containers for storing data that your script can manipulate, think of them as boxes with names, they can contain numebers, word, etc.  Lua variables, covering their types, scope, and usage.</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lucky_number_game&amp;rev=1714923240&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-05-05T15:34:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Lucky Number</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:lucky_number_game&amp;rev=1714923240&amp;do=diff</link>
        <description>Lucky Number

I. Diagram



II. Design


You need to add a input box. Player enter string in the input box

III. Script
local _input_string = nil --- fill your element	
function game(event) 
	if _input_string == event.uielement then
      	local variable_lucky_number = math.random(0, 100)
      	if string.find(event.content, variable_lucky_number) then
          		Chat:sendSystemMsg(&quot;Congratulation! Your lucky number is: &quot; .. variable_lucky_number)
      	else
          		Chat:sendSystemMsg(&quot;Err…</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:mapmark&amp;rev=1718675324&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-06-18T01:48:44+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>MapMark Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:mapmark&amp;rev=1718675324&amp;do=diff</link>
        <description>MapMark Class

Class For MapMark Interface

Return To Previous Page

----------

API list
  Class:apiName(parameters)    Return    Description  newShape(...) ErrorCode.OK shapeid:number  Add a new shape (line, rectangle, circle) deleteShape(...) ErrorCode.OK  Delete a shape setShapeColor(...)  ErrorCode.OK  Set the shape color</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:miniapi_customevents&amp;rev=1707940162&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-14T19:49:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Mini API Custom event creation</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:miniapi_customevents&amp;rev=1707940162&amp;do=diff</link>
        <description>Mini API Custom event creation

In mini world, we already have a series of pre-defined events, but what if we want another level of complexity, another level of depth to our scripts? There is a way to create custom events and Listen to them, that can add a greater level of complexity to our scripts that can't be achieve without the use of custom events, it also can make our lives really easier because if there wasn't any way to handle these events, we would have to divide our script with extensi…</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:miniapi_tutorialerrorhandling&amp;rev=1707261232&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-06T23:13:52+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Script Error handling</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:miniapi_tutorialerrorhandling&amp;rev=1707261232&amp;do=diff</link>
        <description>Script Error handling

How To handle errors in scripts

By default, lua already provides us with functions to handle errors but, mini world has already some measures in place, especially with the provided methods for all the classes so when using the game</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:miniapi_tutorialevent&amp;rev=1713998384&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-24T22:39:44+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Mini API Events usage</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:miniapi_tutorialevent&amp;rev=1713998384&amp;do=diff</link>
        <description>Mini API Events usage

What are the API events

You have probably used triggers if you are learning scripts and you may say “Script is so hard.” but in reality, it is really similar to triggers, there are functions that listen for events, what listening</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:miniapi_tutorialplayerattr&amp;rev=1713998580&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-24T22:43:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Getting Player Attributes using scripts</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:miniapi_tutorialplayerattr&amp;rev=1713998580&amp;do=diff</link>
        <description>Getting Player Attributes using scripts

What are the player attributes

As you may have guessed, Player Attributes, or 'playerattr' for short are really important, because these attributes hold essential values directly asociated with the game character. for example, health points of our character, attack capabilities, speed and defense</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:miniapi_tutorialtriggervar&amp;rev=1722783307&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-08-04T14:55:07+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Getting Trigger variables using scripts</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:miniapi_tutorialtriggervar&amp;rev=1722783307&amp;do=diff</link>
        <description>Getting Trigger variables using scripts

ActionAttr List
  Name    Value    Description   Position             1   Position                AreaIns              2   Area                    Number               3   Value         String               4</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:minishop&amp;rev=1709766488&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-03-06T23:08:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>How to tutorial mini shop</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:minishop&amp;rev=1709766488&amp;do=diff</link>
        <description>How to tutorial mini shop

How to: Display a message when a player buys an item in devshop

To display a message when the player buys something in the developer shop, we use the Developer.BuyItem event and we put it in the handler function, this event returns the eventobjid (The id of the player who triggered the event) and the id of the item that was bought (id of the item in the developer shop, not itemid)</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:minitimer&amp;rev=1707233809&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-06T15:36:49+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>MiniTimer Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:minitimer&amp;rev=1707233809&amp;do=diff</link>
        <description>MiniTimer Class

Class For MiniTimer Interface

Return To Previous Page

----------

Events
  Event name    Parameters    Description   minitimer.change  timerid, timername, timertime  Triggers when a specified timer changes. Parameters: Timer ID, Timer Name, Timer Time</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:misc_func&amp;rev=1717551966&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-06-05T01:46:06+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Misc functions</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:misc_func&amp;rev=1717551966&amp;do=diff</link>
        <description>Misc functions

This page holds all the functions that don't fall into any category.
 Event Name  Parameters  Description  threadpool:wait  time  Waits a number of seconds. Same as Trigger:wait  threadpool:work  exec_func  Creates another thread and executes exec_func inside</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:objectlib_event&amp;rev=1689683156&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-07-18T12:25:56+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ObjectLib Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:objectlib_event&amp;rev=1689683156&amp;do=diff</link>
        <description>ObjectLib Class

Class For ObjectLib Interface

Return To Previous Page

----------

API list
  Class:apiName(parameters)    Return    Description   ObjectLib:getAreaData(uuid:number)  ErrorCode.OK id:number  Get area data  ObjectLib:getPositionData(uuid:number)  ErrorCode.OK id:number</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:oop_customswords&amp;rev=1734900294&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-12-22T20:44:54+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Custom sword system</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:oop_customswords&amp;rev=1734900294&amp;do=diff</link>
        <description>Custom sword system

In this page, we will create a script that allows players to own, upgrade, and use swords to attack others. This system is designed using Object-oriented programming (OOP)  principles in Lua, but before starting. we advise you study object-oriented programming if you haven't, as it will be the main focus of the script.</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:others_event&amp;rev=1707233718&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-06T15:35:18+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Special Case Event</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:others_event&amp;rev=1707233718&amp;do=diff</link>
        <description>Special Case Event

This is List of Special Event

Return To Previous Page

----------

Event List
 Event Name  Parameters  Description  BluePrint.BuildBegin  areaid  Triggers when Blueprints start to create. Parameter: Area ID  Craft.end  eventobjid, craftid, itemid, itemnum</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:particles_event&amp;rev=1727835445&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-10-02T02:17:25+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Particles Class (Special Effect)</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:particles_event&amp;rev=1727835445&amp;do=diff</link>
        <description>Particles Class (Special Effect)

Class For Particles Interface

Return To Previous Page

----------

List Of Particle ID

How to Write Event

 ScriptSupportEvent:registerEvent([[EventName]],callbackFunctionName) 

Example

function EffectsOnCreature (e)

local objectID = e.eventobjid
local effectID = e.effectid
local x,y,z = e.x,e.y,e.z

end

ScriptSupportEvent:registerEvent([[Particle.Mob.OnCreate]],EffectsOnCreature)</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:password&amp;rev=1723522956&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-08-13T04:22:36+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Solve Password Script</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:password&amp;rev=1723522956&amp;do=diff</link>
        <description>Solve Password Script

Finished Product



Create features

Create a block when clicked will show the UI



Design UI



Script


local treasure_block_id = nil ---- Replace your block id here
local uiid = nil ---- Replace your UI ID here
local number_1_ = nil ----  Replace 1st number here (password 1)
local number_2_ = nil ----  Replace 2nd number here (password 2)
local number_3_ = nil ----  Replace 3rd number here (password 3)
local button_1 = nil ---- Replace the ID of first button here 
loca…</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:players_event&amp;rev=1752178254&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-07-10T20:10:54+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Players Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:players_event&amp;rev=1752178254&amp;do=diff</link>
        <description>Players Class

Class For Players Interface

Return To Previous Page

----------

How to Write Event

 ScriptSupportEvent:registerEvent([[EventName]],callbackFunctionName) 

Example


function BuffAdded(event)
  local playerid , buffid , bufflvl = event.eventobjid , event.buffid , event.bufflvl
end

ScriptSupportEvent:registerEvent([[Player.AddBuff]],BuffAdded)</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:pluginvsix&amp;rev=1691557118&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-08-09T04:58:38+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Visual Studio Code</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:pluginvsix&amp;rev=1691557118&amp;do=diff</link>
        <description>Visual Studio Code

Click Here to Download VSIX

	*  1 .Put the VSIX into Your File Directory

 

	*  2 .Then Install The VSIX</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:rounding_a_string&amp;rev=1729178672&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-10-17T15:24:32+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Rouding a string</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:rounding_a_string&amp;rev=1729178672&amp;do=diff</link>
        <description>Rouding a string

Finished product



UI Design



Diagram




Script


local name_of_element = nil --- they're a string like : &quot;Coins&quot;
local text_element = nil
local uiid = nil
local trigger_variable = nil --- they're a string
--- &lt;The script was written by Don (UID: 209525865). please edit selectively, most parts are better left unedited.&gt;
function round(e) 
    while true do
        Trigger:wait(0.1)
        local result, new_coins_result = VarLib2:getPlayerVarByName(e.eventobjid, 3, trigger_…</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:sound_event&amp;rev=1719592247&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-06-28T16:30:47+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Sound Effect Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:sound_event&amp;rev=1719592247&amp;do=diff</link>
        <description>Sound Effect Class

Class For Sound Effect Interface

Return To Previous Page

----------

World Class

Plays Sound Effect according to Position in the world
  Class:apiName    Return    Description   World:playSoundEffectOnPos(pos: table, soundId: number, volume: number, pitch: number, isLoop: boolean)  code: number  Play a sound effect at the specified position  World:stopSoundEffectOnPos(pos: table, soundId: number)</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:spawnport&amp;rev=1689696133&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-07-18T16:02:13+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Spawnport Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:spawnport&amp;rev=1689696133&amp;do=diff</link>
        <description>Spawnport Class

Class For Spawnport Interface

Return To Previous Page

----------

API list
  Class:apiName(parameters)    Return    Description   Spawnport:getSpawnPoint()  ErrorCode.OK , x:number, y:number, z:number  Get the default birth point  Spawnport:setSpawnPoint(x:number, y:number, z:number)</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:specialblock&amp;rev=1693116359&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-08-27T06:05:59+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>How To Customize Your Parkour Block</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:specialblock&amp;rev=1693116359&amp;do=diff</link>
        <description>How To Customize Your Parkour Block

Are you ready to take your parkour game to the next level? In this guide, we'll dive into the exciting world of customizable parkour blocks that can add a whole new dimension of challenge and thrill to your gameplay. Whether you're a seasoned parkour enthusiast or a newcomer to the world of virtual acrobatics, these ideas will have you crafting unique and engaging experiences in no time.</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:team_event&amp;rev=1689682645&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-07-18T12:17:25+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Team Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:team_event&amp;rev=1689682645&amp;do=diff</link>
        <description>Team Class

Class For Team Interface

Return To Previous Page

----------
  Class:apiName(parameters)    Return    Description   Team:getNumTeam()  ErrorCode.OK num:number  The current number of teams  Team:getTeamPlayerNum(teamid:number, alive:number)  ErrorCode.OK num:number</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:teleportallplayer&amp;rev=1707662647&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-11T14:44:07+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>How to teleport players properly</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:teleportallplayer&amp;rev=1707662647&amp;do=diff</link>
        <description>How to teleport players properly

A short tutorial

Let's say that you want in your game to teleport ALL players using scripts this may seem hard for newcomers, but in reality is quite easy, for this we will use a numeric for 

first we start by creating a function that will be the one that teleports all players, it should look like this</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:ui_animation&amp;rev=1718397015&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-06-14T20:30:15+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>UI Animations</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:ui_animation&amp;rev=1718397015&amp;do=diff</link>
        <description>UI Animations

Intro

Creating cool UI animations can make your game feel more polished and fun. Scripts are a powerful tool to add dynamic effects to your game interface. In this guide, we’ll show you how to use Lua to bring your UI to life with smooth animations, from basic fades to slick slides. If you’re just starting out or looking to improve your game, we've got you covered. this guide will help you get the hang of scripting UI animations in Lua.</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:ui_event&amp;rev=1747969456&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-23T03:04:16+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Customui Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:ui_event&amp;rev=1747969456&amp;do=diff</link>
        <description>Customui Class

Class For Customui Interface

Return To Previous Page

----------

How to Write Event

 ScriptSupportEvent:registerEvent([[EventName]],callbackFunctionName) 

Example

local function Button_Click (event)

   local playerid,ElementID = e.eventobjid,e.uielement

end

ScriptSupportEvent:registerEvent([[UI.Button.Click]],Button_Click)</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:valuegroup&amp;rev=1747969251&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-23T03:00:51+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ValueGroup API class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:valuegroup&amp;rev=1747969251&amp;do=diff</link>
        <description>ValueGroup API class

Methods in ValueGroup for use in scripts.

↵ Return to the main script page

----------

API list
  Class:apiName(parameters)    Returns    Description   Valuegroup:getAllGroupItem(vartype:VARTYPE, libname:string, playerid:number)  ErrorCode.OK, ret:table  Get all the values in any variable group</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:varlib&amp;rev=1747969266&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-05-23T03:01:06+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>VarLib Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:varlib&amp;rev=1747969266&amp;do=diff</link>
        <description>VarLib Class

Class For VarLib Interface

Return To Previous Page

----------

API list
  Class:apiName(parameters)    Return    Description   VarLib2:setGlobalVarByName(actionattr:number, msg:string, val:number)  ErrorCode.OK  Set the global variables in the variable library</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:worldcontainer&amp;rev=1689661043&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-07-18T06:17:23+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>WorldContainer Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:worldcontainer&amp;rev=1689661043&amp;do=diff</link>
        <description>WorldContainer Class

Class For WorldContainer Interface

Return To Previous Page

----------

API List
  Class:apiName(parameters)    return    Description   WorldContainer:addFurnace(x:number, y:number, z:number)  ErrorCode.OK _  Add a furnace  WorldContainer:removeFurnace(x:number, y:number, z:number)</description>
    </item>
    <item rdf:about="https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:world_event&amp;rev=1718265699&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-06-13T08:01:39+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Worlds Class</title>
        <link>https://wiki.miniworldgame.com/doku.php?id=developer_center:developer_editor:script:world_event&amp;rev=1718265699&amp;do=diff</link>
        <description>Worlds Class

Class For Worlds Interface

Return To Previous Page

----------

How to Write Event

 ScriptSupportEvent:registerEvent([[EventName]],callbackFunctionName) 

Example

function ContainerChanges (event)

local blockid , itemid = event.blockid , event.itemid
local x , y , z = event.x , event.y , event.z

end

 ScriptSupportEvent:registerEvent([[Backpack.ItemChange]],ContainerChanges)</description>
    </item>
</rdf:RDF>
