- Aug 23, 2012
- Reaction score
- First Language
- Primarily Uses
Being able to dismantle charged ammo items and receive bullets based on how many charges are left?
When i enter in a combat this happend (And yes,is above all the scripts)
TypeError: Cannot read property '_itemId' of undefined
at Game_Enemy.Game_BattlerBase.canPaySkillAmmoCost (unco_ammunitionsystem.js:691)
at Game_Enemy.Game_BattlerBase.canPaySkillCost (unco_ammunitionsystem.js:626)
at Game_Enemy.Game_BattlerBase.canPaySkillCost (YEP_SkillCore.js:702)
at Game_Enemy.Game_BattlerBase.meetsSkillConditions (rpg_objects.js:2776)
at Game_Enemy.Game_BattlerBase.meetsSkillConditions (YEP_SkillCore.js:618)
at Game_Enemy.Game_BattlerBase.meetsSkillConditions (jay_dualtechs.js:316)
at Game_Enemy.Game_BattlerBase.canUse (rpg_objects.js:2788)
at Game_Enemy.Game_BattlerBase.canUse (YEP_X_Subclass.js:617)
at Game_Enemy.isActionValid (rpg_objects.js:4493)
at Game_Enemy.<anonymous> (rpg_objects.js:4531)
This is the order:
Strange. Is your actor equipped with a weapon or not ?
I just noticed that the function is actually used on an enemy and not an actor when that bug happens... Since enemies normally have no weapons, that should definitely not happen. Could you give a list of the plug-ins you are using?
Thank you so much,i use the version you give me, and now worksNormally, Ammunition should be placed below anything else, except for a few (known) plug-ins. See first post for details.
However, I am not sure at all that the problem you encounter is due to this.
If moving the plug-in below is not enough, please test the following version instead of the one you currently have :
TypeError: Cannot read property '_itemId' of undefined at Game_Enemy.Game_BattlerBase.paySkillAmmoCost (UNCO_AmmunitionSystem.js:837) at Game_Enemy.Game_BattlerBase.paySkillCost (UNCO_AmmunitionSystem.js:831) at Game_Enemy.Game_Battler.useItem (rpg_objects.js:3175) at Function.BattleManager.startAction (YEP_BattleEngineCore.js:1247) at Function.BattleManager.processTurn (rpg_managers.js:2076) at Function.BattleManager.processTurn (Ellye's_ATB.js:1830) at Function.BattleManager.updateTurn (rpg_managers.js:2064) at Function.BattleManager.update (YEP_BattleEngineCore.js:1033) at Function.BattleManager.update (Ellye's_ATB.js:1598) at Scene_Battle.updateBattleProcess (rpg_scenes.js:2049)rpg_managers.js:1618 SceneManager.catchExceptionTDDP_FluidTimestep.js:89 SceneManager.update