User:Outofspace/Custom SB: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Outofspace
New page: <i>Version X</i> __TOC__ =About= Completely re-written and designed to be all around better than this. All around better code base and customization. ...
 
>Outofspace
No edit summary
Line 35: Line 35:
**rand/all
**rand/all
**exit/
**exit/
==Notes==
*Creating a script is different. This SB allows for each player to have a set of scripts, allowing duplicates for each person.
===Editing error codes===
Ordered by number:
*0 - You're in edit mode.
*1 - Script is already being edited.
*3 - There are more than one script of a specified name.
*7 - Script is already being edited, and you've just added "edit/" to the code. Good going.


=Globals=
=Globals=
Line 51: Line 64:


**get/Clean
**get/Clean
**get/Tools
Removes all scripts.
**get/Parts
**get/Parts
Removes all parts.
**get/Archived
**get/Archived
Gets a list of players from the archive.
**get/ScriptArchives
**get/ScriptArchives
Gets a list of scripts from the archive.
**get/Refresh
**get/Refresh
Combination of the first 2 calls.
**get/Reset
**get/Reset
Breaks all joints.


*Private:
*Private:


**get/Tools.
Removes all tools.
**get/Shutdown (Deprecated)
**get/Shutdown (Deprecated)
Removes the server.
**get/NoSecurity
**get/NoSecurity
Removes the security.
**get/Security
**get/Security
Creates the security.


=Directories=
=Directories=
Line 68: Line 91:
Before setup:
Before setup:


*SYSALT
*SYSALT (Model)
**ScriptBuilder
**ScriptBuilder (Script)
**Packages(Model)
**Packages(Model)
***Setup2
***Setup2 (Script)
***PlayerArchiver
***PlayerArchiver (Script)
***Security
***Security (Script)
**Settings(Model)
**Settings(Model)
***BasePlateName
***BasePlateName (StringValue)
***BackupDir
***BackupDir (StringValue)
***SettingsDir
***SettingsDir (StringValue)
***BasePlateColor
***BasePlateColor (BrickColorValue)


==Players==
==Players==


*Player
*Player (Player)
**Scripts(Model)
**Scripts (Model)
**Done
**Done (BoolValue)
**TimeZoned(Model)
**TimeZoned(Model)
***Time
***Time (StringValue)
***Disabled(Value)
***Disabled (BoolValue)


=Last=
=Last=


This is incomplete and subject to change.
This is incomplete and subject to change.

Revision as of 12:08, 2 January 2009

Version X

About

Completely re-written and designed to be all around better than this. All around better code base and customization.

Commands

Mostly the same.

  • These require a script name after them:
    • create/ --Creates a script.
    • edit/ --Brings the script into edit mode.
    • remove/ --Removes a script.
    • removeb/ --Removes multiple scripts.
    • stop/ --Stops a script.
    • clone/ --Copies a script.
    • force/ --Moves script into the workspace.
    • vanish/ --Moves script into lighting.
    • backup/ --Saves a disabled copy of that script to backup dirrectory (mentioned later)
    • rand/ --Runs a script at a random time.
    • tip/ --Edits a script backwards (code inserted from the top).
  • These do not require input:
    • stop/all
    • remove/all
    • run/all
    • clone/all
    • force/all
    • vanish/all
    • rand/all
    • exit/

Notes

  • Creating a script is different. This SB allows for each player to have a set of scripts, allowing duplicates for each person.

Editing error codes

Ordered by number:

  • 0 - You're in edit mode.
  • 1 - Script is already being edited.
  • 3 - There are more than one script of a specified name.
  • 7 - Script is already being edited, and you've just added "edit/" to the code. Good going.

Globals

  • Remove(Object) --Removes "Object"
  • Clone(Object) --Clone "Object"
  • Asplode(Object) --Destroys "Object"
  • Teleport(x,y,z) --Teleports player.
  • workspace --Represents the "Workspace"

As always, :Remove() and :Clone() will still work.

Calls

  • Public list:
    • get/Clean

Removes all scripts.

    • get/Parts

Removes all parts.

    • get/Archived

Gets a list of players from the archive.

    • get/ScriptArchives

Gets a list of scripts from the archive.

    • get/Refresh

Combination of the first 2 calls.

    • get/Reset

Breaks all joints.

  • Private:
    • get/Tools.

Removes all tools.

    • get/Shutdown (Deprecated)

Removes the server.

    • get/NoSecurity

Removes the security.

    • get/Security

Creates the security.

Directories

Before setup:

  • SYSALT (Model)
    • ScriptBuilder (Script)
    • Packages(Model)
      • Setup2 (Script)
      • PlayerArchiver (Script)
      • Security (Script)
    • Settings(Model)
      • BasePlateName (StringValue)
      • BackupDir (StringValue)
      • SettingsDir (StringValue)
      • BasePlateColor (BrickColorValue)

Players

  • Player (Player)
    • Scripts (Model)
    • Done (BoolValue)
    • TimeZoned(Model)
      • Time (StringValue)
      • Disabled (BoolValue)

Last

This is incomplete and subject to change.