ID:176813
 
Is there a way I can make two seperate panels with different verbs on them. For example, one panel with social verbs to use in towns and such and another with combat verbs. This is just because in a bigger game, things can get confusing. (Maybe even a way to switch the verbs (when you leave the village, your social verbs are replaced with combat verbs?)
mob/verb/Attack()
set category = "Attacks"
mob/ShopKeeper
verb/Buy()
set category = "Shops"
try using something like this...

if(usr.intown == 1)
mob/verb
talk
set_category = "Communication"

if(usr.intown == 0)
mob/verb
attack
set_category = "Battle"

You will have to indent them correctly, I did this code in the message window. Using that as a basic outline should help you.
In response to Kamion
Except, of course, it won't work in any way. To adjust verbs for leaving/entering town:

1. Seperate your verbs into different mob categories ( mob/player/combat/verb/attack(), mob/player/social/verb/emote() ). All verbs that are to always be kept no matter what the situation (say(), who()) are just to be kept in mob/player/verb.
2. Add/remove the verbs at runtime, with verbs += typesof(mob/player/combat/verb), and verbs -= typesof(etc.)

That's all there is to it.
In response to Buzzyboy
Thanks guys, I'll give these a try then let you know which works the most efficiently. Then we'll all know.
In response to Krosse
For any who'd like to know. As a beginner, I've found that just using

mob/verb
attack
set category = "Combat"

works best. Of course, you have to write it in for every verb, but when you divide these verbs into these categories, you shouldn't have that many to deal with anyway.