How do you make an item (not a weapon or armor, an item) that only a specific character or class can use?
Thanks!
Place the weapon type in the Class options in the Database.
he said it's NOT a weapon or armor 🙂
You could either have a script do it - in that case it would be able to prevent you from using it on someone.
Or you could do it with common events - have the common event check the actor or class that the item is about to be used on, and only apply the effects if they're the right actor or class. If they're not, and it's a disposable item, you'd then have to give it back to them.
I think a scripting solution would be more elegant, so if you want to go that way, we'll move it over to Script Requests.
You need to explain how an item "that only a specific character or class can use?" will behave from a player's point of view.
When I select the item to use, does it only show the characters that I can use it on?
If it shows all the characters, what happens when you use it on someone that can't use it?
You need to run through all use cases that you will have for your game, as different answers to questions like the two above will significantly change what kind of solution you get.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.