Hi all! Debated posting this here or tutorials, but I do not think I know near enough to post in tutorials lol. So decided to put here, and my question to not break the posting rules: would anyone have more streamlined ways to achieve the below? But if the mods would prefer to move this, please feel free and apologies!
So my scenario was wanting actors to be able to change weapons and armor mid-battle, similar to in FFX. I love the VS suite, so ChangeEquipOnBattle plugin wasn't a viable solution. And, unfortunately, the weapon swap system just didn't carry this out in a way I personally wanted for my project. If you want an Octopath-style system, it's totally spot on!
What I did:
Again, I think weapon swap perfectly does what it is meant to if you're aiming for a octo-style process, no shade at it whatsoever. I just did not want the equip change to be instanteous for my battlers; I wanted the option to change armor as well; and a few other dewolf-centric design quirks related to spritesheets that probably wouldn't impact another soul on this earth lol.
If anyone has suggestions or "you could do x instead of y"s, hit me with 'em! -- i am but a simple dirt farmer cosplaying a trashcan, i do not know what i'm doing at all I mostly wanted to post this in case anyone else is trying to achieve something similar compatible with VS so they can see how it can be done (and if anyone has other takes, they can see multiple ways to achieve it!) but I am in no way suggesting this is the best or even a good way.
So my scenario was wanting actors to be able to change weapons and armor mid-battle, similar to in FFX. I love the VS suite, so ChangeEquipOnBattle plugin wasn't a viable solution. And, unfortunately, the weapon swap system just didn't carry this out in a way I personally wanted for my project. If you want an Octopath-style system, it's totally spot on!
What I did:
-
- Made a common event "Test Weapon Change":
Code:
"Control Variables : #0001 Current Battler = Last Actor ID to Act" $gameActors.actor($gameVariables.value(1)).changeEquip(0, $dataWeapons[$gameVariables.value(2)]);- Line one sets our first variable to the current battler whose equipment we want to change, line 2 handles the equipment swap based off a second variable we'll set with skills.
- Made a skill type, "Weapon"
- Made two test skills, "Knife" and "Hand Axe" tied to the ST with the following setups:
- Injected the following into the Note field:
Code:
<JS Skill Visible> visible = user.hasSkill(y) && $gameParty.hasItem($dataWeapons[x], false); </JS Skill Visible> <JS Pre-Apply> $gameVariables.setValue(2, x); </JS Pre-Apply>- Where x is the item ID of the weapon your skill should equip.
- Skill Visible notetag makes the skill only appear if you have the weapon on hand to equip (false prevents it from showing up if you have it in inventory, but all copies are equipped to someone else).
- Pre-Apply notetag sets our second variable to the item ID we want to equip.
- Optional: My characters gradually gain access to higher tiers of equipment, so "user.hasSkill(y)" may not apply to you and keeps my characters from being able to put on equipment they haven't learned to wield yet. For me, the y is connected to "Daggers I" or "Axes I"
- Made a common event "Test Weapon Change":
Again, I think weapon swap perfectly does what it is meant to if you're aiming for a octo-style process, no shade at it whatsoever. I just did not want the equip change to be instanteous for my battlers; I wanted the option to change armor as well; and a few other dewolf-centric design quirks related to spritesheets that probably wouldn't impact another soul on this earth lol.
If anyone has suggestions or "you could do x instead of y"s, hit me with 'em! -- i am but a simple dirt farmer cosplaying a trashcan, i do not know what i'm doing at all I mostly wanted to post this in case anyone else is trying to achieve something similar compatible with VS so they can see how it can be done (and if anyone has other takes, they can see multiple ways to achieve it!) but I am in no way suggesting this is the best or even a good way.