ID:176813
![]() Dec 7 2002, 9:43 am
|
|
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?)
|
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. |
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. |
Thanks guys, I'll give these a try then let you know which works the most efficiently. Then we'll all know.
|
set category = "Attacks"
mob/ShopKeeper
verb/Buy()
set category = "Shops"