Currently OpenMB use own Script System, the script file normally extension is .script
.script
Assign Value:
assign %variable value
or
assign $variable value
Define a function:
function [FunctionName] end
Call a function:
call [FunctionName]
Condition:
if_cond ... else_cond ... end
Loop:
loop [StartValue] [EndValue] [StepNumber] [Current Number stored in %current varaible] end
Switch-case:
swicth %variable case value1 end case value2 end end
Init function:
function menuInit end
Menu Item clicked:
function menuButtonClicked end
function uiInit end
UI Event Changed:
function uiEventChanged end
function missionInit end
Script API
There was an error while loading. Please reload this page.