Sjorec

TTYD Bingo v1.3 (and an explanation)

Jul 2nd, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.88 KB | None | 0 0
  1. This is a goal list for TTYD Bingo v1.3.
  2.  
  3. Each goal in the script is placed under a certain bingoList. There are 25 bingoLists numbered from 1 to 25, and they represent the goal's "length." The bingoList number associated with a particular goal should be based upon objective length rather than difficulty, but for the sake of this script, I tried to factor difficulty in a little. A good rule of thumb for me was ranking goals based 90% on length and 10% on difficulty. After each goal is assigned to a bingoList, the script can generate a bingo card. This is a portion of the bingo-v4.js that manages length (it's called difficulty, but it's actually length.)
  4.  
  5. function difficulty(i) {
  6. var x = 0;
  7. var y = 0;
  8. i--; // i = 0 on square 0,0; 24 on square 4,4
  9. x = i%5; // take x position
  10. x = 5+(SEED-x); // randomize it with the seed
  11. y = Math.floor(i/5); // same for y... except:
  12. y = 5+(Math.floor(SEED/10)-y); // randomize it using the tens place
  13.  
  14. //results.append("<br/>index: " + i + " | x: " + x + " | y: " + y);
  15.  
  16. if (SEED > MAX_SEED/2) { // one in two chance of swapping x and y to rotate the board
  17. var temp = x;
  18. x = y;
  19. y = temp;
  20. }
  21.  
  22. x = x%5;
  23. y = y%5;
  24.  
  25. // mirror the board sometimes
  26. if (SEED > MAX_SEED*(3/4)) {
  27. x = mirror(x);
  28. y = mirror(y);
  29. }
  30. else if (SEED > MAX_SEED*(2/4)) {
  31. x = mirror(x);
  32. }
  33. else if (SEED > MAX_SEED*(1/4)) {
  34. y = mirror(y);
  35. }
  36.  
  37. var value = (5*((x+2*y)%5)) + ((x+3*y)%5); // magic square generator
  38. if (MODE == "short") { value = Math.floor(value/2); } // if short mode, limit difficulty
  39. else if (MODE == "long") { value = Math.floor((value + 25) / 2); }
  40. value++;
  41. //results.append("<br/>VALUE: " + value);
  42. return value;
  43. }
  44.  
  45. The script attempts to add up each row/column/diagonal to a certain number (determined by the seed and selected card length.) This is to ensure proper balance among all 12 options for normal bingo games. Because of this, relegating certain goals to a specific card length selection is not an option. All we can do is assign them to a bingoList in attempt to balance out the card.
  46.  
  47. Another thing taken into account is the goal "type." Each bingo goal is assigned one or more of these types to discourage too much synergy (too many tasks occurring in the same area, with the same equipment, etc.) Take this goal for example:
  48.  
  49. bingoList[18] = [
  50. {name: "Defeat an Amazy Dayzee", types: ["twilight", "pit"]},
  51.  
  52. You can encounter Amazy Dayzees in both Twilight Trail and the Pit of 100 Trials. If this goal was in the same row as "All 10 Twilight Town/Twilight Trail/Creepy Steeple Star Pieces," a racer might be more inclined to head to chapter 4 if it means completing two goals, which is completely fine. The types make goals less likely to appear in the same row/column/diagonal, but they don't make it impossible. If two goals with the same type end up in the same row/column/diagonal, the magic number that the row has to add up to is increased. This means that the set of five goals will be objectively longer on their own than some other options, but the added synergy makes up for it.
  53.  
  54. Types are also used to completely discourage two goals from being done together for reasons against synergy:
  55.  
  56. bingoList[14] = [
  57. {name: "15 BP", types: ["stat1, stat2, stat3, stat4"]},
  58. {name: "30 FP", types: ["stat1, stat2, stat3, stat4"]},
  59.  
  60. These goals are perfectly manageable on their own, but their length increase quite substantially when they are paired together. The more types a row has in common, the less likely they are to occur together, so the stat goals each have four similar types.
  61.  
  62.  
  63. Following is a list of all the goals in the current bingo script, followed by their types:
  64.  
  65. bingoList[1]
  66. Defeat Gus | rogueport
  67. Double Pain & Slow Go | rogueport, charlieton
  68. Simplifier & Unsimplifier | howz
  69.  
  70. bingoList[2]
  71. Jumpman & Hammerman | rogueport, charlieton
  72. Complete Garf's Trouble | rogueport, prologue, trouble
  73. Complete McGoomba's Trouble | rogueport, prologue, trouble
  74. Complete Arfur's Trouble | rogueport, prologue, trouble
  75.  
  76. bingoList[3]
  77. Complete Mousimillan's Trouble | rogueport, trouble
  78. Complete Bomberto's Trouble | rogueport, trouble
  79. Super Rank Goombella | shine
  80. Super Rank Koops | shine
  81.  
  82. bingoList[4]
  83. Special Card | hooktail, trouble
  84. Spike Shield | sewers, end
  85. Complete Plenn T's Trouble | petalburg, trouble
  86. Flower Saver | dazzle, steeple, 4
  87. HP Plus, HP Plus P, & FP Plus | hooktail, boggly, fahr, glitz
  88.  
  89. bingoList[5]
  90. Happy Heart & Happy Heart P | petalburg, sewers
  91. Shroom Fry | recipe
  92. Koopa Tea | petalburg, recipe, 1
  93. Fresh Juice | recipe
  94. Heart Finder, Flower Finder, & Item Hog | dazzle
  95.  
  96. bingoList[6]
  97. 15 Tattle Log Entries | tattle
  98. All 4 Boggly Woods Star Pieces | boggly, 2
  99. All 4 Great Tree Shine Sprites | tree, 2
  100. All 6 Great Tree Star Pieces | tree 2
  101. Damage Dodge & Damage Dodge P | sewers, tree
  102. W Emblem | rogueport, charlieton
  103.  
  104. bingoList[7]
  105. At Least 10 Rogueport Star Pieces | rogueport
  106. HP Drain P | poshley
  107. Double Dip | rogueport
  108. Whacka Bump | keelhaul
  109. Gold Card | rogueport, trouble
  110. All 5 Hooktail Castle Star Pieces | hooktail, 1
  111. All 5 Petal Meadows/Petalburg Star Pieces | petalburg, 1
  112. Complete Puni Elder's Trouble | tree, trouble
  113. Donate 300 Coins to Lumpy | rogueport
  114. Super Rank Flurrie | shine, rogueport
  115.  
  116. bingoList[8]
  117. At Least 15 Rogueport Sewers Star Pieces | sewers
  118. Double Dip P | fahr
  119. Both Fahr Outpost Shine Sprites | fahr
  120. All 6 Fahr Outpost Star Pieces | fahr
  121. Dubious Paper | glitz, 3
  122. Mousse Cake | recipe
  123. Fried Egg | tree, 2, recipe
  124. Redeem Ice Storm from 20 Shop Points | item
  125.  
  126. bingoList[9]
  127. Silver Card | trouble, pit
  128. Tornado Jump | steeple, parlor
  129. Power Plus & Power Plus P | glitz, steeple
  130. Charge & Charge P | boggly, glitz, 3
  131. Defeat the KP Koopas | glitz, 3
  132. 10 Recipes | recipe
  133.  
  134. bingoList[10]
  135. Complete Jolene's Trouble | glitz, trouble, 3
  136. Dried Bouquet | trouble
  137. All 4 Poshley Heights Star Pieces | poshley
  138. Spaghetti | poshley, recipe
  139. Hammer Throw | steeple, 4, parlor
  140. All 3 Twilight Town Star Pieces | twilight, 4
  141. Complete Merlee's Trouble | sewers, trouble, recipe
  142.  
  143. bingoList[11]
  144. 30 Tattle Log Entries | tattle
  145. Super Rank 3 Partners | shine
  146. Autograph | train, 6, end
  147. At Least 3 Excess Express Star Pieces | train, 6, end
  148. Ms. Mowz | hooktail, trouble
  149. Both Glitzville Shine Sprites | glitz, 3
  150. B-List Star | stat1, stat2
  151.  
  152. bingoList[12]
  153. Super Rank Yoshi | shine
  154. Defeat an X-Yux | fortress, 7
  155. Collect the Star Piece on the Moon | fortress, 7
  156. Platinum Card | trouble, poshley
  157. Defeat the Armored Harriers | glitz, 3
  158.  
  159. bingoList[13]
  160. Couple's Cake | grotto, trouble, recipe
  161. All 10 Glitzville Star Pieces | glitz, 3
  162. Up Arrow | hooktail, shine
  163. Defend Plus P | sewers, grotto
  164.  
  165. bingoList[14]
  166. 15 BP | stat1, stat2, stat3, stat4
  167. 30 FP | stat1, stat2, stat3, stat4
  168. 30 HP | stat1, stat2, stat3, stat4
  169. All 6 Keelhaul Key Star Pieces | keelhaul
  170. 15 Shine Sprites | shine
  171. Super Rank Bobbery | 5, shine
  172.  
  173. bingoList[15]
  174. Defend Plus | sewers, twilight, 4
  175. Zap Tap | pit
  176. Money Money | parlor, trouble
  177. HP Drain (Badge) | rogueport
  178. Defeat Magnus von Grapple 2.0 | fortress, 7
  179.  
  180. bingoList[16]
  181. All 4 Pirate's Grotto Star Pieces
  182. All 7 Inn Coupons | twilight, keelhaul, massinventory
  183. Ultra Rank Bobbery | shine
  184. Meteor Meal | twilight, trouble, recipe
  185.  
  186. bingoList[17]
  187. Lucky Start | steeple, 4
  188. Complete Goldbob's Trouble | poshley, 7
  189. P-Down, D-Up | grotto, 5
  190. Golden Leaf | steeple, 4
  191. All 5 Pirate's Grotto Shine Sprites | grotto, 5
  192.  
  193. bingoList[18]
  194. Defeat an Amazy Dayzee | twilight, pit
  195. All 3 Creepy Steeple Shine Sprites | steeple, 4
  196. All 5 Attack FX Badges | trouble, hooktail, howz
  197. Defeat Cortez | grotto, 5
  198. Defeat a Spunia | sewers, 5
  199.  
  200. bingoList[19]
  201. Defeat Bowser (Glitzville) | glitz, 3
  202. Ultra Rank Ms. Mowz | shine
  203.  
  204. bingoList[20]
  205. Ultra Rank 3 Partners | shine
  206. 25 Shine Sprites | shine
  207. 30 Unique Badges | howz
  208.  
  209. bingoList[21]
  210. Jelly Ultra | recipe
  211. Coconut Bomb | recipe
  212. Boo Sheet from Zess T. | recipe, rogueport
  213. Zess Dinner | recipe
  214.  
  215. bingoList[22]
  216. All 10 Twilight Town/Twilight Trail/Creepy Steeple Star Pieces | twilight, 4
  217. Coconut Bomb | recipe
  218. Choco Cake | recipe, trouble
  219. Both Elevator Keys in X-Naut Fortress | fortress, 7
  220. 45 Tattle Log Entries | tattle
  221. Coco Candy, Honey Candy, & Jelly Candy | recipe, massinventory
  222.  
  223. bingoList[23]
  224. All or Nothing | palace, 8
  225. Defeat Doopliss (Creepy Steeple or Palace of Shadows) | twilight, 4, palace, 8
  226.  
  227. bingoList[24]
  228. Defeat Gloomtail | palace, 8
  229. P-Up, D-Down P | palace, 8
  230. Super Rank Vivian | rogueport, shine
  231.  
  232. bingoList[25]
  233. Strange Sack | long
  234. Quick Change & Pity Flower | pit, dazzle, long
  235.  
  236.  
  237. Lots of work needs to be done as far as balancing is concerned (especially regarding types.) I already plan to cut several of the goals listed, as well as make edits and add more in the future.
Add Comment
Please, Sign In to add comment