查看: 4066|回复: 1

[有事请教] VisuStella MZ 商店自订价格 JS

[复制链接]
梦石
0
星屑
114
在线时间
23 小时
注册时间
2020-9-17
回帖
1
发表于 2021-1-28 18:58:44 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
在 Items and Equips Core VisuStella MZ  插件里

<JS Buy Price>
code
code
price = code;
</JS Buy Price>

- Used for: Item, Weapon, Armor Notetags
- Replace 'code' to determine the buying 'price' of the item.
- Insert the final buy price into the 'price' variable.
- The 'item' variable refers to the item being bought.

我想把价格设成 变数A
还有设成 (变数A+变数B)*变数C
那该怎么写呢 可以给个方向吗  请多指教
梦石
2
星屑
18915
在线时间
1453 小时
注册时间
2017-4-16
回帖
216

MZ评测员开拓者

发表于 2021-1-29 15:31:53 | 显示全部楼层
本帖最后由 gt50 于 2021-1-29 15:33 编辑

价格为某变量的值
price = $gameVariables.value(id);//id为变量id
价格为变量代数运算
const a = $gameVariables.value(id_1);
const b = $gameVariables.value(id_2);
const c = $gameVariables.value(id_3);
price = (a+b)*c;
个人RM交流群:568785370,目前在该群发布Ganfly系列插件
回复 1 0

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部