ID:160145
Nov 8 2008, 7:35 pm
|
|
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. :)
|
Nov 8 2008, 8:02 pm
|
|
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() 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() There is an error that says: Mariah's Game.dm:59:error: expected expression. 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:
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. |