[問題] 武器投擲
請問有人有做過嗎?
之前用了一個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