Stat Boost Based on Equipped Weapon Type?

EpicFILE

Epic Member
Veteran
Joined
Sep 27, 2017
Messages
439
Reaction score
1,392
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,591
Reaction score
1,170
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
439
Reaction score
1,392
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,591
Reaction score
1,170
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

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,096
Members
137,587
Latest member
Usagiis
Top