Skill Help...

@Andar
Okay, I've edited the the absorb state push part. It still doesn't work but now, this shows up.
Untitled03.png


I already got an updated version of this plugin. .
Please show us a Screenshot of your plugin manager with all your plugins, and open your projects rpg_core.js file with a text editor and tell us the numbers at the end of the title line.


Have you started a new game or continued a saved game when that error happens.
@Andar
I'm sorry, I don't know where the rpg_code.js is. . And here are the plugins I have for now
Untitled04.png
Untitled05.png


well, I did saved once, but then, I always start new game everytime I try/add something.
RPG_core.JS
I hate Android autocorrection...
It's in your projects JS directory
@Andar
Oh, that.

If you meant at the very last part of it, there are zeros.
Can't be , either you're looking at the wrong part or something really messed up your engine.
The title line should be the second line of the file, and I need the numbers at the end of that line.
Sorry. . I think I am looking at the wrong part since I don't know much about coding.

Can you at least tell me what part exactly I should be looking for?
see this post, another user gave a screenshot of the line (we only need the number there, not a screenshot). Its at the end of the post
https://forums.rpgmakerweb.com/index.php?threads/game-has-ecountered-a-bug.102184/#post-915768
oh. you mean this?
Untitled06.png


Sorry that it took me awhile to notice this. And thank you.
@Andar
Excuse me. . Sorry that took me while to respond. I tried to make the skill work but this always shows up.
Untitled03.png


however, when I clicked on the red error, this showed up
Untitled07.png


I don't know much about coding, so I don't know what's the solution for this one.
Is your filepath legal under networking rules?
You blacked out that info, and if you have a filepath that is allowed under windows but not allowed under networking rules, some plugins can't be loaded correctly.

Additionally, update your project to 1.5.2 - according to the console, yanfly has loaded the plugin updates for 1.5.2, but your core engine is still 1.5.1 - that can clash.

Additionally, please give a screenshot of your skill including the full notebox, so that we can see if you made a mistake there.
Oh, don't worry. all my filepaths are legal, I always forget to change my pc name-

I see. So because some plugins weren't compatible with my current version. .

And this is the current skill box after I edited the state list
Untitled08.png

Including the script after editing:
Code:
<Before Eval>
// Check if the absorption hasn't begun yet.
if (!this._absorbedAllStates) {
  // Enable the absorption flag.
  this._absorbedAllStates = true;
  // Initialize the amount to be healed.
  this._absorbHeal = 0;
  // This is how much healing each absorbed state will do.
  var heal = user.mdf;
  // Create a list of all the states that can be absorbed.
  var absorbedStates = [];
  // Put all the states that will get absorbed here.
  absorbedStates.push(4, 5, 6, 11);
  // Get the group of alive allies
  var group = user.friendsUnit().aliveMembers();
  // Loop through each member in the group
  for (var i = 0; i < group.length; ++i) {
    // Get the currently looped member
    var member = group[i];
    // Check if the member exists and isn't the user
    if (member && member !== user) {
      // Loop through each of the absorbable states
      for (var j = 0; j < absorbedStates.length; ++j) {
        // Get the currently looped state's ID
        var id = absorbedStates[j]
        // Check if the state exists and if the member is affected by it
        if ($dataStates[id] && member.isStateAffected(id)) {
          // Get the turns on the state
          var turns = member.stateTurns(id);
          // Remove the state from the member
          member.removeState(id);
          // Add the state to the user
          user.addState(id);
          // Set the turns of it to the user
          user.setStateTurns(id, turns);
          // Increase the amount healed
          this._absorbHeal += heal;
        }
      }
    }
  }
}
"undefined is not a function" is a very classic error to encounter when writing Eval's. Basically it means that you're trying to call a function but that function doesn't actually exist.
Because it's an Eval, it won't give a line number of where the issue is.

Here are all of the times a function is attempted to be called, one of these is the problematic one:
Code:
user.friendsUnit().aliveMembers();
member.isStateAffected(id);
member.stateTurns(id);
member.removeState(id);
user.addState(id);
user.setStateTurns(id, turns);
@Aloe Guvner
Oh. Are you saying that I should edit these parts as well? Or am I still missing something?
Um. . I know it's been a long time since I posted this.

I think I've finally figured the problem. I went to Yanfly's page for Lunatic codes, I realized that I missed the part where he typed 'Alter the values in red to fit your game’s settings', and the parts which were in red were the states IDs number and this code
Code:
user.mdf

Since I'm still not familiar with codings, I don't know how to alter it. Sorry for more trouble.
Sorry, I missed your last reply.

Oh. Are you saying that I should edit these parts as well? Or am I still missing something?

No, I was just saying that one of those lines was causing the error "undefined is not a function", and you need to find out which line it is.

states IDs number and this code
Code:
user.mdf
Since I'm still not familiar with codings,

.mdf is Magic Defense. Just like .atk is Attack, .def is Defense, etc.

If you've changed the code you're using, please post it, because we can't guess what you've changed and don't want to go on old information. And if you encounter an error please post the full screenshot of the error in the console (even if it's the same error)
@Aloe Guvner
I couldn't find the 2nd code you sent me in the Lunatic code, but the rest were ( I don't know if that'll do)

And. .
Same Error.png


It's still shows me the same error after I removed the parts in slash parts:
Code:
<Before Eval>
// Check if the absorption hasn't begun yet.
if (!this._absorbedAllStates) {
  // Enable the absorption flag.
  this._absorbedAllStates = true;
  // Initialize the amount to be healed.
  this._absorbHeal = 0;
  // This is how much healing each absorbed state will do.
  var heal = user.mdf;
  // Create a list of all the states that can be absorbed.
  var absorbedStates = [];
  // Put all the states that will get absorbed here.
  absorbedStates.push(4, 5, 6, 11);
  absorbedStates.push(4, 5, 6, 11);
  // Get the group of alive allies
  var group = user.friendsUnit().aliveMembers();
  // Loop through each member in the group
  for (var i = 0; i < group.length; ++i) {
    // Get the currently looped member
    var member = group[i];
    // Check if the member exists and isn't the user
    if (member && member !== user) {
      // Loop through each of the absorbable states
      for (var j = 0; j < absorbedStates.length; ++j) {
        // Get the currently looped state's ID
        var id = absorbedStates[j]
        // Check if the state exists and if the member is affected by it
        if ($dataStates[id] && member.isStateAffected(id)) {
          // Get the turns on the state
          var turns = member.stateTurns(id);
          // Remove the state from the member
          member.removeState(id);
          // Add the state to the user
          user.addState(id);
          // Set the turns of it to the user
          user.setStateTurns(id, turns);
          // Increase the amount healed
          this._absorbHeal += heal;
        }
      }
    }
  }
}
</Before Eval>

I feel like I shouldn't have removed them, but in Yanfly's video, he didn't include these parts so I did what he've written in his notetags. As for the States IDs, I used the ones I already have according to the database.
Oh, don't worry. all my filepaths are legal, I always forget to change my pc name-
Wrong as proven by your last screenshot - there are good reasons why I asked for that...

Please rename your directory folders to follow networking rules.
I don't know if that is what causes problems here (probably not), but it will cause problems sooner or later on deployment.

Basically any letter or symbol that is replaced with a %-code in the error messages is a symbol that is breaking networking naming rules and can cause problems on loading data.
In your last screenshots that was the forbidden spaces replaced by %20

EDIT:
And in your screenshot, the first sequence of eval notetag has one } too many - there is the one before the last code line where you don't go back into the indentions and five more at the end, but I only count five opening { in total.
It's still shows me the same error after I removed the parts in slash parts

But it's not the same error - the first screenshot you showed us was "Type Error undefined is not a function" and this most recent screenshot shows "SyntaxError: unexpected token }"

When you write code in a notebox (as opposed to a proper code editor) you don't get any help on syntax errors. Here is a tool you can use to check syntax errors:
https://www.jslint.com
@Andar
wait. . THAT what you meant by filepath legal under networking rules?! omg. . I thought you meant something else-- sorry. I realized that I forgot to cover my pc's user name since I am quite shy about it. . The result seemed little different than last one?
Same Error 2.png


As for the ovals, I added one more before 'this' part according to Yanfly's video. the second one where I've pasted the full code with the slashes parts was the one that's in Yanfly's page for Lunatic code.

@Aloe Guvner
It didn't appear that it detected any error in the Lunatic code, or did it? This what I've got:
ewrtgr.png

Original thread: https://forums.rpgmakerweb.com/threads/skill-help.102075/