设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 2903|回复: 1
打印 上一主题 下一主题

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

[复制链接]

Lv1.梦旅人

梦石
0
星屑
114
在线时间
23 小时
注册时间
2020-9-17
帖子
3
跳转到指定楼层
1
发表于 2021-1-28 18:58:44 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

x
在 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
那该怎么写呢 可以给个方向吗  请多指教

Lv4.逐梦者

梦石
0
星屑
17828
在线时间
1435 小时
注册时间
2017-4-16
帖子
222

开拓者

2
发表于 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

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-21 01:01

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表