ID:165268
 
um... i was wondering how do I make it so it says im the owner when I sign on like so I can see what I need to do with it? I have some of the coding set up and maps but I need to find where i need to set my name or whatever to make it so I can be head GM. can anyone help me please!
Untested.

mob  
Login()
if(ckey=="Hiruka")
world<<"Type your message here"
In response to Dark Bahamut
what section does it go under?
In response to Hiruka
A .dm file of course.
In response to Dark Bahamut
any one of them huh or what? cause I have like 18 .dm files and I have no idea which to put them in
In response to Hiruka
Don't copy and paste, look up the stuff I posted.

I put in some not-so-easy-but-beginner's errors there, try to solve them!

Don't copy and paste! (I learned that the HARD way)
In response to Dark Bahamut
lol well does it go into the login section admin section or what I'll look it up but which section?
In response to Hiruka
If you make your own code it goes in the mob/Login() section.
In response to Dark Bahamut
yeah I figured it out finally! and now I need to know how to make it so I can host it so other can play.
In response to Hiruka
Forum search 'how to host'.
In response to Dark Bahamut
that wasnt any help...
In response to Dark Bahamut
ckey doesn't recognise capitals...

mob
Login()
if(src.ckey == "hiruka") world << "<b>Game owner [src.name] has logged in!</b>"
else world << "[src.name] has logged in."
..()


I assume that is what you meant when you wanted the game owners name displayed on login.

This is just an example, although it is a working one, it'd wiser to add it into your code, not copy and paste.

--

As for others hosting. Please tell me what you mean by that. You want to release the host files, so people can play/host without having the source code?

If this is the case:
Build -> Package Files -> World Executable Files -> Follow the Prompts. (Also a good idea to click the Clean Compile check box).
In response to Tiberath
Tiberath wrote:
ckey doesn't recognise capitals...

> mob
> Login()
> if(src.ckey == "hiruka") world << "<b>Game owner [src.name] has logged in!</b>"
> else world << "[src.name] has logged in."
> ..()
>

I assume that is what you meant when you wanted the game owners name displayed on login.
I added a mob for the GM (or owner) in a game I'm working on.
Here is some of the code:
mob/GM
key = "Armiris"
icon = 'GM'

...and then just some more of the code.
But you could add stuff like this:
mob/GM
Login()
. = ..
world << "Game Owner (insert key here) has logged on."


Feel free to use this code.