- 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!
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!