generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How do I script a tree menu?

Previous Thread :: Next Thread 
Combrad is not online. Combrad
Joined: 18 Jul 2009
Total Posts: 11025
14 Nov 2011 11:18 AM
What is this?
Explorer is a good example of this, you click the plus and it opens up more of the 'tree'

How exactly do I accomplish this?
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
14 Nov 2011 11:23 AM
Depends on what it is you're... treeing. Is it nested tables?
Report Abuse
Combrad is not online. Combrad
Joined: 18 Jul 2009
Total Posts: 11025
14 Nov 2011 11:25 AM
Yes, it is.

Much like

Grandparent = {
Parents = {"Bob","Tom","Sam"}
Parents2 = {}
Parents3 = {"Jim"}
}

Then I could create a family tree.
Report Abuse
mark298 is not online. mark298
Joined: 24 Oct 2008
Total Posts: 1264
14 Nov 2011 11:27 AM
Use a drop down gui
Report Abuse
Combrad is not online. Combrad
Joined: 18 Jul 2009
Total Posts: 11025
14 Nov 2011 11:29 AM
Seriously, thats a terrible answer, learn to script and understand exactly what this is.
Report Abuse
mark298 is not online. mark298
Joined: 24 Oct 2008
Total Posts: 1264
14 Nov 2011 11:36 AM
I can script actually, so...
Report Abuse
mark298 is not online. mark298
Joined: 24 Oct 2008
Total Posts: 1264
14 Nov 2011 11:37 AM
And i know how to do this too but unfurtunately its a request so you aren't getting an answer from me.
Report Abuse
Combrad is not online. Combrad
Joined: 18 Jul 2009
Total Posts: 11025
14 Nov 2011 11:38 AM
So, asking for a method is a request, I'll go ask somebody more intelligient.
Report Abuse
mark298 is not online. mark298
Joined: 24 Oct 2008
Total Posts: 1264
14 Nov 2011 11:45 AM
Yes, because you're asking(requesting) a method. And good look finding somebody without a G.C.S.E in Maths, Buisness Studies and Computer programming and somebody who knows C++.
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
14 Nov 2011 11:58 AM
@mark, get lost you stupid idiot. You cannot tell the difference between a request and someone asking for HELP.

@OP:

You mean like the explorer? Like where you have hierarchy like:

Workspace
> Camera
> Base
Lighting
> Sky

Report Abuse
Combrad is not online. Combrad
Joined: 18 Jul 2009
Total Posts: 11025
14 Nov 2011 12:04 PM
Yes, exactly that.
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
14 Nov 2011 12:09 PM
My method would be to have a table of points. If your heirachy is:

bigtable = {
Grandparent = {
Parents = {"Bob","Tom","Sam"}
Parents2 = {}
Parents3 = {"Jim"}
}
heresanothervariable = {}
thisisjustforthesakeofnestedvariables {}
}

(I just put it inside another table because there wasn't enough nested tables in yours for my example to work)

Then, say your location is

location = {"Grandparent", "Parents2"}

And a handy reference whom I shall calls "james"

james = bigtable

I would design a function, initially fired with an argument of 1 (prepare for ultra recurse) that would iterate through 'james' (so it starts off in bigtable and lists all the pointers), and lists them or creates them or whatever. HOWEVAR, when it matches the pointer with index 1 of 'location' (you now see the point of the argument) it sets james = james[i], and fires the function again, with argument = argument + 1.

kind of confusing but a solid method that I used when making an explorer replica.

- sdfgw; a guy with 0.5 GCSEs than mark298
Report Abuse
mark298 is not online. mark298
Joined: 24 Oct 2008
Total Posts: 1264
15 Nov 2011 12:32 PM
@sdfgw, so you're saying that you have half a G.C.S.E? Thats impossible you idiot, You probably don't even have 1. And SoulStealer9875, Asking is requesting you idiot, you obviously don't think before you speak, or in this case type.
Report Abuse
Combrad is not online. Combrad
Joined: 18 Jul 2009
Total Posts: 11025
15 Nov 2011 12:34 PM
Mark, get the heck off of this forum, we are all far superior at scripting to you. I can prove this because I was merely asking for logic, not a script at all. Anybody can script in Lua, but not everyone can provide logic.

All I've seen is you be unhelpful to people and troll them, I'm guessing this is because you can't even script well enough yourself.

So seriously, go somewhere where they like people that are trolls, like OT.
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
15 Nov 2011 12:35 PM
@Mark, get out right now. Asking for HELP isn't requesting, asking for SCRIPTS is requesting.

Oh and by the way, you're an idiot.
Report Abuse
btwirock is not online. btwirock
Joined: 02 Feb 2009
Total Posts: 25
15 Nov 2011 12:37 PM
Oi you I hope you realise, you are messing with one of the most famous scripters on ROBLOX and "stupid idiot"? That's the best you can do? Go get some friends you oversized pig. I could say worse than this but it might make you cry.
Report Abuse
mark298 is not online. mark298
Joined: 24 Oct 2008
Total Posts: 1264
15 Nov 2011 12:38 PM
You get it right, asking is requesting. and scripting lua is simple, I know anybody can understand that but i bet you guys can't even script C++ or Smart can you?

Exactly you can't so shut up, I may not have helped you because i maybe... I don't know... Couldn't be bothered?
Report Abuse
btwirock is not online. btwirock
Joined: 02 Feb 2009
Total Posts: 25
15 Nov 2011 12:39 PM
Oi I hope you realise. you are messing with one of the BEST scripters on ROBLOX. Go get some friends you fat overgrown cow. GET LOST.
Report Abuse
mark298 is not online. mark298
Joined: 24 Oct 2008
Total Posts: 1264
15 Nov 2011 12:40 PM
@btwirock, is that at them or me?
Report Abuse
Combrad is not online. Combrad
Joined: 18 Jul 2009
Total Posts: 11025
15 Nov 2011 12:41 PM
Actually, we both can. I also code in Adobe Action Script, VB.net, Javascript and I am currently learning Java.

Smart is not a good language, and honestly isn't needed.

The idea of this forum is to 'ask for help' a request is something you require.
The difference being.
Request :
'I require this script, make it for me.'
Asking :
'Can you offer me logic or correct this for me?'

Request ~= Asking
Your_Logic = nil
Report Abuse
btwirock is not online. btwirock
Joined: 02 Feb 2009
Total Posts: 25
15 Nov 2011 12:41 PM
OBVIOUSLY at those err... What could we call them? "FATOVERGROWNPIGNOOBPEOPLE"?
Report Abuse
Combrad is not online. Combrad
Joined: 18 Jul 2009
Total Posts: 11025
15 Nov 2011 12:42 PM
So, you meant Mark?
Report Abuse
btwirock is not online. btwirock
Joined: 02 Feb 2009
Total Posts: 25
15 Nov 2011 12:42 PM
Not you.
Report Abuse
btwirock is not online. btwirock
Joined: 02 Feb 2009
Total Posts: 25
15 Nov 2011 12:43 PM
Nah. I know that it is obviously easy to see that I am posting at you. Now get lost and learn to script. Oh and... You might want to find a few friends too as said in comments above.
Report Abuse
mark298 is not online. mark298
Joined: 24 Oct 2008
Total Posts: 1264
15 Nov 2011 12:43 PM
[ Content Deleted ]
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image