赞 | 293 |
VIP | 11 |
好人卡 | 74 |
积分 | 224 |
经验 | 281171 |
最后登录 | 2025-2-22 |
在线时间 | 9386 小时 |
Lv5.捕梦者 (暗夜天使) 只有笨蛋才会看到
- 梦石
- 1
- 星屑
- 21437
- 在线时间
- 9386 小时
- 注册时间
- 2012-6-19
- 帖子
- 7114
 
|
寒夜无冬 发表于 2014-7-17 01:25 ![]()
谢谢喵大的连接, 请问这句是什么意思?value = operate_value(@params[1], @params[2], @params[3]) ...
这个是Game_Interpreter自带的方法:- #--------------------------------------------------------------------------
- # ● 计算操作的数值
- # operation : 操作行为(0:增加 1:减少)
- # operand_type : 操作类型(0:常量 1:变量)
- # operand : 操作数值(数值 或 变量 的 ID)
- #--------------------------------------------------------------------------
- def operate_value(operation, operand_type, operand)
- value = operand_type == 0 ? operand : $game_variables[operand]
- operation == 0 ? value : -value
- end
复制代码 换到这个脚本里,这句代码就是用来获取你的道具增加还是减少,增加了多少(增加的是一个数值还是变量xxxx……) |
评分
-
查看全部评分
|