主页
论坛
新帖
最新消息
新帖
最新动态
制作互助群
登录
注册
Toggle sidebar
Toggle sidebar
菜单
安装应用
安装
回复主题
【进站必读】宝可饭堂社区全局规定v1.10
关于坚决维护同人创作社群秩序与共识的公告
论坛
独立开发
开发问题
招式扫墓怎么做
禁用JavaScript。为了获得更好的体验,请在运行之前启用浏览器中的JavaScript。
您正在使用一款已经过时的浏览器!部分功能不能正常使用。
请尝试升级或使用
其他浏览器
。
信息
<blockquote data-quote="lige" data-source="post: 1394" data-attributes="member: 1860"><p>[Pokémon Essentials version 20.1]</p><p>[EBDX v1.0]</p><p>Exception:NoMethodError</p><p>Message: undefined method []' for nil:NilClass Backtrace: Legends Arceus:98:in pbFaintedAllyCount'</p><p>Legends Arceus:56:in num_fainted_allies' Move_Effects_19A:348:in pbBaseDamage'</p><p>Move_Usage_Calculations:243:in pbCalcDamage' Battler_UseMove:733:in pbProcessMoveHit_ebdx'</p><p>Battler_UseMove:725:ineach' Battler_UseMove:725:in pbProcessMoveHit_ebdx'</p><p>[EBDX] Battle r Info:66:in pbProcessMoveHit' Battler_UseMove:509:in pbUseMove_ebdx'</p><p>Battler_UseMove:507:in `each'</p><p>This exception was logged in C:\Users\USERNAME\Saved Games\Pokemon Spaimer\errorlog. txt. Press Ctrl+C to copy this message to the clipboard.</p><p></p><p>class PokeBattle_Move_20C < PokeBattle_Move</p><p> def pbBaseDamage(baseDmg, user, target)</p><p> numFainted = user.num_fainted_allies</p><p> return baseDmg if numFainted <= 0</p><p> baseDmg += 50 * numFainted</p><p> return baseDmg</p><p> end</p><p>end</p><p></p><p>def num_fainted_allies</p><p> return @battle.pbFaintedAllyCount(self)</p><p> end</p><p></p><p>class PokeBattle_Battle</p><p> attr_accessor :fainted_count # Used to track the number of fainted battlers for Last Respects/Supreme Overlord.</p><p></p><p>alias __pla__initialize initialize</p><p> def initialize(scene, p1, p2, player, opponent)</p><p> __pla__initialize(scene, p1, p2, player, opponent)</p><p> @fainted_count = [0,0]</p><p> end</p><p></p><p>def pbFaintedAllyCount(idxBattler)</p><p> idxBattler = idxBattler.index if idxBattler.respond_to?("index")</p><p> return @fainted_count[idxBattler & 1]</p><p> end</p><p>end</p></blockquote><p></p>
[QUOTE="lige, post: 1394, member: 1860"] [Pokémon Essentials version 20.1] [EBDX v1.0] Exception:NoMethodError Message: undefined method []' for nil:NilClass Backtrace: Legends Arceus:98:in pbFaintedAllyCount' Legends Arceus:56:in num_fainted_allies' Move_Effects_19A:348:in pbBaseDamage' Move_Usage_Calculations:243:in pbCalcDamage' Battler_UseMove:733:in pbProcessMoveHit_ebdx' Battler_UseMove:725:ineach' Battler_UseMove:725:in pbProcessMoveHit_ebdx' [EBDX] Battle r Info:66:in pbProcessMoveHit' Battler_UseMove:509:in pbUseMove_ebdx' Battler_UseMove:507:in `each' This exception was logged in C:\Users\USERNAME\Saved Games\Pokemon Spaimer\errorlog. txt. Press Ctrl+C to copy this message to the clipboard. class PokeBattle_Move_20C < PokeBattle_Move def pbBaseDamage(baseDmg, user, target) numFainted = user.num_fainted_allies return baseDmg if numFainted <= 0 baseDmg += 50 * numFainted return baseDmg end end def num_fainted_allies return @battle.pbFaintedAllyCount(self) end class PokeBattle_Battle attr_accessor :fainted_count # Used to track the number of fainted battlers for Last Respects/Supreme Overlord. alias __pla__initialize initialize def initialize(scene, p1, p2, player, opponent) __pla__initialize(scene, p1, p2, player, opponent) @fainted_count = [0,0] end def pbFaintedAllyCount(idxBattler) idxBattler = idxBattler.index if idxBattler.respond_to?("index") return @fainted_count[idxBattler & 1] end end [/QUOTE]
验证
649-493=?
回复帖子
最新帖子
全
怎么把地图画好看?
最新更新:全民制作人
星期三,17:43
开发问题
W
进化道具没用怎么办
最新更新:We115
星期二,15:41
开发问题
我发现了宝藏网站
最新更新:幽冥魔帝
星期一,20:35
心情茶坊
全
我想切换视角讲述故事
最新更新:全民制作人
2026/07/22
开发问题
Z
将GBA打包成APK
最新更新:zheyeyeye
2026/07/22
GBA教程
论坛统计
主题
562
消息
2,425
成员
3,889
最新成员
yunyu
联系我们
QQ
2201858342
邮箱
pokefans@qq.com
论坛
独立开发
开发问题
招式扫墓怎么做
顶部