Stat Boost Based on Equipped Weapon Type?

EpicFILE

Epic Member
Veteran
Joined
Sep 27, 2017
Messages
429
Reaction score
1,365
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,510
Reaction score
1,107
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
429
Reaction score
1,365
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,510
Reaction score
1,107
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

Why is there so much month left at the end of money? D=
Hello humans! How goes your day in this journey of living? I hope it is good, for I am human like you, and I am feeling great! Worship the altar.
Sand is basically small rocks

Forum statistics

Threads
105,607
Messages
1,014,966
Members
137,273
Latest member
Parzival
Top