Guest User

Command Modules Docs & ExtraCommands Docs [v1.5]

a guest
Jun 20th, 2014
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.26 KB | None | 0 0
  1. List instructions:
  2.  
  3. me - the speaker.
  4. others - everyone who is not the speaker.
  5. all - everyone.
  6. admins - everyone listed as an admin.
  7. nonadmins - everyone not listed as an admin.
  8. ops - everyone listed as an Operator.
  9. nonops - everyone not listed as an Operator.
  10. team - everyone on your team. If you are neutral, nobody will be selected.
  11. otherteams - everyone on a team which is not yours.
  12. random - select someone random
  13. random # - select # amount of random people
  14.  
  15. And any other player will work. Also caps do not matter.
  16.  
  17. i.e. me,admins,ops will work
  18. me, admins, ops will NOT work
  19. me,admins,nonadmins will select everyone.
  20. so will "all"
  21.  
  22. to create several lists, seperate the lists with a ":"
  23. to create list items, connect the list items with a comma (",")
  24. Wildcards are used automatically, so try not to use ambiguous names.
  25. i.e. if you use kill:pla while Player1 and pLAYERofChips are in the game, it will kill those players.
  26.  
  27. kill:me:me:me <-- will kill you three times
  28.  
  29. kill:me,me,me <-- will kill you once because you are killed immediately three times
  30. ff:me,me,me <-- will give you three force fields, and make you lag.
  31. unff:me <-- removes all force fields.
  32.  
  33. Commands:
  34.  
  35. 1) kill:{Lists}
  36. kills everyone in the lists.
  37. create several lists to loopkill.
  38.  
  39. 2) heal:{Lists}
  40. heals everyone in the lists.
  41.  
  42. 3) teleport:{List}:{Player} OR tp:{List}:{Player}
  43. teleports everyone in the list to the player.
  44.  
  45. 4) ff:{Lists}
  46. forcefields everyone in the lists.
  47.  
  48. 5) unff:{Lists}
  49. removes all forcefields from everyone in the lists.
  50.  
  51. 6) vanish:{Lists}
  52. makes everyone in the lists completely invisible.
  53.  
  54. 7) ghost:{Lists}
  55. makes everyone in the lists partially invisible.
  56.  
  57. 8) unvanish:{Lists} OR unghost:{Lists} OR reveal:{Lists}
  58. reveals everyone in the lists.
  59.  
  60. 9) clearinventory:{Lists} OR clear:{Lists}
  61. clears everyone in the lists' tools.
  62.  
  63. 10) clearcinventory:{Lists}
  64. clears everyone in the lists' tools that were given by this command script.
  65.  
  66. 11) construction:{Lists}
  67. gives everyone in the lists the main building tools provided by roblox.
  68.  
  69. 12) tool:{Lists}: {Arguments}
  70. gives everyone in the lists the arguments provided. You can rather specify the
  71. tools' names or use "all" as the argument.
  72. "tool:{Lists}: tools" gives only wieldable tools.
  73. "tool:{Lists}: bins" gives only scripted HopperBins.
  74. "tool:{Lists}: remotescripts" gives remote scripts.
  75.  
  76. 13) m: {Arguments}
  77. Displays a message to everyone.
  78.  
  79. 14) h: {Arguments}
  80. Displays a hint to everyone.
  81.  
  82. 15) fog
  83. creates 5 blank messages in workspace emulating fog.
  84.  
  85. 16) unfog
  86. removes all fog.
  87.  
  88. 17) superhardcore:{Lists}
  89. Makes it so if anyone in the lists die they get kicked from the game automatically.
  90.  
  91. 18) jail:{Lists}
  92. Jails everyone in the lists.
  93.  
  94. 19) unjail:{Lists}
  95. Removes all jails from everyone in the lists.
  96.  
  97. 20) headlight:{Lists} OR torch:{Lists}
  98. Gives everyone in the lists a yellow light (Like a torch) for dark areas.
  99.  
  100. 21) unheadlight:{Lists} OR untorch:{Lists}
  101. Undoes the headlight:{Lists} command.
  102.  
  103. 22) walkspeed:{Lists}: {Argument}
  104. Gives everyone in the lists a predetermined amount of walkspeed given by the
  105. argument (default 16).
  106.  
  107. 23) normalwalkspeed:{Lists}
  108. Returns everyone in the lists' walkspeeds to the default (16).
  109.  
  110. 24) creative:{Lists}
  111. Gives the player the ability to fly by double tapping space and gives the player
  112. the ability to run by double tapping W.
  113.  
  114. 25) nocreative:{Lists}
  115. Removes all abilities gained from the creative:{Lists} command.
  116.  
  117. 26) ccolor:{Lists}: {Color ColorHead}[, {Color ColorTorso}[, {Color LeftArm}[, {Color RightArm}[, {Color LeftLeg}[, {Color RightLeg}] ] ] ] ]
  118. Set the character color, with 5 additional optional arguments for each body part.
  119. See the ColorTranslateAPI function for a list of colors.
  120.  
  121. 27) swapheads:{Player}:{Player}
  122. Switches the two players' heads between each other (Including hats worn)
  123.  
  124. 28) blockhead:{Lists}
  125. Turns everyone in the lists' heads into blocks.
  126.  
  127. 29) stat:{Lists}: {Statname}: {Value}
  128. Changes everyone in the lists' stat {Statname}'s value to {Value}
  129. i.e. stat:SpeedySeat: Money: 1 will change speedyseat's money to 1.
  130.  
  131. 30) relativestat:{Lists}: {Statname}: {Value}
  132. Changes everyone in the lists' stat {Statname}'s value to itself added onto {Value}
  133. i.e. stat:SpeedySeat: Money: 1 will give speedyseat 1 money.
  134. note - useful in modulogic API
  135.  
  136. 31) chair:{Lists}
  137. Gives a chair to everyone in the lists.
  138.  
  139. 32) guibuild:{Lists}
  140. Basically an alternative to the construction command.
  141. Gives a tool which gives far more flexibility when building.
  142.  
  143. 33) modulogic:{Logic} OR ml:{Logic} OR logic:{Logic}
  144. This command executes separate commands based on structured coding here.
  145. This is an advanced command, and beginners are not recommended to use it.
  146.  
  147. 34) mltoggle: {Argument}
  148. This command toggles a setting in the modulogic internal configuration.
  149. You don't need to mess with this unless you're very well educated and need it.
  150. **MISSING DOCUMENTATION**
  151.  
  152. -- MODULE LOGIC API --
  153.  
  154. |define - creates a variable
  155. |
  156. | VariableName
  157. |
  158. | Variable content (can be number, string or bool)
  159. |-=-
  160. |case - checks a variable
  161. |
  162. | VariableName/Variable subgroup (Optional)
  163. |
  164. | Case~(type of comparison)Number,String compared{Code executed when true}>{Otherwise case (Optional)}
  165. |-=-
  166. |function - Creates a callable function
  167. |
  168. | FunctionName/Arg1,Arg2,... - Arranges the necessary arguments and name
  169. |
  170. | {When called code} - Creates a new definition with this code
  171. |-=-
  172. |call - Looks through definitions of code/arguments
  173. |
  174. | FunctionName - Looks for this name
  175. |
  176. | Arg1,Arg2,... -- Gives these arguments
  177. |-=-
  178. |loop - Repeats a line of code
  179. |
  180. | Count - Tells how many times to repeat (for player function use %players%)
  181. |
  182. | {When called code} - Loops this code count many times giving %index% as a variable name. Use %player index% for player getting.
  183. |-=-
  184. |All default variables (to access surround name in percent signs):
  185. |pln - speaker's name
  186. |mlv - version of modules being used
  187. |elvl - same as below, only shortenned
  188. |executionLevel - useful for preventing stack overflows, tells which sub-function you are in.
  189. |index - only useful in loops. The number of times this code block has been executed thus far
  190. |Playername/stat/statname - Gives the player stat's value
  191. |Playername/playervar/Variable in player - Gives the playervar's value
  192. |Playername/teamname - Gives the name of the player's team
  193. |Playername/name - this is used for getting which player Playername has chosen
  194. |players - number of players in the list
  195. |player # - Player from the player list with the number #
  196. |? new variables can be created with the define function
  197. |
  198. |module code can be executed from anywhere
  199.  
  200. -- EXAMPLES BELOW (PASTE FULL TEXT IN ONLINE CHAT TO TEST) --
  201.  
  202. How to check your modulogic version (This snippet will be updated with new versions):
  203. ml:case>mlv>given~(<)1.5{m: You are running a past version of ModuLogic.}>{m: You are up to date!}
  204. How to check your "Money" stat (Tells you if you have lots!):
  205. ml:case>me/stat/Money>given~(>)9000{m: %me/name% has over 9000 Money!!!!1}
  206. How to test how far you are from a workspace instance (This case is "Pending"):
  207. ml:m:%me/name%: You are %me/distancefrom/Pending% studs away from the brick.
  208. Case checking to see if you are close to the spawn (Creates "alt" as a variable then checks it):
  209. ml:define>alt>%me/distancefrom/Pending%;case>alt>given~(<)25{m:%me/name%: You are close enough to the spawn}>{m:%me/name%: You are %SpeedySeat/distancefrom/Pending% studs away from spawn.}
  210. Loop through each player and tell them the script ate them:
  211. ml:loop>%players%>{m: I ate %player index% for breakfast!;kill:%player index%;wait}
  212.  
  213. 35) wait: {Time}
  214. This command is useless outside of the Modulogic API. This command basically
  215. waits until the Time argument above is reached, then executes the next command.
  216. You do not need to provide an argument if you are executing this after the m command,
  217. as the wait command will automatically wait 5 seconds if not given an argument.
  218.  
  219. 36) respawn:{Lists}
  220. respawns everyone in the lists.
  221. this is an instant respawn, and also activates respawn events.
  222.  
  223. -- ADMIN ONLY COMMANDS: --
  224.  
  225. 1) promote:{Lists}
  226. Makes everyone in the lists an Operator.
  227.  
  228. 2) demote:{Lists}
  229. Removes everyone in the lists from the Operator list.
  230.  
  231. 3) admin:{Lists}
  232. **WARNING: DO NOT USE THIS COMMAND FOR PEOPLE YOU DO NOT TRUST COMPLETELY.
  233. YOU DO NOT NEED ADMIN TO USE COMMANDS; OPERATOR ALLOWS ALL NON-RANK COMMANDS.
  234. Makes everyone in the lists an admin.
  235. This is only temporary and does not make the user a permanent admin.
  236. To make a user a permanent admin, add their name to the list of admins.
  237.  
  238. 4) unadmin:{Lists}
  239. Removes everyone in the lists from the admin list.
  240. Permanent admins will keep their admin status outside of the server.
  241.  
  242. 5) kick:{Lists}
  243. Kicks everyone from the lists out of the game. This command is not
  244. permanent and the users can rejoin the server.
  245.  
  246. 6) ban:{Lists}
  247. Bans everyone from the lists from the server. This command IS
  248. permanent and can only be undone using the unban: {Arguments} command.
  249.  
  250. 7) unban: {Arguments}
  251. Checks the ban list for anyone who is an argument in this command and removes them.
  252. A message will appear confirming the removal of a banned list item.
  253.  
  254. How to utilize flags:
  255.  
  256. There are three types of flags.
  257. One flag type is with settings:
  258. -<settingsflag> <settings>
  259. One flag type is without settings:
  260. -<singleflag>
  261. One flag type is with settings but can
  262. support spaces and dashes within them:
  263. -<settingsflag> *<longersettings>*
  264. And finally, flags can be trailed behind
  265. one another to set several settings:
  266. -<settingsflag> <settings> -<settingsflag> <settings>
  267.  
  268. Examples using commands in ExtraCommands:
  269.  
  270. hop:-macro *p: 2 2 2 -c Bright blue -ry 45*
  271. hop:-name RightClickFrenzy -rmacro *p: 2 2 2 -c Bright red* -macro *p: 2 2 2 -c Bright blue -ry 45*
  272.  
  273. The ExtraCommands Commands:
  274.  
  275. 1) hop:{Flags}
  276. This command creates a HopperBin given the parameters.
  277. Any flag that has (Off by default) next to it means that the flag's properties won't
  278. be considered unless it is included during creation.
  279. Any flag that has a default marked next to it means that you can call the flag as a -singleflag and it uses
  280. the default value when parsing.
  281. Flags:
  282. -regen <HP>: The amount of HP to regen per tick() [Default: 4] (Off by default)
  283. -name <name>: The display name of the HopperBin [Default: CommandBin]
  284. -deadly: The HopperBin will kill the user of it like a reset tool. (Off by default)
  285. -hpset <HP>: What to set the user's HP to when clicked and selected. [Default: 0] (Off by default)
  286. -macro <MACRO>: Macro flag. This flag sets what commands get executed when this HopperBin is clicked. (Off by default)
  287. -rmacro <MACRO>: Macro flag. This flag sets what commands get executed when this HopperBin is right clicked. (Off by default)
  288. -expire <time>: The amount of time this HopperBin is allowed to exist in your world (Useful for minigames utilizing
  289. commands) (Off by default)
  290.  
  291. 2) p:[[x] [y] [z] ]{Flags}
  292. This command creates a Part given the parameters.
  293. Note: You don't need to include any flags if you want to keep their default (i.e. p: 4 1 4 or p: -c Bright blue)
  294. Flags:
  295. -x <x>: The x position (Off by default)
  296. -y <y>: The y position (Off by default)
  297. -z <z>: The z position (Off by default)
  298. -xr <xr>: The x relative position [Default: 0 studs]
  299. -yr <yr>: The y relative position [Default: 5+(y size/2) studs]
  300. -zr <zr>: The z relative position [Default: 0 studs]
  301. -rx <rx>: The x rotation (In Degreesº) [Default: 0º]
  302. -ry <ry>: The y rotation (In Degreesº) [Default: 0º]
  303. -rz <rz>: The z rotation (In Degreesº) [Default: 0º]
  304. -us <SurfaceType>: The string surface name to set as the top [Default: Smooth]
  305. -ds <SurfaceType>: The string surface name to set as the bottom [Default: Smooth]
  306. -fs <SurfaceType>: The string surface name to set as the front [Default: Smooth]
  307. -bs <SurfaceType>: The string surface name to set as the back [Default: Smooth]
  308. -ls <SurfaceType>: The string surface name to set as the left [Default: Smooth]
  309. -rs <SurfaceType>: The string surface name to set as the right [Default: Smooth]
  310. -expire <time>: The amount of time this brick is allowed to exist in your world (Off by default)
  311. -a <true/false>: The anchored property [Default: true]
  312. -cc <true/false>: The CanCollide property [Default: true]
  313. -cj: Connects the joints of this block when created.
  314. -deadly <kill/explode>: Create a temporary kill brick (Off by default)
  315. -tpad <link>: Create a permanent teleport pad given the link string (Off by default)
  316. -tpadtemp <link>: Create a temporary server-only teleport pad given the link string (Off by default)
  317. -deb <time>: The time in seconds that the ontouch macro has before it can be used again. [Default: 1 second]
  318. -ontouch <MACRO>: Executes commands on behalf of the player when they touch this part.
Advertisement
Add Comment
Please, Sign In to add comment