Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

代数

注:需要代入ID的指令不建议单独使用,最好用黑魔法提取器提取再使用

黑魔法里所有的代数指令实际上都是数组传参,不是使用字典的,之前文档存在部分错误,已修复

设定开关

@[set_switch] ["var_name","value"]

反转开关

@[toggle_switch] ["var_name"]

设定变量

@[set_variable] ["var_name","value"]

増减変量

@[add_variable] ["var_name","addnum"]

储存物件位置

@[save_event_pos] {
    "target": null,
    "x": null,
    "y": null
}

官方示例:

@[save_event_pos] {
    "target":"魔法傀儡",
    "x":"傀儡x",
    "y":"傀儡y"
}