赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 225 |
最后登录 | 2013-12-22 |
在线时间 | 0 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 0 小时
- 注册时间
- 2007-8-23
- 帖子
- 539
|
先备份脚本
Scene_Battle大概 102行左右
用这个
- i = X # x是数据库物品的ID
- if $game_temp.battle_can_lose
- # 还原为战斗开始前的 BGM
- $game_system.bgm_play($game_temp.map_bgm)
- # 战斗结束
- battle_end(2)
- # 返回 true
- return true
- elsif $game_party.items.keys.include?(i)
- $game_temp.message_text = "XX" # XX是要显示的提示内容
- if Input.trigger?(Input::B)
- $game_system.bgm_play($game_temp.map_bgm)
- battle_end(2) # 战斗结束
- elsif Input.trigger?(Input::C)
- for char in $game_party.actors
- char.hp = char.maxhp / 2 # 恢复一半HP
- end
- $game_party.lose_item(i,1)
- end
- end
复制代码
替换
- if $game_temp.battle_can_lose
- # 还原为战斗开始前的 BGM
- $game_system.bgm_play($game_temp.map_bgm)
- # 战斗结束
- battle_end(2)
- # 返回 true
- return true
- end
复制代码 系统信息:本贴由本区版主认可为正确答案,66RPG感谢您的热情解答~ |
|