-
Notifications
You must be signed in to change notification settings - Fork 17
Script System
DoDoCat edited this page Apr 3, 2021
·
8 revisions
Currently OpenMB use own Script System, the script file normally extension is .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
Init function:
function uiInit
end
UI Event Changed:
function uiEventChanged
end
Init function:
function missionInit
end