dizyah

Villager
Member
Joined
Oct 19, 2022
Messages
16
Reaction score
1
First Language
Indonesia
Primarily Uses
RMMZ
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!
 

ATT_Turan

Forewarner of the Black Wind
Regular
Joined
Jul 2, 2014
Messages
12,656
Reaction score
11,170
First Language
English
Primarily Uses
RMMV
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>
 
Last edited:

dizyah

Villager
Member
Joined
Oct 19, 2022
Messages
16
Reaction score
1
First Language
Indonesia
Primarily Uses
RMMZ
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!
 

ATT_Turan

Forewarner of the Black Wind
Regular
Joined
Jul 2, 2014
Messages
12,656
Reaction score
11,170
First Language
English
Primarily Uses
RMMV
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
 

dizyah

Villager
Member
Joined
Oct 19, 2022
Messages
16
Reaction score
1
First Language
Indonesia
Primarily Uses
RMMZ
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!
 

Latest Threads

Latest Posts

Latest Profile Posts

Larvae.gif
They're larvae, not fightae, honest!
I've made a big emphasis on visually representing things to make the game as accessible as possible.

MP.png

Grimoires will consist of 5 - 10 pages of skills (still finalizing that max number)

Since each actor is able to take multiple actions per turn, each skill will cost 1-5 pages
This prevents more powerful skills from being uber spammed during an actors turn.
Cats are so easy. I noticed the gray one would never nap in the office while I worked, so I put a blanket on the spare chair in here and now she won't leave.
1701793108356.png
still work in progress, had not much time at the weekend^^
Oh deer! Have you checked my calendar today already? ;3
1701790624587.png

Forum statistics

Threads
136,768
Messages
1,269,707
Members
180,511
Latest member
xPanda26
Top