Guest User

*numa's code Update#13

a guest
Dec 8th, 2015
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.75 KB | None | 0 0
  1. Numa/*numa is property of King0fguests(Transformice.com)
  2. tl;dr
  3. + Added some 'things' to help Numa interpret usernames/playernames (-playerName-).
  4. - Removed the third minigame due to errors.
  5. * Some numbers have been replaced with algebraic x's. This means it doesn't have to be specific, or can be changed depending on the circumstance.
  6. * Some messages have algebraic letters in them (apart from 'x'). This means that the message has a specific value to help Numa interpret it.
  7. * I've put some HTML here and there to help with the debugging or to get a kind of 'structure', but this will most likely change in the future if compatibility isn't too great.
  8. _______________________________________________
  9. UPDATE #13 - 8.12.15
  10. _______________________________________________
  11. onload: function Awake
  12. spawn MapTribe
  13. {
  14. use strict
  15. var x = 15 * x; // Assign 15 to ..
  16. debugger;
  17. document.getElementbyId("Numa").innerHTML = x;
  18. myTransform = transform; //cache transform data for easy access/preformance
  19. }
  20. if playerName.exec.chatMessage("What is the time?","What time is it?";b
  21. ="document.getElementById('data').innerHTML = Date()">
  22.  
  23. var x = 5; // I will be executed
  24.  
  25. // var x = 6; I will NOT be executed
  26.  
  27. { (form.id.value=="Numa")
  28. <form id="form0" action="Idle">
  29. <form id="form1" action="Dance">
  30. <form id="form2" action="Laugh">
  31. <form id="form3" action="Cry">
  32. <form id="form4" action="Kiss">
  33. <form id="form5" action="Angry">
  34. <form id="form6" action="Clap">
  35. <form id="form7" action="Sleep">
  36. <form id="form8" action="Facepaw">
  37. <form id="form9" action="Sit">
  38. <form id="form10"action="Confetti">
  39. <form id="form11"action="Duck">
  40. if(GameObject."King0fguests" <input type='action' name='dance' /> > "Dance"){function submitform
  41. }
  42. if(GameObject."King0fguests" <input type='action' name='laugh' /> > "Laugh"){function submitform
  43. }
  44. if(GameObject."King0fguests" <input type='action' name='cry' /> > "Cry"){function submitform
  45. }
  46. if(GameObject."King0fguests" <input type='action' name='kiss' /> > "Kiss"){function submitform
  47. }
  48. if(GameObject."King0fguests" <input type='action' name='angry' /> > "Angry"){function submitform
  49. }
  50. if(GameObject."King0fguests" <input type='action' name='clap' /> > "Clap"){function submitform
  51. }
  52. if(GameObject."King0fguests" <input type='action' name='sleep' /> > "Sleep"){function submitform
  53. }
  54. if(GameObject."King0fguests" <input type='action' name='facepaw' /> > "Facepaw"){function submitform
  55. }
  56. if(GameObject."King0fguests" <input type='action' name='sit' /> > "Sit")function submitform
  57. }
  58. if(GameObject."King0fguests" <input type='action' name='confetti' /> > "Confetti"){function submitform
  59. }
  60. if(GameObject."King0fguests" <input type='action' name='duck' /> > "Duck"){function submitform
  61. }
  62. else if(>Idle){
  63. function Start()
  64. {
  65. target = GameObject.FindWithTag("..playerName..").transform; //target the player
  66.  
  67. }
  68.  
  69. function Update () {
  70. //rotate to look at the player
  71. var distance = Vector3.Distance(myTransform.position, target.position
  72. function Update () {
  73. //move towards the player* moveSpeed * sp3.deltaTime;
  74. if (distance<0=stop) {
  75. <form name="walljump">
  76. var distance = Vector3.Distance(myTransform.position, wall.position);
  77. if (distance<=range2 && distance>=range){
  78. function {
  79. howMany(jump) {
  80. var numberSelected = 6;
  81. for (var i = 0; i < wall.options.length; 0.5) {
  82. if (jump.options[i].selected) {
  83. 6 "jump" per 0.5;
  84. return 1;
  85. then "Idle".
  86. }
  87. {
  88. -- test zone
  89. tfm.exec.newGame("xxx") - depends on Llam Squad tribe house
  90. -- test zone
  91.  
  92. coordX = 25
  93. id = 6301
  94.  
  95. function tfm.exec.chatMessage(message)
  96. if id == 6301 then
  97. ui.addTextArea(6301, message, nil, 150, 25, 500, 20, 0x1C3C41, 0x1C3C41, 1.2)
  98. id = 6302
  99. elseif id == 6302 then
  100. ui.addTextArea(6302, message, nil, 150, 45, 500, 20, 0x1C3C41, 0x1C3C41, 1.2)
  101. id = 6303
  102. elseif id == 6303 then
  103. ui.addTextArea(6303, message, nil, 150, 65, 500, 20, 0x1C3C41, 0x1C3C41, 1.2)
  104. id = 6304
  105. elseif id == 6304 then
  106. ui.updateTextArea(6301, message, nil)
  107. id = 6305
  108. elseif id == 6305 then
  109. ui.updateTextArea(6302, message, nil)
  110. id = 6306
  111. elseif id == 6306 then
  112. ui.updateTextArea(6303, message, nil)
  113. id = 6304
  114. end
  115. end
  116. !FONTS ARE FREE TO CHANGE. #FF00EA = PINK!
  117. function eventPlayerGetCheese(playerName)
  118. tfm.exec.chatMessage("<font color='#FF00EA'>"..playerName.."</font> got sum cheez xd")
  119. end
  120.  
  121. function eventEmotePlayed(playerName, idEmote)
  122. tfm.exec.chatMessage("<font color='#FF00EA'>"..playerName.."</font> did a thing. (id: "..idEmote..").")
  123. end
  124.  
  125. function eventNewGame()
  126. if id ~= 6301 then
  127. ui.removeTextArea(6301)
  128. ui.removeTextArea(6302)
  129. ui.removeTextArea(6303)
  130. id = 6301
  131. end
  132. tfm.exec.chatMessage("Hello every-mouse.")
  133. end
  134. >>react
  135. //reco.phrase;
  136. player.exec.chatMessage("Hello","Hi","Hola","Hey");b
  137. tfm.exec.chatMessage("Hello ..playerName..")
  138. if playerName = "Brookfantasy","Xxnightpelt"
  139. tfm.exec.chatMessage ~= "nickname" = "..bby.."
  140. else tfm.exec.chatMessage("I love everybody. Except Iscamppl123.")
  141. for (min = x-15; sec = x) tfm.exec.chatMessage("Let's play a game!","Who wants to play a game?"
  142. if player.exec.chatMessage("I would like to play!");b
  143. exec.var"Minigame"
  144.  
  145. if exec.var"Minigame"
  146. tfm.exec.chatMessage("Is everyone ready?")
  147. if player.exec.chatMessage("Yes!");b
  148. tfm.exec.chatMessage var "Minigame"
  149. else wait (min = x) then execute task.
  150. vary.execute = "A","B","C".
  151. A = "Sitting game"
  152. B = "Confetti game"
  153. C = "Tag"
  154.  
  155. if "A" select
  156. tfm.exec.chatMessage("<font color='#FF00EA'>"..playerName.."</font> got +1 point. (id: "emote8").")
  157. count "emote8" each playerName (x-2 min)
  158. end
  159. select Winner = playerName most "+1"
  160. tfm.exec.chatMessage("And the winner is...")
  161. tfm.exec.chatMessage("..playerName...")
  162.  
  163. if "B" select
  164. tfm.exec.chatMessage("<font color='#FF00EA'>"..playerName.."</font> got +1 point. (id: "emote8").")
  165. count "emote8" each playerName (x-2 min)
  166. end
  167. select Winner = playerName most "+1"
  168. tfm.exec.chatMessage("And the winner is...")
  169. tfm.exec.chatMessage("..playerName...")
  170.  
  171.  
  172. //reco.playerName;
  173. how=
  174. If encounter, save
  175. elsetfm.exec.chatMessage("Nice to meet you, playerName.");a
  176. "memorize"/recog
  177. <form method="SCAN > playerName">
  178. <input type='text' placeholder='xx.xxx.xxx.xx' name='Ip'>
  179. </form>
  180. jsQuery(function($){
  181. ("input").mask("9?99.9?99.9?99.9?99", {placeholder:"xxx"});
  182. });
  183.  
  184. ()
  185. <form name="freeroam" action="handle-data">
  186. var step;
  187. for (step = 5-10; step < x; step++) {
  188. // Runs x times, with values of step 5 through 4.
  189. console.log('Walking east one step');
  190. var step;
  191. for (step = 5-10; step < 5; step++) {
  192. // Runs x ti // This will not cause an error.
  193. myFunction();
  194.  
  195. function myFunction() {
  196. "use strict";
  197. }
  198. mes, with values of step 5 through 4.
  199. console.log('Walking west one step');
  200. }
  201. x = 2.10;
  202.  
  203. }
  204.  
  205. if(GameObject."King0fguests" offline
  206. tfm.disconnect
  207.  
  208. end
  209. end
Advertisement
Add Comment
Please, Sign In to add comment