Code:
Problem description:
I have a slight problem controlling verb accessibility. I know how to do so to a degree, but can't manage to do so in a way that would allow me to implement a class system in a game. I've noticed, primarily in Naruto games, that certain techniques are only usable in certain clans. I've managed to make it so certain verbs are only viewable by those with a specific variable associated with their mob, but not limiting the ability to use those verbs by simply typing that in. I've read the guide multiple times, and while I'll admit it's possible I've simply missed a section, that doesn't really solve my problem. Any help would be appreciated.
I like that idea, and it does answer part of my question. What I want to know now is how to remove a verb from certain player's verb list completely. For example, say I have two classes: Swordsman, Archer. Two skills: Slash, Shoot. Now, I know I could make it so that the verbs are derived from the particular classes weapon, but what I want to know is how I could derive the verb from the player, but only give the Slash verb to the Swordsman, and the Shoot verb to the Archer. The Swordsman can't see or use the Shoot verb, and vice versa. Any tips on doing something like that?
|
Here is that specifically. Instead of removing verbs just add them depending on class.
mob/player//default user mob This makes it so you can choose a class and it will remove accessible verbs and give you the correct ones. |
I'd thought about trying something somewhat similar, but wasn't sure how to go about making it work. Thanks for taking the time to answer my questions, it's definitely appreciated.
|
I hope this helps you out, I know this is the way I would handle it plus some extra stuff to flesh it out but this should be a decent reference.
Also, heres another way to code it a little lighter...
^this is a much easier way to go through it but I thought I would show both since the first may make more sense :/