赞 | 2 |
VIP | 143 |
好人卡 | 1 |
积分 | 1 |
经验 | 216792 |
最后登录 | 2019-10-10 |
在线时间 | 24 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 61
- 在线时间
- 24 小时
- 注册时间
- 2008-8-5
- 帖子
- 1924
|
1、找到第二个脚本 441 行,也就是 Window_ShopSell 的 update 方法内部,有如下内容,添加红色的部分:
if Input.repeat?(Input::RIGHT)
if item.price > 0 and number-shopnumber > 0
$game_system.se_play($data_system.cursor_se)
gain_shopitem(1)
$game_party.gain_shopgold(item.price/2)
refresh
else
$game_system.se_play($data_system.buzzer_se)
end
end
if Input.repeat?(Input::X)
if item.price > 0 and number-shopnumber > 10
$game_system.se_play($data_system.cursor_se)
gain_shopitem(10)
$game_party.gain_shopgold(item.price/2*10)
refresh
else
$game_system.se_play($data_system.buzzer_se)
end
end
#--------------------------------------------------------------------------
if Input.repeat?(Input::LEFT)
if $game_party.item_shopnumber(item.id) > 0
gain_shopitem(-1)
$game_party.gain_shopgold(-item.price/2)
$game_system.se_play($data_system.cursor_se)
refresh
else
$game_system.se_play($data_system.buzzer_se)
end
end
if Input.repeat?(Input::Y)
if $game_party.item_shopnumber(item.id) > 10
gain_shopitem(-10)
$game_party.gain_shopgold(-item.price/2*10)
$game_system.se_play($data_system.cursor_se)
refresh
else
$game_system.se_play($data_system.buzzer_se)
end
end
#--------------------------------------------------------------------------
if Input.repeat?(Input::C)
if $game_party.shopgold > 0
for i in 1..$data_items.size-1
$game_party.gain_item(i, -$game_party.item_shopnumber(i))
$game_party.gain_gold($data_items.price/2*$game_party.item_shopnumber(i))
$game_party.gain_shopgold(-$data_items.price/2*$game_party.item_shopnumber(i))
$game_party.gain_shopitem(i, -99)
end
for i in 1..$data_weapons.size-1
$game_party.gain_weapon(i, -$game_party.weapon_shopnumber(i))
$game_party.gain_gold($data_weapons.price/2*$game_party.weapon_shopnumber(i))
$game_party.gain_shopgold(-$data_weapons.price/2*$game_party.weapon_shopnumber(i))
$game_party.gain_shopweapon(i, -99)
end
for i in 1..$data_armors.size-1
$game_party.gain_armor(i, -$game_party.armor_shopnumber(i))
$game_party.gain_gold($data_armors.price/2*$game_party.armor_shopnumber(i))
$game_party.gain_shopgold(-$data_armors.price/2*$game_party.armor_shopnumber(i))
$game_party.gain_shoparmor(i, -99)
end
$game_system.se_play($data_system.shop_se)
else
$game_system.se_play($data_system.buzzer_se)
end
其实就是在扣钱的地方除以 2 就行了~
2、没看懂什么意思…… 系统信息:本贴由本区版主认可为正确答案,66RPG感谢您的热情解答~ |
|