Stat Boost Based on Equipped Weapon Type?

EpicFILE

Epic Member
Veteran
Joined
Sep 27, 2017
Messages
427
Reaction score
1,360
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,500
Reaction score
1,102
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
427
Reaction score
1,360
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,500
Reaction score
1,102
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 Profile Posts

Once again working on a game I'm not sure I'm going to sell or even publish
That feel when you're awake past midnight and suddenly you're one year older :ninja:
I miss collaborations, but I don't know how to find someone to make face parts just to share them with others, and even though I don't like writing or music, I can't trust anyone with writing on my game because it has themes that are easy to mess up, and music needs a clear tone and scenes.
People donating to me for my upcoming birthday so I can pay my team a little. Such angels, I'm so happy. T uT I smile so much my face hurts. Good souls in this world.
Playing Ragnarok Online again is very nostalgic. The last time I played it was 20 years ago, when I was ten-twelve old.
My first mmorpg.^^

Forum statistics

Threads
105,571
Messages
1,014,721
Members
137,245
Latest member
dashstop
Top