SHARE
TWEET

Untitled

a guest Sep 22nd, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @name textscreen
  2. @inputs Screen:wirelink
  3. @outputs
  4. @persist  L7:string I Line:string Color:vector  Random:vector L1:string L2:string L3:string L4:string L5:string L1Length:number Hue L6:string
  5. @trigger
  6.  
  7. if(first() | changed(Screen) | duped()){
  8.  Screen:egpClear()
  9.  
  10.  Screen:egpRoundedBox(1, vec2(256,256), vec2(300,200))
  11.  Screen:egpColor(1, vec(50,55,50))  
  12.  
  13.  Screen:egpText(2, "---------------------------------", vec2(108, 180))
  14.  Screen:egpFont(2, "Coolvetica", 30)
  15.  I = 0
  16. }
  17.  
  18. runOnChat(1)
  19.  
  20.  
  21.  
  22.  
  23. #Chat Commands#
  24.  
  25.  
  26. A = owner():lastSaid():explode(" ")
  27. if(A[1,string]==".set1" & chatClk(owner())){
  28.     L1 = A[2,string]+ " " +A[3,string]+ " " +A[4,string]+ " " +A[5,string]+ " " +A[6,string]+ " " +A[7,string]+ " " +A[8,string]
  29.  
  30.    
  31. }
  32.  
  33.  
  34.  
  35. A = owner():lastSaid():explode(" ")
  36. if(A[1,string]==".set2" & chatClk(owner())){
  37.     L2 = A[2,string]+ " " +A[3,string]+ " " +A[4,string]+ " " +A[5,string]+ " " +A[6,string]+ " " +A[7,string]+ " " +A[8,string]
  38.  
  39. }
  40.  
  41.  
  42.  
  43.  
  44. A = owner():lastSaid():explode(" ")
  45. if(A[1,string]==".set3" & chatClk(owner())){
  46.     L3 = A[2,string]+ " " +A[3,string]+ " " +A[4,string]+ " " +A[5,string]+ " " +A[6,string]+ " " +A[7,string]+ " " +A[8,string]
  47. }
  48.  
  49.  
  50.  
  51. A = owner():lastSaid():explode(" ")
  52. if(A[1,string]==".set4" & chatClk(owner())){
  53.     L4 = A[2,string]+ " " +A[3,string]+ " " +A[4,string]+ " " +A[5,string]+ " " +A[6,string]+ " " +A[7,string]+ " " +A[8,string]
  54. }
  55.  
  56.  
  57.  
  58. A = owner():lastSaid():explode(" ")
  59. if(A[1,string]==".set5" & chatClk(owner())){
  60.     L5 = A[2,string]+ " " +A[3,string]+ " " +A[4,string]+ " " +A[5,string]+ " " +A[6,string]+ " " +A[7,string]+ " " +A[8,string]
  61. }
  62.  
  63.  
  64.  
  65.  
  66.  
  67. A = owner():lastSaid():explode(" ")
  68. if(A[1,string]==".set6" & chatClk(owner())){
  69.     L6 = A[2,string]+ " " +A[3,string]+ " " +A[4,string]+ " " +A[5,string]+ " " +A[6,string]+ " " +A[7,string]+ " " +A[8,string]
  70. }
  71.  
  72. A = owner():lastSaid():explode(" ")
  73. if(A[1,string]==".set7" & chatClk(owner())){
  74.     L7 = A[2,string]+ " " +A[3,string]+ " " +A[4,string]+ " " +A[5,string]+ " " +A[6,string]+ " " +A[7,string]+ " " +A[8,string]
  75. }
  76.  
  77.  
  78. ##Colour Commands##
  79. A = owner():lastSaid():explode(" ")
  80. if(A[1,string]==".setc" & chatClk(owner())){
  81.    
  82.     I = 0
  83.  
  84.     Line = A[2,string]
  85.    
  86.     ColorR = A[3,string]
  87.     ColorG = A[4,string]
  88.     ColorB = A[5,string]
  89.  
  90.     Color = vec(ColorR:toNumber(),ColorG:toNumber(),ColorB:toNumber())
  91.    
  92.    
  93.     if(Line == "1"){
  94.         Screen:egpColor(3, Color)
  95.     }
  96.     if(Line == "2"){
  97.         Screen:egpColor(2, Color)  
  98.     }
  99.     if(Line == "3"){
  100.         Screen:egpColor(5, Color)  
  101.     }
  102.     if(Line == "4"){
  103.         Screen:egpColor(6, Color)  
  104.     }
  105.     if(Line == "5"){
  106.         Screen:egpColor(7, Color)  
  107.     }
  108.     if(Line == "6"){
  109.         Screen:egpColor(8, Color)  
  110.     }
  111.     if(Line == "7"){
  112.         Screen:egpColor(9, Color)  
  113.     }
  114.     if(Line == "8"){
  115.         Screen:egpColor(10, Color)  
  116.     }
  117.  
  118.    
  119.    
  120. }
  121.  
  122. A = owner():lastSaid():explode(" ")
  123. if(A[1,string]==".togglerent" & chatClk(owner())){
  124.    
  125.     if(A[2,string] =="on"){
  126.         Screen:egpAlpha(4, 255)
  127.     }
  128.     if(A[2,string] =="off"){
  129.         Screen:egpAlpha(4, 0)  
  130.     }
  131.    
  132. }
  133.  
  134.  
  135.  
  136. #End of Chat Commands#
  137.  
  138.  
  139.  
  140.  
  141. #EGP Stuff#
  142. Screen:egpText(3, L1, vec2(120,165))
  143. Screen:egpFont(3, "Coolvetica", 30)
  144.  
  145. Screen:egpText(4, "*To live here it will cost 1,000,000* (With me)", vec2(120,340))
  146. Screen:egpFont(4, "Arial", 15)
  147.  
  148. Screen:egpText(5, L2, vec2(120,200))
  149. Screen:egpFont(5, "Coolvetica", 25)
  150.  
  151. Screen:egpText(6, L3, vec2(120,220))
  152. Screen:egpFont(6, "Coolvetica", 25)
  153.  
  154. Screen:egpText(7, L4, vec2(120,240))
  155. Screen:egpFont(7, "Coolvetica", 25)
  156.  
  157. Screen:egpText(8, L5, vec2(120,260))
  158. Screen:egpFont(8, "Coolvetica", 25)
  159.  
  160. Screen:egpText(9, L6, vec2(120,280))
  161. Screen:egpFont(9, "Coolvetica", 25)
  162.  
  163. Screen:egpText(10, L7, vec2(120,300))
  164. runOnTick(1)
  165. Hue++
  166. Color=hsv2rgb(vec(Hue,1,1))
  167.  
  168. if(Hue == 360){
  169.     Hue = 0
  170. }
  171.  
  172.  
  173. Screen:egpColor(3, Color)
  174. Screen:egpColor(2, Color)
  175. Random = vec(random(255),random(255),random(255))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top