I know there are librarys and stuff but i just wanna know
can someone give me a code for them like give verbs, reboot, Ban, Boot, mute and suff like that.
also how do i put more than one key in so i more thsn one person can have the same verbs
ID:161558
![]() Apr 22 2008, 12:58 am
|
|
thanks
but when you put in mob/Login() if(src.key == "Insert key here") is there anyway to put in more than one key??? |
Skitz4Evil wrote:
thanks mob/Login() |
Or use lists, so much easier.
var/list/admins=list("howey","akutabigamma") Also, things like mute should never use a boolean variable, you should always use lists. |
Administrative verbs should not be mob verbs, they should be client verbs. If for whatever reason you put something in the game to let you control another player (mind control, for example), WHOOOOOOOOOOOPS! Admin powers!
|
Akutabi Gamma wrote:
Also, things like mute should never use a boolean variable, you should always use lists. Uh. How to say it gently - no. An object variable is much preferable, not necessarily a boolean one, but that would be preferable to a new list per setting as well. Welcome to object-oriented programming. |
Indeed. Not to mention things like admin powers (and hell, stuff like Say() verbs as well, pretty much) should be accessible regardless of which mob you're inhabiting.
Oh, and also while on the subject, you shouldn't define new useless atom types like mob/GM to define verbs on. If you need to categorize them by path nodes, then define useless (or not) /datums instead. You'll also get the added benefit of not bloating up your map editor. |
Just something like that would do..