ID:160145
 
I have two problems, I only have one tab and I can't make tabs for all my commands, and the commands I made won't show up in the window when I run the game. Can someone please tell me how to do this? Thank you. :)
Tab controls aren't verb panels. Verb and stat panels like the ones in BYOND 3.5 are Info controls in 4.0.
you make tabs using the

Stat()
stat(desc)
statpanel("Inventory",usr.contents)



you have to make a var of contents of to show your inventory though

to make other tabs just put

statpanel("WHATEVER YOU WANT THE TABS NAME HERE", usr.WHAT YOU WANT IT TO BE HERE EG CLAN



BTW this iss all tabbed under mob

In response to Kaiochao
Okay, so I have one more problem.

mob/Host/verb/edit()
switch(input("What do you want to edit?", "Text") as null|anything in list ("Max Upload Size", "Max File Limit", "Max Size Limit"))
var/1
if("Max Upload Size")
l=input("What do you want to change the current max upload size ([uploadbytelimit]) to?" , "Text")as null|num
if (l&&l>0) uploadbyelimit=1
if("Max File Limit")
l=input("What do you want to change the current max file limit ([fileamountlimit]) to?", "Text")as null|num
if(l&&l>0&&currentfileamount>1) fileamountlimit=1
if("Max Size Limit")
l=input ("What do you want to change the current max size limit ([bytamountlimit]) to?", "Text")as null|num



There is an error that says: Mariah's Game.dm:59:error: expected expression.
It highlights the var/1 line. I was told what was wrong with it, but I don't really know what to type to fix it.
In response to Pinkymcgee
Pinkymcgee wrote:
Okay, so I have one more problem.

mob/Host/verb/edit()
> switch(input("What do you want to edit?", "Text") as null|anything in list ("Max Upload Size", "Max File Limit", "Max Size Limit"))
> var/1
> if("Max Upload Size")
> l=input("What do you want to change the current max upload size ([uploadbytelimit]) to?" , "Text")as null|num
> if (l&&l>0) uploadbyelimit=1
> if("Max File Limit")
> l=input("What do you want to change the current max file limit ([fileamountlimit]) to?", "Text")as null|num
> if(l&&l>0&&currentfileamount>1) fileamountlimit=1
> if("Max Size Limit")
> l=input ("What do you want to change the current max size limit ([bytamountlimit]) to?", "Text")as null|num

There is an error that says: Mariah's Game.dm:59:error: expected expression.
It highlights the var/1 line. I was told what was wrong with it, but I don't really know what to type to fix it.

1 is an illegal variable name. You must have a letter before it.
In response to Green Lime
1 is an illegal variable name. You must have a letter before it.

Okay, thats what I was told. What do I put is what I need to know. (Sorry I'm new to this)
In response to Pinkymcgee
Put a letter before it like he said! >_> Then do the exact same thing for all the other 1's in that code.
In response to Mizukouken Ketsu
I understand that. But does it have to be a certain letter or just some random letter. Again, I am new to this. You have to be more specific.
In response to Pinkymcgee
A custom variable name can be whatever you want, since it's a new variable - naturally provided there isn't such a variable with the same name already, or the name isn't a reserved word.

Your problem here was that a variable name can't begin with a number digit.
In response to Kaioken
Okay, can someone give me an example of what to put, I am lost.

Sorry to bother you all. v.v
In response to Pinkymcgee
Well, try it on your own. You have to learn from the start to experiment and as such independently; we've no problem helping you, but spoonfeeding every thing is a different matter.
Surely my previous post was not all that difficult to understand? Let me sum it up for you. I'll also expand a bit that the same follows for other things.

-Proc, verbs, node (path) and var names can be whatever; it's up to you to name them what you want.
For var names, commonly programmers will name vars as a short description of the type of value it's supposed to hold. This may be a word, or a letter; there are some highly popular conventions for local variables' names, such as:
'M' for vars containing mobs.
'O' for vars containing objs.
...
'C' for clients
'i' for variables that are a numerical index
etc.
Remember though, it's up to you how to name your vars.

-However, they cannot be one of the following:
  • An existing name. This is quite obvious.
  • A reserved DM word. This may vary, but is generally names of some built in procs, operators and vars.
  • They cannot start with a number.
  • They cannot contain some special characters, such as spaces

I suggest looking into this article and reading for learning, so you'll know the stuff. That's what somebody who's new ought to do.