ID:271404
 
I need help making the gm and host ranks and verbs that go with them

Like for host(Reboot, Repop, Kick, Mute)

and like for GM (Kick, Ban(Timed ban), Mute, Repop.)

and Owner (Give Rank, Take Rank, Change Rank Name, All Gm and host powers)


but i can't figure them out the DM ref guide was no help and no guides tell me how


I also need help fixing my View_Description verb
mob/verb/View_Desctiprtion()
set category = "Character"
set desc = "View other character's description"
usr.desc in view()
usr << "[usr] looks like [usr.desc]"
mob
admin //shared GM and host verbs
verb
Repop()
Kick()
Mute()
host
verb
Reboot()
GM
verb
Ban()
Owner
verb
Give_Rank()
Take_Rank()
Change_Rank_Name()

proc
getPowers()
if(src is a host)
verbs += typesof(/mob/admin/verb)
verbs += typesof(/mob/host/verb)
if(src is a GM)
verbs += typesof(/mob/admin/verb)
verbs += typesof(/mob/GM/verb)
if(src is an owner)
verbs += typesof(/mob/admin/verb)
verbs += typesof(/mob/owner/verb)
verbs += typesof(/mob/host/verb)
verbs += typesof(/mob/GM/verb)


And for your View_Descrtiprtion() verb, you've got a number of problems, there:
    usr.desc in view()

This line does nothing.
    usr << "[M] looks like [usr.desc]", target = "M"

this line is improper syntax. Statements cannot be seperated by a comma. You need a newline there, instead. Additionally, setting target to "M" likely is useless. Additionally, M is not defined as anything here. However, because there is nothing that would bring another object into this proc (such as using "set src in view()" or an argument) you'll need to do that first before you can view something's description. [usr.desc] is certainly not what you want: that's the "desctiprtion" of the person clicking the verb.
In response to Garthor
proc
getPowers()
if(src is a host)

I get the error

:error: is: missing comma ',' or right-paren ')'
In response to Black Wolf Production
That's because it's psuedocode. Same structure as real code, but only descriptive of what it should be. I don't know how you define a host, GM, whateverthehellelse. That's something you should know. You're the one who is doing it, after all.
In response to Garthor
Gm=Game Monitor
Admin=Administrator
Host=Person Hosting Game
Owner=Maker of the game.(Me)
In response to Black Wolf Production
Yes, but the point is, YOU have to fill in those if() statements with whatever you use to determine whether a player is one of those or not.
In response to Garthor
OKay thanks got it working.
In response to Black Wolf Production
Okay I got my verbs but they don't show up such as my reboot verb

  host
verb
Reboot()
set category = "GM Verbs"
world << "<Font Color=Red><b>World is Rebootting in 30 seconds</font></b>"
sleep(250)
world << "<Font Color=Red><b>5</font></b>"
sleep(10)
world << "<Font Color=Red><b>4</font></b>"
sleep(10)
world << "<Font Color=Red><b>3</font></b>"
sleep(10)
world << "<Font Color=Red><b>2</font></b>"
sleep(10)
world << "<Font Color=Red><b>1</font></b>"
sleep(10)
Reboot()


In response to Black Wolf Production
I belive you should call world.Reboot() not Reboot().

- Miran94
In response to Miran94
Which one ? Or do you mean both?


WEll either way i still don't recive it when I log in

HEres the whole code

mob
admin //shared GM and host verbs
verb
Repop()
set category = "Gm Verbs"
world << " <Font color=orange><b>World Repoped</b></font>"
Kick()
Mute()
host
verb
world.Reboot()
set category = "GM Verbs"
world << "<Font Color=Red><b>World is Rebootting in 30 seconds</font></b>"
sleep(250)
world << "<Font Color=Red><b>5</font></b>"
sleep(10)
world << "<Font Color=Red><b>4</font></b>"
sleep(10)
world << "<Font Color=Red><b>3</font></b>"
sleep(10)
world << "<Font Color=Red><b>2</font></b>"
sleep(10)
world << "<Font Color=Red><b>1</font></b>"
sleep(10)
Reboot()
GM
verb
Ban()
Owner
verb
Give_Rank()
Take_Rank()
Change_Rank_Name()

proc
getPowers()
if(usr.key=="")
verbs += typesof(/mob/admin/verb)
verbs += typesof(/mob/host/verb)
if(src.key=="****" || src.key=="*******")
verbs += typesof(/mob/admin/verb)
verbs += typesof(/mob/GM/verb)
if(src.key=="Black Wolf Production")
verbs += typesof(/mob/admin/verb)
verbs += typesof(/mob/Owner/verb)
verbs += typesof(/mob/host/verb)
verbs += typesof(/mob/GM/verb)

In response to Black Wolf Production
He means the proc that reboots the world is world.Reboot().

In fact, naming the verb Reboot() is a bad idea, and I'd suggest something else (possibly using set name = "Reboot" so it still shows up as the same).
In response to Garthor
I get that....but I still cannot get the verb for some reason....
In response to Garthor
i want to host a game naruto legendary x rated shinobi
In response to SWARMz
ok
In response to Black Wolf Production
In my opinion you should find an Admin system demo, but oh well.

mob
host
verb
Reboot()
set category = "GM Verbs"
world << "<Font Color=Red><b>World is Rebootting in 30 seconds</font></b>"
sleep(250)
world << "<Font Color=Red><b>5</font></b>"
sleep(10)
world << "<Font Color=Red><b>4</font></b>"
sleep(10)
world << "<Font Color=Red><b>3</font></b>"
sleep(10)
world << "<Font Color=Red><b>2</font></b>"
sleep(10)
world << "<Font Color=Red><b>1</font></b>"
sleep(10)
world.Reboot()


            
mob/Login()
if(src.key =="HostKey") //// change hostkey to the hosts key
src.verbs += /mob/host/verb/Reboot
if(src.key =="Black Wolf Production")
src.verbs += typesof(/mob/Owner/verb)