I want to add a mechanic to my game similar to Fire Emblem, where the more you use a weapon you level it up and can then equip better weapons of that type (i.e. start with a bronze sword and after using it enough times you can use a steel sword). Anyone knows if there is a way to implement that?
Weapon Efficiency Progression
JS Plugin RequestsI Googled "RPG Maker MV weapon proficiency," and found a few existing threads about how to do this.
You'd use Galv's Weapon Proficiency to create the proficiency system, then Yanfly's Equip Requirements to set the requirements for a certain level of proficiency on each individual weapon.
You'd use Galv's Weapon Proficiency to create the proficiency system, then Yanfly's Equip Requirements to set the requirements for a certain level of proficiency on each individual weapon.
This is copy-pasted from a conversation I had w/ @xDRAGOONx:
So for your purposes, you can simply make certain weapons require various masteries to equip.
Oh wow! That's quite a bit, the coding part kinda lost me 😅. Thanks for the replies though!
@Alkaline My method involves increasing the weapon and armor rank only outside of battle, based on fighting enemies.
You need these six plugins to do this and have them in this order based on Yanfly's website: http://www.yanfly.moe/wiki/Category:Yanfly_Engine_Plugins#Plugin_List
--------------------------
- YEP_EquipCore: http://www.yanfly.moe/wiki/Equip_Core_(YEP)
- YEP_ChangeBattleEquip: http://www.yanfly.moe/wiki/Change_Battle_Equip_(YEP)
- YEP_EquipRequirements: http://www.yanfly.moe/wiki/Equip_Requirements_(YEP)
- YEP_JobPoints: http://www.yanfly.moe/wiki/Job_Points_(YEP)
- YEP_SkillLearnSystem: http://www.yanfly.moe/wiki/Skill_Learn_System_(YEP)
- Moogle_X_EquipSkillSystem (below Yanfly's plugins): https://forums.rpgmakerweb.com/index.php?threads/equip-skill-system.50858/
--------------------------
1) With MoogleX's rar file download, you only need two of them: EquipSkillSystem and EQS_SkillLearnPatch (place it underneath EquipSkillSystem).
1a) Create the blank skills and name them from "Sword E-Rank" to "Sword S-Rank" (You have to make this same set but with axe, lance, bow, magic, and any weapon type you got). Then place in the notetag <EQS Ignore> and that's that.
2) With YEP_SkillLearnSystem, place in the notetag on the actor's class. It can be a list of the set of weapon type rank skills you made for the actor to learn through the menu.
<Learn Skill: x, x, x> //Sword Rank skills
Make sure that the E-Rank skill of any weapon type is on each class's Skills to Learn list at Level 1. That way, in your game, they will be able to equip E-Rank swords at the start.
3) You need EquipCore for ChangeBattleEquip and EquipRequirements.
3a) ChangeBattleEquip is what you want so you can change weapons during battle.
3b) Now in the weapon database, create "Bronze Sword" and add in this requirement notetag.
Example Tier List: Bronze Sword (E) -> Iron Sword (D) -> Steel Sword (C) -> Silver Sword (b) -> Brave Sword (A) -> Meisterschwert (S) -> Divine Sword (SS)
If your actor unlocked D-Rank, you can equip Bronze and Iron Sword. So with Iron Sword, use that same requirement notetag but take out the line referencing E-Rank, and so forth with a higher tier weapon. (e.g. Steel Sword: take out D-Rank, Silver: take out C-rank, etc.)
4) With JobPoints, you can get JP (or another name you can set like HM ("Hero Merit" from Fire Emblem Heroes) each time you engage in battle and they build up as you fight. That's how you're going to get stronger weapon ranks through earning JP.
4a) On Sword D-Rank to Sword SS-Rank, add in these two notetags.
<Learn Require Skill: x> //e.g. D requires E learned, C requires D learned, B needs C, etc.
<Learn Cost: x JP>
4b) Add <Starting JP: x> to the actor database, your actor.
Playtest
----------
If you have these plugins already and followed the steps, set the starting JP to 50 and the learn cost at 1.
Then start a playtest on a map. You don't have to battle, this is just to playtest and check that this works.
On the playtest, select "Skill" and then "Learn Skills". You've already learned E-rank, and D-rank is there, click it, now equip the weapon that requires the D-rank. Go back and then hit C-rank, you can equip the weapon requiring C-rank and so forth.
That's how I can imitate the weapon rank system set in Fire Emblem in some way. I can only do this in the menu if I have enough JP earned from battles. You can also do this with staves under the armor database.
You need these six plugins to do this and have them in this order based on Yanfly's website: http://www.yanfly.moe/wiki/Category:Yanfly_Engine_Plugins#Plugin_List
--------------------------
- YEP_EquipCore: http://www.yanfly.moe/wiki/Equip_Core_(YEP)
- YEP_ChangeBattleEquip: http://www.yanfly.moe/wiki/Change_Battle_Equip_(YEP)
- YEP_EquipRequirements: http://www.yanfly.moe/wiki/Equip_Requirements_(YEP)
- YEP_JobPoints: http://www.yanfly.moe/wiki/Job_Points_(YEP)
- YEP_SkillLearnSystem: http://www.yanfly.moe/wiki/Skill_Learn_System_(YEP)
- Moogle_X_EquipSkillSystem (below Yanfly's plugins): https://forums.rpgmakerweb.com/index.php?threads/equip-skill-system.50858/
--------------------------
1) With MoogleX's rar file download, you only need two of them: EquipSkillSystem and EQS_SkillLearnPatch (place it underneath EquipSkillSystem).
1a) Create the blank skills and name them from "Sword E-Rank" to "Sword S-Rank" (You have to make this same set but with axe, lance, bow, magic, and any weapon type you got). Then place in the notetag <EQS Ignore> and that's that.
2) With YEP_SkillLearnSystem, place in the notetag on the actor's class. It can be a list of the set of weapon type rank skills you made for the actor to learn through the menu.
<Learn Skill: x, x, x> //Sword Rank skills
Make sure that the E-Rank skill of any weapon type is on each class's Skills to Learn list at Level 1. That way, in your game, they will be able to equip E-Rank swords at the start.
3) You need EquipCore for ChangeBattleEquip and EquipRequirements.
3a) ChangeBattleEquip is what you want so you can change weapons during battle.
3b) Now in the weapon database, create "Bronze Sword" and add in this requirement notetag.
Code:
<Custom Equip Requirement Condition>
if (user.skills().contains($dataSkills[x])) { // *Weapon Type* SS-Rank
condition = true;
} else if (user.skills().contains($dataSkills[x])) { // *Weapon Type* S-Rank
condition = true;
} else if (user.skills().contains($dataSkills[x])) { // *Weapon Type* A-Rank
condition = true;
} else if (user.skills().contains($dataSkills[x])) { // *Weapon Type* B-Rank
condition = true;
} else if (user.skills().contains($dataSkills[x])) { // *Weapon Type* C-Rank
condition = true;
} else if (user.skills().contains($dataSkills[x])) { // *Weapon Type* D-Rank
condition = true;
} else if (user.skills().contains($dataSkills[x])) { // *Weapon Type* E-Rank
condition = true;
} else {
condition = false;
}
</Custom Equip Requirement Condition>
Example Tier List: Bronze Sword (E) -> Iron Sword (D) -> Steel Sword (C) -> Silver Sword (b) -> Brave Sword (A) -> Meisterschwert (S) -> Divine Sword (SS)
If your actor unlocked D-Rank, you can equip Bronze and Iron Sword. So with Iron Sword, use that same requirement notetag but take out the line referencing E-Rank, and so forth with a higher tier weapon. (e.g. Steel Sword: take out D-Rank, Silver: take out C-rank, etc.)
4) With JobPoints, you can get JP (or another name you can set like HM ("Hero Merit" from Fire Emblem Heroes) each time you engage in battle and they build up as you fight. That's how you're going to get stronger weapon ranks through earning JP.
4a) On Sword D-Rank to Sword SS-Rank, add in these two notetags.
<Learn Require Skill: x> //e.g. D requires E learned, C requires D learned, B needs C, etc.
<Learn Cost: x JP>
4b) Add <Starting JP: x> to the actor database, your actor.
Playtest
----------
If you have these plugins already and followed the steps, set the starting JP to 50 and the learn cost at 1.
Then start a playtest on a map. You don't have to battle, this is just to playtest and check that this works.
On the playtest, select "Skill" and then "Learn Skills". You've already learned E-rank, and D-rank is there, click it, now equip the weapon that requires the D-rank. Go back and then hit C-rank, you can equip the weapon requiring C-rank and so forth.
That's how I can imitate the weapon rank system set in Fire Emblem in some way. I can only do this in the menu if I have enough JP earned from battles. You can also do this with staves under the armor database.
I've moved this thread to Plugin Requests. Thank you.
Thanks for the shout out @Frostorm !!!
On the system itself, it is definitely complicated but it was born out of a desire to be better with the javascript behind rpg maker. Working on things like this have definitely opened my eyes to just how much can be achieved, even without plugins when you really dive in to the code of the system!
Original thread: https://forums.rpgmakerweb.com/threads/weapon-efficiency-progression.124822/