Stat Boost Based on Equipped Weapon Type?

EpicFILE

Epic Member
Veteran
Joined
Sep 27, 2017
Messages
435
Reaction score
1,386
First Language
Indonesia
Primarily Uses
RMMV
Hello!
I wonder if you can give someone a stat boost based on equipped weapon type?
For example, giving certain character who have a "Sword Mastery" skill to get Attack boost
whenever he equip a sword, but not other weapon.

Let me know if it's possible via default system or through certain plugins. :D
 

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,561
Reaction score
1,149
First Language
English
Primarily Uses
RMMV
Totally doable, just use this:
if (user.isWtypeEquipped(x))
"x" is the ID of weapon type in question.
 

EpicFILE

Epic Member
Veteran
Joined
Sep 27, 2017
Messages
435
Reaction score
1,386
First Language
Indonesia
Primarily Uses
RMMV
@Frostorm
Where should I put the notetag?
Is it for skill or common event?
 

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,561
Reaction score
1,149
First Language
English
Primarily Uses
RMMV
I guess you could give the actor in question a passive state like this: <Passive State: x> by putting it in the actor's notebox, where "x" is the state ID of the state that will hold the following code:
JavaScript:
<Custom Passive Condition>
  if (user.isWtypeEquipped(x)) {
    condition = true;
  } else {
    condition = false;
  }
</Custom Passive Condition>
Put that in the notebox of state "x" and don't forget to replace the "x" in user.isWtypeEquipped(x) as well. Remember, weapon type ID not weapon ID. Oh and finally, give the state the amount of ATK or w/e stat boost you want.

Edit: I forgot to mention those notetags require Yanfly plugins.
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Thank you all angels so much! I've received fanarts, fanfics, song cover, and Ko-fis and such wonderful messages already! T uT Look at this message I'm crying (Ko-fi was being mean saying it was anonymous but she was like nooo it's me and showed me).
Working on using DreamX's prefix suffix plugin to create unidentified weapons, armor and sellable loot. The weapons and armor will always draw from the highest tier you have the ability to create, keeping them relevant throughout most of the game. The loot is going to be the fun part! Let's just say I doubt I'll have any unused item entries
... I updated an enemy I drew last year.
My dynamic weather system grows... now with cloud cover influenced by wind speed! (4x playback) (Not final cloud image/map)
Wrote a plugin today that allows you to assign BGM, Battlebacks, and even Battle Entry SE's on a per-troop basis. Introducing a random encounter with a high-pitched Chicken Squeal is worth it all by itself.

Forum statistics

Threads
105,765
Messages
1,016,266
Members
137,452
Latest member
12dl
Top