Skip to content

内置条件

通过 if / if2 列添加该行的条件判断:

条件参数说明
hasFlagflag玩家拥有该flag且值为非零
!hasFlagflag玩家没有该flag或值为零
hasMelilithCurse玩家拥有Melilith诅咒
merchant玩家在商人公会
fighter玩家在战士公会
thief玩家在盗贼公会
mage玩家在法师公会
hasItem物品id玩家持有指定物品
isCompleted任务id玩家已完成指定任务

条件格式为 条件,参数,支持扩展表达式:

=,test_flag,1
,counter,20
>,flag,0
!,flag,69

大多数情况下,只需要在表格中使用 if 列。如果需要更复杂的条件,可以插入一个新列,并将首行值设置为 if2

动态条件

内置的 if / if2 条件仅在剧情加载时判定一次

若要让某一行能够动态启用或禁用,请使用:

  • invoke* 条件,或
  • 返回 bool 类型的 eval 动作

动态分支

jump 设置为 eval_result,并使用返回 string 类型的 eval 动作来动态选择跳转目标。

This project is an unofficial documentation site and is not affiliated with, endorsed by, or associated with Elin or Lafrontier / Noa. All trademarks are the property of their respective owners.