高级玩家

- 贡献度
- 1
- 金元
- 5281
- 积分
- 532
- 精华
- 0
- 注册时间
- 2013-9-11
|
RPG XP
在腳本
Game_Party
# ● 增加物品 (减少)
# item_id : 物品 ID
# n : 个数
#--------------------------------------------------------------------------
def gain_item(item_id, n)
# 更新 hash 的个数数据
if item_id > 0
@items[item_id] = [[item_number(item_id) + n, 0].max, 99].min
物品上限改的这个, 血量修改GAME_ACTOR项里的● 设置 MaxHP
# maxhp : 新的 MaxHP
#--------------------------------------------------------------------------
def maxhp=(maxhp)
@maxhp_plus += maxhp - self.maxhp
@maxhp_plus = [[@maxhp_plus, -9999].max, 850000].min
@hp = [@hp, self.maxhp].min
end
进入游戏完全没有效果 |
|