Guest User

hss

a guest
Jul 10th, 2012
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.44 KB | None | 0 0
  1. #__________ ___ __________ __ ____
  2. #`MMMMMMMMM `MMb dMM'`MM'`MM d' @`MM'
  3. # MM \ MMM. ,PMM MM MM d' MM
  4. # MM M`Mb d'MM MM MM d' MM
  5. # MM , M YM. ,P MM MM MM d' MM
  6. # MMMMMMM M `Mb d' MM MM MMd' MM
  7. # MM ` M YM.P MM MM MMYM. MM
  8. # MM M `Mb' MM MM MM YM. MM
  9. # MM M YP MM MM MM YM. MM
  10. # MM / M `' MM MM MM YM. MM
  11. #_MMMMMMMMM _M_ _MM__MM__MM_ YM.__MM_
  12. #
  13. # T H E W A N D E R E R
  14. #
  15. #-------------------------------------------
  16. #
  17. # ichiro 2012. alectormancy
  18. #
  19. # MUSIC CREDITS
  20. #"Misunderstood Keys", "Raising Dust", "Rigor Mortis" by Ibon Moraza Garcia - NEtbuRNER
  21. #"Lost and Found" by HexaHoney
  22. #"Save Me" by Sage
  23. #"Harmony" by Andreas Viklund
  24. #
  25.  
  26. # DECLARATIONS
  27.  
  28. include, plotscr.hsd
  29. include, project.hsi
  30. include, scancode.hsi
  31.  
  32. global variable(1,quick status)
  33.  
  34. # DEBUG FUNCTIONS
  35.  
  36. script, panic, e = 0, begin
  37. #string 31 is always the panic string
  38. switch(e) do(
  39. case(0) do($31="Unknown error.")
  40. case(1) do($31="Mandatory argument not used in function call.")
  41. )
  42. show string(30)
  43. show text box(3) #"Script error."
  44. wait for text box
  45. end
  46. # MAIN MENU FUNCTIONS
  47.  
  48. #HP/MP bars are 78 px
  49.  
  50. #HEIRARCHY
  51. #"quick status"
  52. # gradient background
  53. # Big box
  54. # Hero info (x3)
  55. # Portrait BG
  56. # Portrait
  57. # Level
  58. # Name
  59. # HP border
  60. # HP label
  61. # HP bar
  62. # MP border
  63. # MP label
  64. # MP bar
  65. # Short Box
  66. # map name
  67.  
  68. script, create quick status, begin
  69. variable(herobox, temp, i, v)
  70. quick status := load slice collection(2)
  71. temp := first child(first child(quick status))
  72. herobox := first child(temp)
  73.  
  74. #set visibility of hero groups
  75. #loop for number of heros
  76. for(i, -1, 2) do, begin
  77. if(hero by slot(i) <> -1) then, begin
  78. set slice visible(herobox)
  79.  
  80. #get information of hero
  81. #change sprite picture
  82.  
  83. temp := first sprite child(herobox)
  84. replace portrait sprite(temp, plut(hero by slot(i)))
  85.  
  86. #change hero lv
  87.  
  88. temp := next sibling(temp)
  89. $1="Lv. "
  90. append number (1, get hero level(i))
  91. set slice text (temp, 1)
  92.  
  93. #change hero name
  94.  
  95. temp := next sibling(temp)
  96. get hero name(1, i)
  97. set slice text (temp, 1)
  98.  
  99. #calculate HP and MP bars
  100. #((78*cur)/ max) = X
  101.  
  102. temp := next sibling(temp)
  103. temp := last child(temp)
  104. v := get hero stat(i,stat:HP,current stat) * 78
  105. v := v / get hero stat(i,stat:HP,maximum stat)
  106. set slice width(temp, v)
  107.  
  108. temp := parent slice(temp)
  109. temp := next sibling(temp)
  110. temp := last child(temp)
  111. v := get hero stat(i,stat:MP,current stat) * 78
  112. v := v / get hero stat(i,stat:MP,maximum stat)
  113. set slice width(temp, v)
  114.  
  115. herobox := next sibling(herobox)
  116. end
  117. else(set slice visible(herobox,off))
  118. end
  119.  
  120. #get map name and change short box
  121.  
  122. #finally set everything to visible
  123.  
  124.  
  125. end
  126.  
  127. script, plut, n = -1, begin
  128. switch(n) do(
  129. case(hero:Emiki) do (return(1))
  130. else(
  131. panic(1)
  132. return(0) #returns the blank
  133. )
  134. )
  135. end
  136.  
  137. plotscript, destroy quick status, begin
  138. free slice (quick status)
  139. end
  140.  
  141. # MAP FUNCTIONS
  142.  
  143. plotscript, Save Anywhere Map OKP, begin
  144.  
  145. end
  146.  
  147. plotscript, Save Points Map OKP, begin
  148. if (key is pressed(key: esc)) then, begin
  149. create quick status
  150. if (check tag(tag:Save Point On)) then, begin
  151. set tag(tag:Save Point On, off)
  152. end
  153. end
  154.  
  155. end
Advertisement
Add Comment
Please, Sign In to add comment