ID:273836
 
I have NEVER EVER coded before i need help on everything.
I know how to icon, i have made all the icons i want already

So to begin with i need to know how to make it so when people log in it says "Welcome to Shinobi The Game!"
That is only one of the things i need help with. I also need to know how to make it when they log on they have to chose a charactor icon of Naruto or Nara or Haku in a list.

I also need to know how to make it so people can go inside buildings. Following on from what i just said i also need to know how to make the inside of buildings.

I need to know how to make me byond key King_ed Admin when i log in. I also need to know how to code three types of Game Moderator "Admin, Gm and Trial Gm. I need to know how to code the verbs i want each type of GM to have for example Admin gets Make_GM where they can give players Trial GM, Admin or GM and also a Take_GM verb where they can take GM/Admin/Trial GM away along with all the verbs from that player.

Also i need to know is how to do this. I want to know how to make these verbs and for who i want it to be for. I dont know how to code these verbs thats why i am asking you!

Teleport - GM/Admin/Trial GM
Summon - GM/Admin/Trial GM
Make_GM - Admin
Take_GM - Admin
Reboot Sever - Admin
Ban GM/Admin
Unban GM/Admin
Boot GM/Admin/Trial GM
Shutdown Sever - Admin
Announce - Admin/GM
Mute_World - Admin/GM
UnMute_World - Admin/GM
Mute - GM/Admin/Trial GM
UnMute - GM/Admin/Trial GM

Also i need to know is how to make a mob have stats like Health, Chakra, Taijutsu and Stamina.
I also need to know is how to make it so they can train these stats by doing the following things and i need to know how to set a certain speed that the stats rise.

Health - Walking around - Goes up Very Slow

Chakra - Walking on water - Goes up Slow

Taijutsu - attacking someone with melee - Goes up once for every kill

Stamina - walking around - Goes up Fast

The last thing i need to know is how to make it is how to make it so when attacking someone with melee for everytime they attack someone 0.1 persent of their stamina goes down and when walking around every step they take makes 0.01 percent of their stamina go down. I know i said that was the last thing but i also need to know how to make it when their stamina gets to 0 they cant move or attack. So i need to know how to code attack so this will happen. I also need to know how to code a rest verb that when they use it their stats go back to their maximam again.


SOMEONE PLEASE HELP ME DO THIS!!!
First your going to want to define the difference in Admin and normal player so..


lets start with:

#define MASTER_KEY "YOUR KEY HERE" //The all-powerful super-user! //
mob/DM
key = MASTER_KEY


Now lets define some verbs for your Admin. Heres what I use:

mob/DM
verb
Make_GM(mob/M in world)
set category = "Admin"
set name= "Make_GM"
switch(input("Which GM level do you wish to assign?")in list("GM1","GM2"))
if("GM1")
M.GM1=1
M.GM2=0
M.verbs += typesof (/mob/GM1/verb)
world << "[M.name] has been made a Level 1 Game Moderator"
if("GM2")
M.GM1=0
M.GM2=1
M.verbs -= typesof (/mob/GM1/verb)
M.verbs += typesof (/mob/GM2/verb)
world << "[M.name] has been promoted to a Level 2 Game Moderator"
Take_GM(mob/M in world)
set category = "Admin"
set name= "Take_GM"
switch(input("Which GM level do you wish to take away?")in list("GM1","GM2"))
if("GM1")
M.GM1=0
M.verbs -= typesof (/mob/GM1/verb)
world << "[M.name] has is no longer a Level 1 Game Moderator"
if("GM2")
M.GM2=0
M.verbs -= typesof (/mob/GM2/verb)
Announce(t as message) // World announce
set category = "Admin"
for(var/client/C)
C.mob << "<center><font color=\"blue\">*****<br>\
<font size=\"+1\"><b>
[usr] would like to announce:</B><br>\
<font color=\"blue\">
[t]</font><br>\
</font>\white\
*****</center>"
later
Rename(mob/M in world, t as text)
set name = "Rename Player"
set category = "Admin"
world << "[M.name]'s name has been changed to [t]"
M.name=t
Player_2_Player(mob/M1 in world,mob/M2 in world)
set category = "Owner"
M1.loc = locate(M2.x,M2.y+1,M2.z)
M1 << "<font color =red><b>You were sent to [M1]."
Go_to_Player(mob/M in world)
set category="Admin"
set name ="Teleport to Mob"
usr.loc=M:loc
M << "[usr] appears!"
usr << "You appear before [M]."
Check_Ip(mob/M in world)
set name = "Check IP"
set category = "Admin"
usr << "[M.key]: <font color=blue> [M.client.address]"



Now those GM adds wont work unless you define a GM mob

mob/GM1
verbs
whateververbs()//make some
mob/GM2
verbs
whateververbs()//make some

I'll share some more general thoughts about learning to program.

I myself am a newcomer to BYOND and am still learning the ropes of the language. I have the advantage of having programmed before, mostly with C++ and OpenGL for graphics, but a little experience in some other languages as well. Nevertheless, learning a new language, especially your first language, is a daunting and challenging task.

My suggestion is to take things one step at a time. The tutorials on this site are very helpful, and as you can see people on the forum are friendly and willing to help you out. Before you try to make a full-fledged game, program some very simple demos. Write a program, for instance, that lets your character walk around on the map. Add some functionality to display text. Learn to use the libraries. Play around with display layers, the screen, and window management.

Best of luck to you.
In response to Komuroto (#1)
Thanks for Admin coding help but now i still need help on the other stuff.
In response to King_ed (#3)
If you want to learn, dont copy and paste it, type it out , it helps you get the feel for each function. Then go test it by running it. Try messing wit ht he coding a bit.
In response to Komuroto (#1)
mob/DM
verb
Make_GM(mob/M in world)
set category = "Admin"
set name= "Make_GM"
switch(input("Which GM level do you wish to assign?")in list("GM1","GM2"))
if("GM1")
M.GM1=1
M.GM2=0
M.verbs += typesof (/mob/GM1/verb)
world << "[M.name] has been made a Level 1 Game Moderator"
if("GM2")
M.GM1=0
M.GM2=1
M.verbs -= typesof (/mob/GM1/verb)
M.verbs += typesof (/mob/GM2/verb)
world << "[M.name] has been promoted to a Level 2 Game Moderator"
Take_GM(mob/M in world)
set category = "Admin"
set name= "Take_GM"
switch(input("Which GM level do you wish to take away?")in list("GM1","GM2"))
if("GM1")
M.GM1=0
M.verbs -= typesof (/mob/GM1/verb)
world << "[M.name] has is no longer a Level 1 Game Moderator"
if("GM2")
M.GM2=0
M.verbs -= typesof (/mob/GM2/verb)
Announce(t as message) // World announce
set category = "Admin"
for(var/client/C)
C.mob << "<center><font color=\"blue\">*****
\
<font size=\"+1\">[usr] would like to announce:
\
<font color=\"blue\">[t]</font>
\
</font>\white\
*****</center>"later
Rename(mob/M in world, t as text)
set name = "Rename Player"
set category = "Admin"
world << "[M.name]'s name has been changed to [t]"
M.name=t
Player_2_Player(mob/M1 in world,mob/M2 in world)
set category = "Owner"
M1.loc = locate(M2.x,M2.y+1,M2.z)
M1 << "<font color =red>You were sent to [M1]."
Go_to_Player(mob/M in world)
set category="Admin"
set name ="Teleport to Mob"
usr.loc=M:loc
M << "[usr] appears!"
usr << "You appear before [M]."
Check_Ip(mob/M in world)
set name = "Check IP"
set category = "Admin"
usr << "[M.key]: <font color=blue> [M.client.address]"


I put this coding as you said and when i compiled this came up.

loading Demo world.dme
Demo world.dm:40:error: later: expected end of statement
Demo world.dm:47:error: set: expected end of statement

Demo world.dmb - 13 errors, 0 warnings (double click on an error to jump on it)

I have no idea how i am suposed to fix this! HELP!
In response to Komuroto (#4)
Ok but this still does not solve the problem of the rest of the stuff i need to know!

A good game is not just made up of Gm verbs i know that much.

Do you have a game source i can have to see an example of a game code please or something i realy want to make a game but i can not do this without no knowledge of coding.
In response to King_ed (#6)
You cannot make a game without knowing how to code, at least not alone. if you're serious about doing this stuff you should look at some tutorials, because even if somebody gives you their code, you must still be able to understand what it does. BYOND has a very simple coding language, you can literally read it like a book with a little practice.
Under the Developers tab in your top-bar, there's 2 useful links.
One is The Guide (http://www.byond.com/docs/guide/) which you should start off with first, and the second is the Reference (http://www.byond.com/docs/ref/) which will help you understand more on the things you learn with The Guide.


Start there, don't just attempt to jump into code just yet, because you won't be able to.
In response to King_ed (#6)
King_ed wrote:

A good game is not just made up of Gm verbs i know that much.

Correct, a good game is made by one multitalented person or a whole team of them. And patience, lots of it.

Read the guide, most of the things you asked for are at the first few chapters of it.
In response to King_ed (#6)
King, no one is going to hand you everything you need to know.

A few nicer community members, will give you verbs/commands/ideas and such, but were here to help you, not do it for you.

If your interested in finding out more, give a detailed description of what your trying to code, and ask how would you go about doing so. Don't ask for copy and paste codes, because rarely is someone going to just hand it to you 100%. Even if we did, you should tweak with it to make it your own. That way you know what your looking at. I highly suggest going through the FAQ,and guide.

read it all please:

http://www.deadron.com/Admin/BYOND_FAQ.html#N2709
http://www.byond.com/docs/guide/

Then once your done, start looking up libraries.

And never be afraid to ask for help! :)
In response to King_ed (#6)
King_ed wrote:
Ok but this still does not solve the problem of the rest of the stuff i need to know!

A good game is not just made up of Gm verbs i know that much.

Do you have a game source i can have to see an example of a game code please or something i realy want to make a game but i can not do this without no knowledge of coding.



HERE take it...its a basic source for you to start with
http://www.megaupload.com/?d=TWZI3FF0
In response to Gokussj22 (#11)
Gokussj22 wrote:
King_ed wrote:
Ok but this still does not solve the problem of the rest of the stuff i need to know!

A good game is not just made up of Gm verbs i know that much.

Do you have a game source i can have to see an example of a game code please or something i realy want to make a game but i can not do this without no knowledge of coding.



HERE take it...its a basic source for you to start with
http://www.megaupload.com/?d=TWZI3FF0

You are quite possibly the most terrible person ever. Giving him a shitty Naruto source is the exact opposite of help.




My advice would be to disregard what Gokussj22 posted and learn from respectable material like Zilal's tutorials. You're going to also want to check this page out.

It also wouldn't help to browse this a bit, because the term OOP (Object-Oriented Programming) will probably come up a bit.
In response to Duelmaster409 (#12)
If this topic isn't dead, king_ed I will gladly work with you 1 on 1 to teach you the basics. I plan on using this experience to write/film an easy guide for new coders. This way if anybody needs help there will be yet another guide for the various types of learners in the world. Just let me know if you want this offer. Simply add me at xirre@live.com but any other invites besides you will be blocked and removed. I'll see you soon. ;)
In response to Xirre (#13)
I would love your help!

I messaged you on hotmail my email is badkid218@hotmail.co.uk
In response to King_ed (#14)
I got it.