I want to make certain skills locked to weapon types, since i'm only having 2 party members in my game, 3 maximum, and i want them to be able to use different weapon types and have it actually matter. For example, i'd like to have the gun weapon types have a set of skills they can use, and have the axe weapon types have their own set of skills. Is there a way to do this in XP? I saw that it's a feature in later versions, but XP is the only version i have. Is there a script i can insert into the game to have things work this way?
How can i make skillsets specific to weapon types?
RPG Maker XP SupportBump. I'd also like to know if there's an easy way to pull this off.
Hi,
actually, you can build a system with events only, with some effort.
To give you a starting point:
You would have a variable for each character, describing the weapon type they have equipped at the moment. Of course, you have to define which number stands for which weapon type beforehand. So, for example, 1 for sword, 2 for axe and so on.
Then, you set the weapon type variable to the appropriate number, depending on which weapon the characters equip. So, if character 1 does equip a sword, the weapon type variable for character 1 will be set to 1 because we decided, that 1 stands for sword weapon types.
After that, you check via conditional branches what number the weapon type variable holds and run some forget/learn skill commands, again, for each character.
As I think about it, with a solution like this, you need a way to check if an equipped weapon has changed to be able to run the code in the first place. You could have a parallel common event checking periodically, but that would be somehow inefficent. A better way would be a switch turned on when changing the weapons, so it activates the parallel common event when closing the menu and the common event can turn off the switch again after it reaches the end.
In the script Scene_Menu, go to line 72 and insert the following code after the end:
And the following code in the script Scene_Equip, in line 206 right under the input check:
x = the number of the switch which triggers your common event.
---
Alternatively, it can be done all the way with ruby, like almost anything in RPG Maker XP.
Additionally, the weapon type could be displayed in the Equip Menu and so on. I could write some little script on the weekend which makes it possible (for the standard menu), beside the other thing described above, at least if someone other does not jump in and if you are intereseted. But to be honest, for the learning experience, I would recommend you to build it via events like described above first and maybe it's robust enough for you.
actually, you can build a system with events only, with some effort.
To give you a starting point:
You would have a variable for each character, describing the weapon type they have equipped at the moment. Of course, you have to define which number stands for which weapon type beforehand. So, for example, 1 for sword, 2 for axe and so on.
Then, you set the weapon type variable to the appropriate number, depending on which weapon the characters equip. So, if character 1 does equip a sword, the weapon type variable for character 1 will be set to 1 because we decided, that 1 stands for sword weapon types.
After that, you check via conditional branches what number the weapon type variable holds and run some forget/learn skill commands, again, for each character.
As I think about it, with a solution like this, you need a way to check if an equipped weapon has changed to be able to run the code in the first place. You could have a parallel common event checking periodically, but that would be somehow inefficent. A better way would be a switch turned on when changing the weapons, so it activates the parallel common event when closing the menu and the common event can turn off the switch again after it reaches the end.
In the script Scene_Menu, go to line 72 and insert the following code after the end:
Ruby:
if $scene.is_a?(Scene_Map)
# Refresh map
$game_map.refresh
end
And the following code in the script Scene_Equip, in line 206 right under the input check:
Ruby:
$game_switches[x] = true
x = the number of the switch which triggers your common event.
---
Alternatively, it can be done all the way with ruby, like almost anything in RPG Maker XP.
Additionally, the weapon type could be displayed in the Equip Menu and so on. I could write some little script on the weekend which makes it possible (for the standard menu), beside the other thing described above, at least if someone other does not jump in and if you are intereseted. But to be honest, for the learning experience, I would recommend you to build it via events like described above first and maybe it's robust enough for you.
Very simple: you can set "add skill type" and "add skill" in the traits of your weapon.
If a player knows the skill, but not the skill type, the skills only show up when the weapon is equipped that has the skill type in its traits.
If a player knows the skill, but not the skill type, the skills only show up when the weapon is equipped that has the skill type in its traits.
I think you are confusing it with a different RPG Maker. XP has no such things.

Oops, didn't notice it was about XP
You still wouldn't be able to view what skills the character knows without the weapon they're currently equipped though.
Does this script work?
That's right. Guess I missread the thing a bit and thought, that the weapons provide the skills, not the character.
In this case the solution would definitely be a ruby one and the script KK20 linked to looks like a proper script for that.
Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-make-skillsets-specific-to-weapon-types.147059/