0
我一直在爲RPG Maker VX Ace使用一組腳本,紋理和音頻,稱爲Pokémonfor Ace。我一直在成功解決一些錯誤,但是這個我無法修復。 我得到這個錯誤在控制檯:RPG Maker VX Ace中的RGSS-
Item Effects:216:in `block in extra_evs': private method `extra_evs' called for nil:NilClass (NoMethodError)
from Item Effects:216:in `each'
from Item Effects:216:in `inject'
from Item Effects:216:in `extra_evs'
from Pokémon Battle System:4403:in `block (3 levels) in process_action_end'
from Pokémon Battle System:4392:in `each'
from Pokémon Battle System:4392:in `block (2 levels) in process_action_end'
from Pokémon Battle System:4379:in `each'
from Pokémon Battle System:4379:in `block in process_action_end'
from Pokémon Battle System:4373:in `each'
from Pokémon Battle System:4373:in `process_action_end'
from Mega Evolution:453:in `process_action'
from Scene_Battle:48:in `update'
from Pokedex:1746:in `update'
from Party Dying Battle BGM:130:in `update'
from Scene_Base:14:in `main'
from MOG_Weather_EX:694:in `main'
from Graphical Object Global Reference:201:in `main'
from Video Player:153:in `run'
from Map Screenshot:971:in `run'
from Screenshot taker:215:in `run'
from Main:12:in `block in <main>'
這裏的,讓錯誤的部分代碼:
class Game_Battler < Game_BattlerBase
attr_accessor :attacking_item
attr_accessor :captured
def extra_evs(stat)
equips.inject(0) {|r, equip| r += equip.extra_evs(stat)}
end
它工作!謝謝! – LanternCorp
@MyHousedStudios :)給我一個接受答案謝謝。 另外,我仍然建議找到你的裝備中爲什麼零的根本原因。 – lulalala