一.数据类型
局部变量 ":a" 等效于 int a
全局变量 "$a" 等效于 static int a
int类型 引擎默认均为int类型
float类型 引擎通过(set_fixed_point_multiplier, <value>) API实现float和int转化
float = 1.123
(set_fixed_point_multiplier, 1000),
(assign, ":a", 1123),
string类型
字符串变量:quick_string: "@hello world"
字符串常量:str_a "str_cannot_leave" module_strings.py配置
arr数组类型-一维数组&二维数组
# script_get_value_by_scene_array_index
# Input: scene_id, array_name, index
# Output: reg0 value
("get_value_by_scene_array_index", [
(store_script_param, ":scene_id", 1),
(store_script_param, ":array_name", 2),
(store_script_param, ":index", 3),
(store_add, ":slot_index", ":array_name", ":index&#