RPG Maker Forums

I opened a new topic because this is a completely different question/problem.

I can't understand, or find, for the life of me why this is undefined. Can anyone help please? What is the proper way to call these variables/functions/arrays?

I'm getting the error:

Cannot read property 'battleMembers' of null

(function() { Eilios.Parameters = PluginManager.parameters('Eilios_Movement'); Eilios.Param = Eilios.Param || {}; Eilios.Param.CriticalMultiplier = Number(Eilios.Parameters['Critical Multiplier']); Eilios.Param.MaxInitialTP = Number(Eilios.Parameters['Max Initial TP']); Eilios.Param.MinInitialTP = Number(Eilios.Parameters['Min Initial TP']); // set up vars to store the old x,y var originPartyXY = {}; var tempArray = {}; // set the initial offset Game_Party.prototype.setXYOffset = function() { // loop through each party member var pCount = 0; for (pCount = 0; pCount < $gameParty.battleMembers().length - 1; pCount++) { // save the original xy into main array, reset temp array each time tempArray = {}; tempArray.push($gameParty.battleMembers()[pCount].x); tempArray.push($gameParty.battleMembers()[pCount].y); originPartyXY.push(tempArray); if (pCount % 2) { // set the new xy $gameParty.battleMembers()[pCount].x += -2; $gameParty.battleMembers()[pCount].y += $gameParty.battleMembers()[pCount - 1].y + 2; }else{ // set the new xy $gameParty.battleMembers()[pCount].x += 2; $gameParty.battleMembers()[pCount].y += $gameParty.battleMembers()[pCount - 1].y + 2; } } // show results console.log("made it to the function!"); }; Game_Party.prototype.setXYOffset();})();Looking through other plugins it seems people can just use this:

// Local Functions - Get Action Skills function ActionSkill_GetActionSkills() { var ActiveMembersArr = $gameParty.battleMembers(); var ActiveMembersSkills = []; for (i = 0; i < ActiveMembersArr.length; i++) { // Check all Active Party Members for (j = 0; j < ActiveMembersArr._skills.length; j++) { var skill = $dataSkills[ActiveMembersArr._skills[j]]; // Tag Check for any usable Skills if (TagCheck(skill, ActionSkillTag)) { if (!ActiveMembersSkills.contains(ActiveMembersArr._skills[j])) ActiveMembersSkills.push(ActiveMembersArr._skills[j]); } } } // Return the Skills found return ActiveMembersSkills; }So I'm pretty lost. I'm new to rmmv, not new to programming. Not an expert with javascript but this seems it just isn't accessing the variable/array at all....................

Latest Threads

Latest Posts

Latest Profile Posts

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,018
Messages
1,018,357
Members
137,803
Latest member
andrewcole
Top