作者simour1 (simour1)
看板RPGMaker
标题[问题] 武器投掷
时间Tue Oct 30 01:12:07 2007
请问有人有做过吗?
之前用了一个RGSS程式码
是可以投掷
但武器用玩还能投
比有武器的攻击还强
不知道是不是他哪里写错
请高手帮忙看一下,谢谢
==========================
if (skill != nil and
skill_element_include?(skill))
throw_weapon =
$data_weapons[user.current_action.basic]
if $xrxs24_weapon_property_system_work
$game_party.lose_weapon(throw_weapon.id, user.current_action.basic_ex)
else
$game_party.lose_weapon(throw_weapon.id, 1)
end
self.hp += damage if bool
damage = throw_weapon.atk
if weapon_element_include?(throw_weapon.id, )
damage = damage * @one.to_i / 100
end
self.damage = damage
self.hp -= self.damage
bool = true
end
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.115.206.236