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 » Scripters
Home Search
 

Re: Adding item description in tables

Previous Thread :: Next Thread 
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
01 Jan 2016 10:50 AM
local cmds = {
["ban"] = true;
["kick"] = true;
["admin"] = true;
["unadmin"] = true;
["unban"] = true;
["punish"] = true;
["cmds"] = true;
["unpunish"] = true;
["cmdbar"] = true;
}


How would I add a description for each of these?

say if I wanted to print what "ban" does

it would print

"Kicks a player from game and doesn't allow them to rejoin"

How would I add that into the table?
Report Abuse
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
01 Jan 2016 11:04 AM
Bump
Report Abuse
OzzyFin is not online. OzzyFin
Joined: 07 Jun 2011
Total Posts: 3600
01 Jan 2016 11:13 AM
local cmds = {
ban = {
desc = "Bans the player defined",
func = function()
--ban player
end,
-- mayb more stuff
}
}

this is how I'd do it

and after someone chats a command it would fire the function
cmds[command].func()
Report Abuse
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
01 Jan 2016 11:43 AM
Thank you!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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