ID:170288
 
Im making a game, and i need to know how to code myself in so i have GM. i hova the codes and the catourgoury. All i need is to make it so i have GM and nly me on my game
By the looks of it, you're looking for The Code. If you want it, you can click the link before this or this one: The Code
For your first question, to distribute the hub files for download, you need a website. You have to put the files onto the website and while editing the hub entry, you must place the download URL into the space it asks you to put it at.

To allow you and others to have GM, simple use:
mob
Login()
if(src.key == "Nowatimean")
usr.verbs += typesof(/mob/GM/verb/)


To add another GM simply copy and paste the code and replace the name with the desired key of the other GM, or simply add ||src.key="(GM.key)" to the back of the if statement so it looks like:
mob
Login()
if(src.key=="Nowatimean"||src.key=="CaptFalcon33035")
usr.verbs += typesof(/mob/GM/verb/)


That's the easiest and only way I know.
In response to CaptDarkDragon
And it's not a very good way. :p
Well, it is, but keeping list is MUCH better.
In response to CaptDarkDragon
CaptDarkDragon wrote:
For your first question, to distribute the hub files for download, you need a website. You have to put the files onto the website and while editing the hub entry, you must place the download URL into the space it asks you to put it at.

To allow you and others to have GM, simple use:
> mob
> Login()
> if(src.key == "Nowatimean")
> usr.verbs += typesof(/mob/GM/verb/)
>

To add another GM simply copy and paste the code and replace the name with the desired key of the other GM, or simply add ||src.key="(GM.key)" to the back of the if statement so it looks like:
> mob
> Login()
> if(src.key=="Nowatimean"||src.key=="CaptFalcon33035")
> usr.verbs += typesof(/mob/GM/verb/)
>

That's the easiest and only way I know.

THANK YOU!
In response to Nowatimean
You are very welcome.
It may not work, though. You have to add your verbs to something somewhat like:
mob
GM
verb

But if you dont feel like doing all of those tabs and whatnot, use
mob/GM
verb
It will save you alot of work and time.
In response to Hell Ramen
Hell, you know just as well as I know that there is no such thing as "The Code" there are code's and what not but there is not just "The Code"...

~Chris
You could do it how cap did it or you could do a couple more steps and it would help prevent a few bugs:
mob
proc
Gmcheck()
if(src.key == "Nowatimean"||src.key == "Chwgt")//The way capt showed you
src.verbs+=typesof(/mob/Gm/verb)
Of course now that you have the proc you have to add it into your login somewere you find appropriate just add :
Gmcheck()

Now the verbs should be like so:
mob
Gm
verb
Fly()
if(src.fly == 1)
src.density = 0
src.fly = 0
else
if(src.fly == 0)
src.density = 1
src.fly = 1


That's just about all..

~Chris(chwgt)
In response to Tainted Productions
Bzzt, fly verb is bad.
mob
Gm
verb
Fly()
src.density!=src.density
src.fly!=src.density


Bingo.