[問題] 武器投擲
看板RPGMaker (RPG製作大師 - RPG Maker)作者simour1 (simour1)時間18年前 (2007/10/30 01:12)推噓0(0推 0噓 0→)留言0則, 0人參與討論串1/1
請問有人有做過嗎?
之前用了一個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
RPGMaker 近期熱門文章
PTT遊戲區 即時熱門文章