当前位置:游戏堡攻略单机攻略 > 正文

《Stone Story RPG》石之脚本指南翻译

2019-08-24 11:52:29     来源:游戏堡     编辑:yxbao     我要留言

默认脚本

=================

?hp < 10

activate potion

loadout 1

?loc = rocky

equip shovel

?foe = poison

equipL crossbow

===========

Roadmap 

===========

Things that are planned, but not yet in the game:

?ai.enabled True if the AI is ON, False if the AI is off (e.g. during a cinematic moment)

?has = potion Evaluates if there is a potion available to use

?has =Evaluates if the given item is equipped

?hasL =Evaluates if the given item is equipped on the Left

?hasR =Evaluates if the given item is equipped on the Right

?harvest returns the current harvest object targeted by the player

?harvest.distance returns the distance between the player and the target harvest location

var a Declare a new int variable, single character. Up to 26 variables from a to z

= Assign a value to a variable

Variable Operations

+ add two variables

- subtract two variables

++ increment variable

-- decrement variable

* multiply two variables

/ divide two variables

% modulus

: Else logical branch

?key Allows custom key inputs. E.g. ?key = A

?foe.level

?foe.state (cast,perf,cooldown)

?foe.statetime

brew [resources] Creates a potion at the beginning of a location. E.g.: brew wood stone

> #func Possibility to insert function return values into the print

> #var Possibility to insert variables into the print

> #foe.distance, etc

equipFequips an item to the Faerie

foes The list of foes within 30 units

《Stone Story RPG》石之脚本指南翻译

声明:游戏堡网登载此文出于传递信息之目的,不代表游戏堡网赞同其观点或证实其描述,若侵权请来信告知,我们将及时处理。
更多>>
Stone Story RPG
6.7
评分:
游戏标签: RPG 冒险 独立 休闲
相关阅读: