差别
这里会显示出您选择的修订版和当前版本之间的差别。
后一修订版 | 前一修订版 | ||
插件手册:betonquest:变量列表 [2018/06/15 00:28] – 创建 小小k酱 | 插件手册:betonquest:变量列表 [2021/09/24 13:25] (当前版本) – [计算数学表达式: math.calc] duangfafa | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== Variables List ====== | + | ====== |
+ | (版本:2017-08-21 翻译:kjiang [[https:// | ||
- | ===== Player: `player` ===== | + | (kjiang备注)变量可以直接写在对话conversation脚本中用于显示某些数值,或在条件condition中用于判断。不同于event、condition、objective,变量是用点'' |
- | This variable will be replaced with the name of the player. If you add `display` argument, it will use display name instead of real name. | + | ===== 玩家名字: |
- | **Example**: | + | 此变量显示玩家的名字/ |
- | ===== NPC: `npc` ===== | + | **例子**: '' |
- | It's a very simple variable. It's replaced by the name of the NPC in player' | + | ===== NPC: npc ===== |
- | **Example**: | + | 非常简单的变量。'' |
- | ===== Objective: `objective` ===== | + | **例子**: '' |
- | Using this variable you can display a property of an objective. The first argument is an ID of the objective as defined in _objectives.yml_ (not the type). Make sure that the player has this objective active or it will be replaced with nothing ("" | + | ===== 任务目标属性: |
- | **Example**: `%objective.kill_zombies.left:20%` | + | 你可以用此变量显示某个任务目标的流程/ |
- | ## Point: `point` | + | **例子**: '' |
- | This variable displays the amount of points you have in some category or amount of points you need to have to reach a number. The first argument is the name of a category and the second argument is either `amount` or `left:x`, where `x` is a number. | + | ===== 全局积分: globalpoint ===== |
- | **Example**: | + | 工作方式与普通积分变量相同,但不是显示来自玩家类别的点,而是显示全局、独立于玩家的类别中的点。 |
- | ## Item: `item` | + | **例子** '' |
+ | ===== 积分: point ===== | ||
- | With this variable you can display amount of specific items in player's inventory or a number needed to reach specific | + | 此变量显示这个玩家的某项积分,或还欠缺的积分。第一个参数是积分名称(自定义),第二个参数可以是' |
- | **Example**: `%item.stick.amount%` | + | **例子**: '' |
- | ## Version: `version` | + | ===== 计算数学表达式: math.calc ===== |
- | This variable displays the version of the plugin. You can optionally add the name of the plugin as an argument to display version of another plugin. | + | 此变量允许您根据其他变量(例如积分或目标变量)执行计算并解析为指定计算的结果。变量始终以开头'' |
- | **Example**: | + | 要在计算中使用变量,您有两个选择:首先只写变量,但不写'' |
- | ## Location: `location` | + | **例子** '' |
- | This variable resolves to player's current location, formatted as an absolute location format | + | **在用的实例** |
+ | ===== 物品: item ===== | ||
- | **Example**: `%location%` | + | 你可以用这个变量显示玩家背包内某样物品的数量,或距离某数量还差多少个。第一个参数是物品的名称(在'' |
+ | |||
+ | **例子**: '' | ||
+ | |||
+ | ===== 插件版本: | ||
+ | |||
+ | 此变量用于显示插件的版本。你还可以在后面加上插件的名称用来显示你想要的插件的版本。 | ||
+ | |||
+ | **例如**: '' | ||
+ | |||
+ | ===== 坐标: location ===== | ||
+ | |||
+ | 此变量用于提取玩家坐标。格式采用// | ||
+ | |||
+ | **例子**: '' | ||