Is there a way that items can only be used by specific actors? I want to have spell books that teach spells to people based on their class or element. Something like that. If you could reply quickly, that would be great.
Actor Specific Items
RGSS3 Script RequestsOne word: common events. (well, two)
This is possible without scripting.
A tutorial in pictures:
Class applied, skill learned, all are okay for conditionals.
If you don't know which actor it is, set a variable equal to the actor ID, then in Change Skills, set it to Variable, then that variable.
Then, in the items database...
Edit: as for "spells or class", easy, just set the conditional to "if actor has class [blank]" instead of "if actor in party".
This is possible without scripting.
A tutorial in pictures:
Class applied, skill learned, all are okay for conditionals.
If you don't know which actor it is, set a variable equal to the actor ID, then in Change Skills, set it to Variable, then that variable.
Then, in the items database...
This can be closed, now!
One question: does that add a skill for all current actors in the party? Because I want it to do that only with the selected actor.
With the tutorial, there is no "selected actor". You could set up a choice menu so that the player can choose who learns the skill, but otherwise, the flaw with using common events is that there is no "selected actor". The game doesn't register who is being selected, because the item doesn't heal/restore mp/add stats/do something.
Not selecting an actor is not because you're using a common event, but because your scope is set to None"
If you set the scope to "One Ally" then you can select a target.
If you set the scope to "One Ally" then you can select a target.
Thanks, Tsukihime! NOW this can be closed. 😀
Original thread: https://forums.rpgmakerweb.com/threads/actor-specific-items.45001/