I have several items that teach skills to characters and I want them only to be taught to certain characters. What type of script in Common Events would I enter to make sure the item doesn't get taught to a character it shouldn't be taught to.
Skill Teaching Character Specific
RPG Maker VXAce SupportThe way I would probably do this, assuming you dont have like hundreds of these character-specific skill teach items, is have the item apply a State called "Skill Teach" to the actor instead of teaching the skill directly and then run a Common Event that is specific to the item. Inside that Common Event, check through each actor to see whether they has the Skill Teach state applied. If an actor has that State and is allowed to learn the Skill, teach them the Skill and remove the State. If an actor has that State but is not allowed to learn that skill, give the party the appropriate Skill Teach Item back and remove the State (but don't teach the Skill). Use Sound Effects and Messages wisely to make it clear to the player that the skill learn was or wasn't successful.
What kind of items are we talking about here? Is the item consumable like a potion or food? Or is it like a weapon/armour that a player equips? Is it one item but several of them, or are they all different names? Does "ITEM A" teach "PLAYER A" only one skill, or can you reuse "ITEM A" to teach him several different skills? Does "ITEM A" teach "PLAYER A" a skill example "HASTE" and then you can use "ITEM A" to teach "PLAYER B" a different skill for example "HEAL"?
How many characters do you have that are going to learn skills from items?
How many characters do you have that are going to learn skills from items?
Original thread: https://forums.rpgmakerweb.com/threads/skill-teaching-character-specific.58640/