MZ Need help to find a code

hi, I just found tips and tricks in this post How to implement every possible Yanfly Tips & Tricks effect in MZ with VisuStella plugins its awesome thread!

I want to know where to find a code like this.isMagical :

<JS Pre-Damage As User>
if
(this.isMagical() && value !== 0) {
value = Math.ceil(value * 1.5);
}
</JS Pre-Damage As User>

I want to copy paste it with a little bit of edit. I think I know that code above mean "if that attack is magical then change the magical multiplier to 1.5" is it right? let me know please
And I want to change that magical attack to basic attack (Attack command). I mean I want Attack Command damage increase to 1.5 when actor have that state aplied.

So my purpose to make this thread is I want to know where to find a code like this.isMagical, and if you guys have a great link to learn javascript or tips where to learn javascript please let me know. I know this maybe a bit greedy to ask, have a nice day!
I want to know where to find a code like this.isMagical,
The pinned thread of MZ Script Calls.

and if you guys have a great link to learn javascript or tips where to learn javascript
You can Google "javascript tutorial" and get lots of results. I usually recommend w3schools, starting with the Statements chapter.

I mean I want Attack Command damage increase to 1.5 when actor have that state aplied.
this.isAttack() will be true if it is the skill set as the user's Attack Skill in their Traits.

If you don't want to allow it for any alternate skills but only skill 1, then:

Code:
<JS Pre-Damage As User>
 if (this.isSkill() && this.item().id==1 && value != 0)
   value = Math.round(value * 1.5);
</JS Pre-Damage As User>
Thank you 🙂
First thank you for the reply!
The pinned thread of MZ Script Calls.
in what section is it? I try to find it with ctrl+f but no result

w3schools, starting with the Statements chapter.
thats a great website, I will try learning from there!

t
this.isAttack() will be true if it is the skill set as the user's Attack Skill in their Traits.
thanks for the code, much appreciate it!

Will be long journey to learn javascript for me since it like math, I don't like math but I will try it anyway!
in what section is it?
I don't honestly know. I'm not involved in making or maintaining the sheet, and I don't use it as a point of reference myself, so I don't know how thorough it is.

You can look at this:

It was made for MV but MZ is mostly the same.

Or, ultimately, you can just look at the code. Everything is grouped in the .js files by class - so all of the Game_Action methods are listed in order inside rmmz_objects.js
I don't honestly know. I'm not involved in making or maintaining the sheet, and I don't use it as a point of reference myself, so I don't know how thorough it is.

You can look at this:

It was made for MV but MZ is mostly the same.

Or, ultimately, you can just look at the code. Everything is grouped in the .js files by class - so all of the Game_Action methods are listed in order inside rmmz_objects.js
Thank you very much! Thats what I'm looking for, I will bookmark it

Have a great day!

Original thread: https://forums.rpgmakerweb.com/threads/need-help-to-find-a-code.161642/