Advertisement
agentsix1

Bind Manger API Tutorial v0.03 DEV - Post

Apr 22nd, 2015
32,816
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.28 KB | None | 0 0
  1. [b][color=red]AS OF THE CURRENT STANDING OF THIS PROGRAM. IT IS NOT READY FOR PUBLIC USE OR ANY WHERE NEAR IT. THIS IS JUST FOR PERSONAL REFERENCE AND FUTURE REFERENCE FOR BETA/ALPHA TESTERS AS WELL AS ANY OTHER USERS THAT USE THIS PROGRAM[/color][/b]
  2. This will be continuously modified to any changes I make with in the program and api them self.
  3.  
  4. [b]Last Update:[/b] [i]4-22-2015 12:29PM[/i]
  5.  
  6. [b][u]API Functions (I think that is a good name for this section?)[/u][/b]
  7. Video Explanation: [Link]
  8.  
  9. Introduction [color=red]- Updated (I overhauled the layout of this to fit the new coding system.)[/color]
  10. [hr]
  11. [spoiler=use]
  12. [u]Description[/u]
  13. [i]This declares what type of plugin this will be and what it will be used for.[/i]
  14.  
  15. [u]Uses[/u]
  16. [b]use("[/b]scriptwizard[b]")[/b] [i]- This will tell the plugin that this is a Script Wizard[/i]
  17. [b]use("[/b]key[b]")[/b] [i]- This will tell the plugin that this is a Modification/Addition/Removal to Keys[/i]
  18. [b]use("[/b]cmd[b]")[/b] [i]- This will tell the plugin that this is a Modification/Addition/Removal to Commands[/i]
  19. [b]use("[/b]automessageexec[b]")[/b] [i]- This will be used to tell the plugin you are calling actions for the Auto Exec Message Editor[/i]
  20. [/spoiler]
  21.  
  22. [spoiler=type]
  23. [u]Description[/u]
  24. [i]This declares what type of Script Wizard you are creating.[/i]
  25.  
  26. [u]Uses[/u] [color=red]- Updated[/color] (Type took a major overhaul coding wise)
  27. [b]type("[/b]list[b]")[/b] [i]- This tells the plugin you are creating a list and not just a toggle script.[/i]
  28. [b]type("[/b]press[b]")[/b] [i]- This tells the plugin you are creating a script that detects button press on button press and release.[/i]
  29. [b]type("[/b]reg[b]")[/b] [i]- This is just a plugin which is used to generate a basic bind such as bind {key} action.[/i]
  30. [b]type("[/b]toggle[b]")[/b] [i]- This is just a plugin which is used to generate a toggle script.[/i]
  31. [/spoiler]
  32.  
  33. [spoiler=name]
  34. [u]Description[/u]
  35. [i]This is used to set the name of your script.[/i]
  36.  
  37. [u]Uses[/u]
  38. [b]name("[/b]Name of the plugin[b]")[/b] [i]- This is as simple as it appears. You are just naming the plugin you are creating[/i]
  39. [/spoiler]
  40.  
  41. [spoiler=description]
  42. [u]Description[/u]
  43. [i]This is a basic description of what your plugin does.[/i]
  44.  
  45. [u]Uses[/u]
  46. [b]description("[/b]the description of my plugin![b]")[/b] [i]- Just a way to describe your plugin.[/i]
  47. [/spoiler]
  48.  
  49. [spoiler=furtherInfo]
  50. [u]Description[/u]
  51. [i]This will be used to tell the user any further information they may need to know about this script.[/i]
  52.  
  53. [u]Uses[/u]
  54. [b]futrtherInfo("[/b]A general idea of why my plugin is about. What it does. How it works.[b]")[/b] [i]- Further description about the plugin.[/i]
  55. [/spoiler]
  56.  
  57. [spoiler=listLength]
  58. [u]Description[/u]
  59. [i]If you are using a list as a script type this will determine how long the list is. 0 is unlimited and thing above 0 defines how long the list will be.[/i]
  60.  
  61. [u]Uses[/u]
  62. [b]listLength([/b]#[b])[/b] [i]- Defines how long a list will be.[/i]
  63. [/spoiler]
  64.  
  65. Keys [color=red]- NEW (I decided now would be a good time to start adding the code that will trigger actual physical actions.)[/color]
  66. [hr]
  67. [spoiler=getKey]
  68. [u]Description[/u]
  69. [i]This is used to call a action from the user to get the key they would like to use for the bind they are creating.[/i]
  70.  
  71. [u]Uses[/u]
  72. [b]getKey()[/b] [i]- Requests a key from the user.[/i]
  73. [/spoiler]
  74.  
  75. [spoiler=getName]
  76. [u]Description[/u]
  77. [i]This is used to get a name with no spaces from the user for the script creation for this plugin. This is not always necessary for all plugins.[/i]
  78.  
  79. [u]Uses[/u]
  80. [b]getName()[/b] [i]- Requests a script name from the user.[/i]
  81. [/spoiler]
  82.  
  83. [spoiler=setKey]
  84. [u]Description[/u]
  85. [i]Instead of asking the user to provide a key for the script. You will force the key and the users will have no choice but to use it.[/i]
  86.  
  87. [u]Uses[/u]
  88. [b]setKey()[/b] [i]- Forces a key for the script.[/i]
  89. [/spoiler]
  90.  
  91. [spoiler=setName]
  92. [u]Description[/u]
  93. [i]Instead of asking the user to provide a name for the script. You will for the name and the user will have no choice but to use it.[/i]
  94.  
  95. [u]Uses[/u]
  96. [b]setName()[/b] [i]- Forces a name for the script.[/i]
  97. [/spoiler]
  98.  
  99. Input [color=red]- NEW (I decided now would be a good time to start adding the code that will trigger actual physical actions.)[/color]
  100. [hr]
  101. [spoiler=startRepeat]
  102. [u]Description[/u]
  103. [i]This allows you to easily repeat code using startRepeat and endRepeat.[/i]
  104.  
  105. [u]Uses[/u]
  106. [b]startRepeat(#)[/b] [i]- Determine when to start the repeat cycle. As well as the amount of times to repeat[/i]
  107. [/spoiler]
  108.  
  109. [spoiler=endRepeat]
  110. [u]Description[/u]
  111. [i]This allows you to easily repeat code using startRepeat and endRepeat.[/i]
  112.  
  113. [u]Uses[/u]
  114. [b]endRepeat()[/b] [i]- Determine the code which is repeated.[/i]
  115. [/spoiler]
  116.  
  117. [spoiler=getInput]
  118. [u]Description[/u]
  119. [i]Allows users to choose what they want to add into their script you are creting.[/i]
  120.  
  121. [u]Uses[/u]
  122. [b]getInput(#, "Text Here")[/b] [i]- Gets simple text from users for said script.[/i]
  123. [/spoiler]
  124.  
  125. [spoiler=setInput]
  126. [u]Description[/u]
  127. [i]Instead of asking the user to provide a name for the script. You will for the name and the user will have no choice but to use it.[/i]
  128.  
  129. [u]Uses[/u]
  130. [b]setInput(#, "You input")[/b] [i]- Forces a name for the script.[/i]
  131. [/spoiler]
  132.  
  133. Finish [color=red]- NEW (I decided now would be a good time to start adding the code that will trigger actual physical actions.)[/color]
  134. [hr]
  135. [spoiler=setOutput]
  136. [u]Description[/u]
  137. [i]This is used to take all information that was gathered and set as a output. This will then turn into a script.[/i]
  138.  
  139. [u]Uses[/u]
  140. [b]setOutput("Output text")[/b] [i]- Basically determines how each line of the script will look.[/i]
  141. [/spoiler]
  142.  
  143. [hr]
  144.  
  145. [b][u]API Script Wizards[/u][/b]
  146. Video Explanation: [Link]
  147. [b]Functions[/b]
  148. [hr]
  149. [spoiler=Introduction]
  150. Introduction() {
  151.  
  152. }
  153. [/spoiler]
  154.  
  155. [spoiler=Keys]
  156. Keys() {
  157.  
  158. }
  159. [/spoiler]
  160.  
  161. [spoiler=Input]
  162. Input() {
  163.  
  164. }
  165. [/spoiler]
  166.  
  167. [spoiler=Finish]
  168. Finish() {
  169.  
  170. }
  171. [/spoiler]
  172.  
  173. [spoiler=Example: Introduction]
  174. Introduction() {
  175. use("scriptwizard")
  176. type("list")
  177. listLength("0")
  178. name("Send Chat message and Console Message.")
  179. description("Just another test plugin. You know how it is.")
  180. furtherInfo("nothing much really its just a example plugin. What do you expect from me!")
  181. }
  182. [/spoiler]
  183.  
  184. [spoiler=Example: Keys]
  185. Keys() {
  186. getKey()
  187. getName()
  188. }
  189. [/spoiler]
  190.  
  191. [spoiler=Example: Input]
  192. Input() {
  193. startRepeat(1)
  194. getInput(0, "Set message you want to send in main chat")
  195. getInput(1, "Set message you want to send to console")
  196. endRepeat()
  197. }
  198. [/spoiler]
  199.  
  200. [spoiler=Example: Finish]
  201. Finish() {
  202. setOutput("say %(0); echo %(1)")
  203. }
  204. [/spoiler]
  205.  
  206. [b][u]API Keys[/u][/b]
  207. Video Explanation: [Link]
  208.  
  209. [b][u]API Commands[/u][/b]
  210. Video Explanation: [Link]
  211.  
  212. [hr]
  213.  
  214. [b][u]Script Wizard Plugin Requirements[/u][/b]
  215. Video Explanation: [Link]
  216.  
  217. [b][u]Key Plugin Requirements[/u][/b]
  218. Video Explanation: [Link]
  219.  
  220. [b][u]Command Plugin Requirements[/u][/b]
  221. Video Explanation: [Link]
  222.  
  223. [hr]
  224.  
  225. [b][u]Script Wizard Basic Example[/u][/b] [color=red]- Updated[/color] (list unlimited example)
  226. Video Explanation: [Link]
  227. [spoiler=list]
  228. [spoiler=Unlimited]
  229. [code]
  230. use("scriptwizard")
  231. type("list")
  232. listLength(0)
  233. name("Send Chat message and Console Message.")
  234. description(Just another test plugin. You know how it is.")
  235. furtherInfo("nothing much really its just a example plugin. What do you expect from me!")
  236. getKey()
  237. getName()
  238. totalLines(0)
  239. getInput(0, "Set message you want to send in main chat")
  240. getInput(1, "Set message you want to send to console")
  241. setOutput("say %(0); echo %(1)")
  242. [/code]
  243. [/spoiler]
  244. [spoiler=Limited]
  245. [/spoiler]
  246. [/spoiler]
  247. [spoiler=press]
  248. [/spoiler]
  249. [spoiler=reg]
  250. [/spoiler]
  251. [spoiler=toggle]
  252. [/spoiler]
  253.  
  254. [b][u]Keys Basic Example[/u][/b]
  255. Video Explanation: [Link]
  256. [spoiler=Example]
  257. [/spoiler]
  258.  
  259. [b][u]Commands Basic Example[/u][/b]
  260. Video Explanation: [Link]
  261. [spoiler=Example]
  262. [/spoiler]
  263.  
  264. [hr]
  265. [spoiler=Previous Versions of this thread]
  266. v0.01 DEV - http://pastebin.com/r6ivKdwi
  267. [/spoiler]
  268.  
  269.  
  270.  
  271.  
  272.  
  273. triggerIntroduction()
  274. triggerInput()
  275. triggerFinish()
  276. repeat(getInput("This is where you input stuff!"), 0)
  277. console("A message for console", "Red/White/Orange/Green")
  278. msgbox("Message", "Title", "Alert/Infomative/Default/Critical")
  279. triggerKeysPage()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement