Advertisement
Umbreonboy2

Zodiacos 2

Oct 9th, 2016
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 56.98 KB | None | 0 0
  1. #===============================================================================
  2. #
  3. # Birthsigns Journal - By Lucidious89
  4. # For -Pokémon Essentials-
  5. #
  6. #===============================================================================
  7. # This script is meant as an add-on to the Pokémon Birthsigns script.
  8. # This may cause errors if Pokémon Birthsigns is not installed.
  9. #===============================================================================
  10. # ~Installation~
  11. #===============================================================================
  12. # To install, insert a new section below PokemonBirthsigns, and paste this
  13. # there. This is a plug-n-play addition, and doesn't require any other
  14. # changes.
  15. #
  16. # Use $scene = BirthsignJournalScene.new in an event to call this script.
  17. #
  18. # This script comes in three sections - A, B, and C.
  19. # Section A is the Journal scene, and is the core part of this script.
  20. # Section B overwrites things in SpriteWindow, to guarantee text displays correctly.
  21. # Section C overwrites things in PScreen_Pokegear, to automatically let you
  22. # access the Journal scene through the Pokegear.
  23. #
  24. # You may delete Sections B & C if you have your own changes to those sections
  25. # that you do not want overwritten.
  26. #
  27. # Everything below is written for Pokémon Essentials v.16.1
  28. #===============================================================================
  29.  
  30.  
  31. #===============================================================================
  32. #=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  33. #===============================================================================
  34. # Section A - Journal
  35. #===============================================================================
  36. #=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  37. #===============================================================================
  38. class BirthsignJournalScene
  39.  
  40. def initialize(menu_index = 0)
  41. @menu_index = menu_index
  42. end
  43.  
  44. #===============================================================================
  45. #Sets the colors for all the text.
  46. #===============================================================================
  47. BASECOLOR = Color.new(248,248,248)
  48. SHADOWCOLOR = Color.new(0,0,0)
  49. #===============================================================================
  50.  
  51. def update
  52. pbUpdateSpriteHash(@sprites)
  53. end
  54.  
  55. #===============================================================================
  56. #Draws the main menu.
  57. #===============================================================================
  58. def main
  59. @sprites={}
  60. @viewport=Viewport.new(0,0,Graphics.width,Graphics.height)
  61. @viewport.z=99999
  62. #===============================================================================
  63. #The background image that will display while viewing the menu.
  64. #===============================================================================
  65. @sprites["bg"] = IconSprite.new(0,0)
  66. @sprites["bg"].setBitmap("Graphics/Pictures/Birthsigns/Other/journalbg")
  67. @sprites["bg"].z=255
  68. #===============================================================================
  69. #The ball image that displays in the center of the menu.
  70. #===============================================================================
  71. @sprites["ball"] = IconSprite.new(0,0)
  72. @sprites["ball"].setBitmap("Graphics/Pictures/Birthsigns/Other/journalball")
  73. @sprites["ball"].z=256
  74. #===============================================================================
  75. #The zodiac wheel graphic that acts as the menu.
  76. #===============================================================================
  77. @sprites["zodiac"] = IconSprite.new(0,0)
  78. if !BIRTHSIGNS_SET_2
  79. @sprites["zodiac"].setBitmap("Graphics/Pictures/Birthsigns/Other/journalwheel")
  80. else
  81. @sprites["zodiac"].setBitmap("Graphics/Pictures/Birthsigns/Other/journalwheel2")
  82. end
  83. @sprites["zodiac"].z=256
  84. #===============================================================================
  85. #Draws the highlight graphic off-screen; ready to be used for the menu.
  86. #===============================================================================
  87. pbHighlight
  88. @sprites["select"].x=+1000
  89. #===============================================================================
  90. #This is the list of choices that will appear when the journal is opened.
  91. #Each option corresponds to a number after "when" below.
  92. #The first option ('The Apprentice') corresponds to 0.
  93. #The last option (Exit) corresponds to 12.
  94. #===============================================================================
  95. @choices=[
  96. JAN_BIRTHSIGN, # The Apprentice || The Phoenix
  97. FEB_BIRTHSIGN, # The Companion || The Scholar
  98. MAR_BIRTHSIGN, # The Beacon || The Fugitive
  99. APR_BIRTHSIGN, # The Savage || The Aristocrat
  100. MAY_BIRTHSIGN, # The Prodigy || The Cleric
  101. JUN_BIRTHSIGN, # The Martyr || The Monk
  102. JUL_BIRTHSIGN, # The Maiden || The Ancestor
  103. AUG_BIRTHSIGN, # The Gladiator || The Specialist
  104. SEP_BIRTHSIGN, # The Voyager || The Assassin
  105. OCT_BIRTHSIGN, # The Thief || The Parent
  106. NOV_BIRTHSIGN, # The Glutton || The Hunter
  107. DEC_BIRTHSIGN, # The Wishmaker || The Eternal
  108. _INTL("Exit")
  109. ]
  110.  
  111. #===============================================================================
  112. #Creates a window on the main menu for the list of options above.
  113. #This window is hidden, and instead the zodiac wheel is used to display options.
  114. #===============================================================================
  115. @sprites["list"] = Window_CommandPokemon.new(@choices,324)
  116. @sprites["list"].index = @menu_index
  117. @sprites["list"].height = 0
  118. @sprites["list"].width = 0
  119. #===============================================================================
  120. Graphics.transition
  121. loop do
  122. Graphics.update
  123. Input.update
  124. update
  125. if $scene != self
  126. break
  127. end
  128. end
  129. Graphics.freeze
  130. pbDisposeSpriteHash(@sprites)
  131. @viewport.dispose
  132. end
  133.  
  134. def update
  135. pbUpdateSpriteHash(@sprites)
  136. update_command
  137. return
  138. end
  139. #===============================================================================
  140. #Deletes the highlight graphic & birthsign title on the main menu.
  141. #===============================================================================
  142. def disposeSelect
  143. @sprites["select"].dispose
  144. @sprites["title"].dispose
  145. end
  146. #===============================================================================
  147. #Deletes all graphics and text windows on an info page.
  148. #===============================================================================
  149. def disposeAll
  150. pbPlayCancelSE()
  151. pbFadeOutIn(99999) {
  152. Input.update
  153. @sprites["birthsign"].dispose
  154. @sprites["token"].dispose
  155. @sprites["display"].dispose
  156. @sprites["name"].dispose
  157. @sprites["effect"].dispose
  158. @sprites["Etype"].dispose
  159. @sprites["month"].dispose
  160. @sprites["desc"].dispose
  161. pbActivateWindow(@sprites,"list")
  162. }
  163. end
  164. #===============================================================================
  165. #Sets all the graphics and text windows on an info page.
  166. #===============================================================================
  167. def pbSetSprites
  168. #Sets Birthsign image.
  169. @sprites["birthsign"]=IconSprite.new(0,0,@viewport)
  170. @sprites["birthsign"].z = 258
  171. #Sets Token graphic.
  172. @sprites["token"]=IconSprite.new(448,4,@viewport)
  173. @sprites["token"].z = 259
  174. #Sets Display graphic.
  175. @sprites["display"]=IconSprite.new(0,0,@viewport)
  176. @sprites["display"].setBitmap("Graphics/Pictures/Birthsigns/Other/journalboarder")
  177. @sprites["display"].z = 259
  178. #Sets Name Window.
  179. @sprites["name"]=Window_UnformattedTextPokemon.newWithSize("",0,0,300,64,@viewport)
  180. @sprites["name"].baseColor=BASECOLOR
  181. @sprites["name"].shadowColor=SHADOWCOLOR
  182. @sprites["name"].windowskin=nil
  183. @sprites["name"].z = 260
  184. pbSetSmallFont(@sprites["name"].contents)
  185. #Sets Effect Window.
  186. @sprites["effect"]=Window_AdvancedTextPokemon.newWithSize("",-10,330,532,64,@viewport)
  187. @sprites["effect"].baseColor=BASECOLOR
  188. @sprites["effect"].shadowColor=SHADOWCOLOR
  189. @sprites["effect"].windowskin=nil
  190. @sprites["effect"].z = 260
  191. pbSetExtraSmallFont(@sprites["effect"].contents)
  192. #Sets Effect Type Window.
  193. @sprites["Etype"]=Window_AdvancedTextPokemon.newWithSize("",-10,298,300,64,@viewport)
  194. @sprites["Etype"].baseColor=BASECOLOR
  195. @sprites["Etype"].shadowColor=SHADOWCOLOR
  196. @sprites["Etype"].windowskin=nil
  197. @sprites["Etype"].z = 260
  198. pbSetExtraSmallFont(@sprites["Etype"].contents)
  199. #Sets Month Window.
  200. @sprites["month"]=Window_AdvancedTextPokemon.newWithSize("",378,298,300,64,@viewport)
  201. @sprites["month"].baseColor=BASECOLOR
  202. @sprites["month"].shadowColor=SHADOWCOLOR
  203. @sprites["month"].windowskin=nil
  204. @sprites["month"].z = 260
  205. pbSetExtraSmallFont(@sprites["month"].contents)
  206. #Sets Description Window.
  207. @sprites["desc"]=Window_AdvancedTextPokemon.newWithSize("",4,46,300,290,@viewport)
  208. @sprites["desc"].baseColor=BASECOLOR
  209. @sprites["desc"].shadowColor=SHADOWCOLOR
  210. @sprites["desc"].windowskin=nil
  211. @sprites["desc"].z = 260
  212. pbSetExtraSmallFont(@sprites["desc"].contents)
  213. end
  214. #===============================================================================
  215. #Draws the highlight graphic & birthsign name on the main menu.
  216. #===============================================================================
  217. def pbHighlight
  218. @sprites["select"] = IconSprite.new(0,0)
  219. @sprites["select"].setBitmap("Graphics/Pictures/Birthsigns/Other/journalselect")
  220. @sprites["select"].z=256
  221. @sprites["title"]=Window_UnformattedTextPokemon.newWithSize("",0,159,300,64,@viewport)
  222. @sprites["title"].baseColor=BASECOLOR
  223. @sprites["title"].shadowColor=SHADOWCOLOR
  224. @sprites["title"].windowskin=nil
  225. end
  226. #===============================================================================
  227. #Pressing cancel on the main menu exits from the journal.
  228. #===============================================================================
  229. def update_command
  230. if Input.trigger?(Input::B)
  231. pbPlayCancelSE()
  232. #======================================================================
  233. #Swap the comment tag between the two "$scene" lines to choose how
  234. #you want to exit the Journal. First one exits back to the game world,
  235. #while the second exits back to the Pokegear scene.
  236. #======================================================================
  237. $scene = Scene_Map.new
  238. #$scene = Scene_Pokegear.new
  239. #======================================================================
  240. return
  241. end
  242.  
  243.  
  244.  
  245. #===============================================================================
  246. # Main Menu Zodiac Wheel.
  247. #===============================================================================
  248. #Highlights the selected birthsign and brings up its name.
  249. #Each number after "when" corresponds to an item on the list found on the
  250. #main menu.
  251. #The following is drawn whenever one of those items are highlighted by the
  252. #cursor (hidden from view).
  253. case @sprites["list"].index
  254. #===============================================================================
  255. # Highlights January's token.
  256. #===============================================================================
  257. when 0
  258. disposeSelect
  259. pbHighlight
  260. @sprites["select"].x=+226
  261. @sprites["select"].y=+1
  262. @sprites["title"].text = JAN_BIRTHSIGN
  263. @sprites["title"].x=+163 if !BIRTHSIGNS_SET_2
  264. @sprites["title"].x=+178 if BIRTHSIGNS_SET_2
  265. #===============================================================================
  266. # Highlights February's token.
  267. #===============================================================================
  268. when 1
  269. disposeSelect
  270. pbHighlight
  271. @sprites["select"].x=+305
  272. @sprites["select"].y=+26
  273. @sprites["title"].text = FEB_BIRTHSIGN
  274. @sprites["title"].x=+169 if !BIRTHSIGNS_SET_2
  275. @sprites["title"].x=+178 if BIRTHSIGNS_SET_2
  276. #===============================================================================
  277. # Highlights March's token.
  278. #===============================================================================
  279. when 2
  280. disposeSelect
  281. pbHighlight
  282. @sprites["select"].x=+366
  283. @sprites["select"].y=+85
  284. @sprites["title"].text = MAR_BIRTHSIGN
  285. @sprites["title"].x=+181 if !BIRTHSIGNS_SET_2
  286. @sprites["title"].x=+173 if BIRTHSIGNS_SET_2
  287. #===============================================================================
  288. # Highlights April's token.
  289. #===============================================================================
  290. when 3
  291. disposeSelect
  292. pbHighlight
  293. @sprites["select"].x=+387
  294. @sprites["select"].y=+164
  295. @sprites["title"].text = APR_BIRTHSIGN
  296. @sprites["title"].x=+181 if !BIRTHSIGNS_SET_2
  297. @sprites["title"].x=+163 if BIRTHSIGNS_SET_2
  298. #===============================================================================
  299. # Highlights May's token.
  300. #===============================================================================
  301. when 4
  302. disposeSelect
  303. pbHighlight
  304. @sprites["select"].x=+366
  305. @sprites["select"].y=+243
  306. @sprites["title"].text = MAY_BIRTHSIGN
  307. @sprites["title"].x=+179 if !BIRTHSIGNS_SET_2
  308. @sprites["title"].x=+185 if BIRTHSIGNS_SET_2
  309. #===============================================================================
  310. # Highlights June's token.
  311. #===============================================================================
  312. when 5
  313. disposeSelect
  314. pbHighlight
  315. @sprites["select"].x=+305
  316. @sprites["select"].y=+302
  317. @sprites["title"].text = JUN_BIRTHSIGN
  318. @sprites["title"].x=+181 if !BIRTHSIGNS_SET_2
  319. @sprites["title"].x=+191 if BIRTHSIGNS_SET_2
  320. #===============================================================================
  321. # Highlights July's token.
  322. #===============================================================================
  323. when 6
  324. disposeSelect
  325. pbHighlight
  326. @sprites["select"].x=+226
  327. @sprites["select"].y=+327
  328. @sprites["title"].text = JUL_BIRTHSIGN
  329. @sprites["title"].x=+183 if !BIRTHSIGNS_SET_2
  330. @sprites["title"].x=+170 if BIRTHSIGNS_SET_2
  331. #===============================================================================
  332. # Highlights August's token.
  333. #===============================================================================
  334. when 7
  335. disposeSelect
  336. pbHighlight
  337. @sprites["select"].x=+147
  338. @sprites["select"].y=+302
  339. @sprites["title"].text = AUG_BIRTHSIGN
  340. @sprites["title"].x=+171 if !BIRTHSIGNS_SET_2
  341. @sprites["title"].x=+165 if BIRTHSIGNS_SET_2
  342. #===============================================================================
  343. # Highlights September's token.
  344. #===============================================================================
  345. when 8
  346. disposeSelect
  347. pbHighlight
  348. @sprites["select"].x=+86
  349. @sprites["select"].y=+243
  350. @sprites["title"].text = SEP_BIRTHSIGN
  351. @sprites["title"].x=+179 if !BIRTHSIGNS_SET_2
  352. @sprites["title"].x=+171 if BIRTHSIGNS_SET_2
  353. #===============================================================================
  354. # Highlights October's token.
  355. #===============================================================================
  356. when 9
  357. disposeSelect
  358. pbHighlight
  359. @sprites["select"].x=+65
  360. @sprites["select"].y=+164
  361. @sprites["title"].text = OCT_BIRTHSIGN
  362. @sprites["title"].x=+189 if !BIRTHSIGNS_SET_2
  363. @sprites["title"].x=+180 if BIRTHSIGNS_SET_2
  364. #===============================================================================
  365. # Highlights November's token.
  366. #===============================================================================
  367. when 10
  368. disposeSelect
  369. pbHighlight
  370. @sprites["select"].x=+86
  371. @sprites["select"].y=+85
  372. @sprites["title"].text = NOV_BIRTHSIGN
  373. @sprites["title"].x=+179 if !BIRTHSIGNS_SET_2
  374. @sprites["title"].x=+180 if BIRTHSIGNS_SET_2
  375. #===============================================================================
  376. # Highlights December's token.
  377. #===============================================================================
  378. when 11
  379. disposeSelect
  380. pbHighlight
  381. @sprites["select"].x=+147
  382. @sprites["select"].y=+26
  383. @sprites["title"].text = DEC_BIRTHSIGN
  384. @sprites["title"].x=+169 if !BIRTHSIGNS_SET_2
  385. @sprites["title"].x=+178 if BIRTHSIGNS_SET_2
  386. #===============================================================================
  387. # Highlights the Exit button.
  388. #===============================================================================
  389. when 12
  390. disposeSelect
  391. pbHighlight
  392. @sprites["select"].x=+229
  393. @sprites["select"].y=+161
  394. @sprites["title"].x=+223
  395. @sprites["title"].text=(_INTL("Exit"))
  396. end
  397.  
  398.  
  399. #===============================================================================
  400. #Birthsign Info Pages - Set 1.
  401. #===============================================================================
  402. #Opens info pages for Birthsign Set 1.
  403. #Each number after "when" corresponds to an item on the list found on the
  404. #main menu.
  405. #The following is drawn whenever one of those items are selected with the
  406. #confirm button.
  407. if Input.trigger?(Input::C) && !BIRTHSIGNS_SET_2
  408. case @sprites["list"].index
  409. #===============================================================================
  410. # The Apprentice
  411. #===============================================================================
  412. when 0
  413. pbSetSprites
  414. pbDeactivateWindows(@sprites)
  415. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign01")
  416. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token01")
  417. @sprites["name"].x=+169
  418. @sprites["name"].text = JAN_BIRTHSIGN
  419. @sprites["effect"].text=(_INTL("El usuario comienza con el virus Pokerus curada; ganando EV's dobles de la batalla."))
  420. @sprites["Etype"].text=(_INTL("Efecto: Passivo"))
  421. @sprites["month"].text=(_INTL("Mes: Enero"))
  422. @sprites["desc"].text=(_INTL(
  423. "La profecía habla de un entrenador que un día será el mejor, como nadie lo era. Él tiene muchos nombres, y su voz no se escucha - sin embargo, todos sabemos quién es. Una cosa conocida con certeza es que siempre tiene un Pikachu a su lado. Muchos entrenadores aspirantes a seguir en estos pasos; con la esperanza de alguna vez cumplir la profecía."))
  424. pbFadeInAndShow(@sprites)
  425. loop do
  426. Input.update
  427. Graphics.update
  428. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  429. disposeAll
  430. return
  431. end
  432. update
  433. end
  434. #===============================================================================
  435. # The Companion
  436. #===============================================================================
  437. when 1
  438. pbSetSprites
  439. pbDeactivateWindows(@sprites)
  440. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign02")
  441. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token02")
  442. @sprites["name"].x=+169
  443. @sprites["name"].text = FEB_BIRTHSIGN
  444. @sprites["effect"].text=(_INTL("El usuario comienza con el máximo afecto por su entrenador."))
  445. @sprites["Etype"].text=(_INTL("Efecto: Pasivo"))
  446. @sprites["month"].text=(_INTL("Mes: Febrero"))
  447. @sprites["desc"].text=(_INTL(
  448. "Un viejo mito cuenta de un Luvdisc que nada en el cielo, con las escalas hechas de estrellas. Estas escalas concederían su felicidad eterna propietario. Esta historia comenzó una tradición que existe hoy en día; donde los amantes intercambiarían corazón Escalas como un símbolo de la felicidad eterna juntos. En los tiempos modernos, la gente usa los amores en su lugar."))
  449. pbFadeInAndShow(@sprites)
  450. loop do
  451. Input.update
  452. Graphics.update
  453. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  454. disposeAll
  455. return
  456. end
  457. update
  458. end
  459. #===============================================================================
  460. # The Beacon
  461. #===============================================================================
  462. when 2
  463. pbSetSprites
  464. pbDeactivateWindows(@sprites)
  465. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign03")
  466. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token03")
  467. @sprites["name"].x=+187
  468. @sprites["name"].text = MAR_BIRTHSIGN
  469. @sprites["effect"].text=(_INTL("El usuario tiene acceso a la habilidad del 'Destello' en el campo sin necesidad de movimiento."))
  470. @sprites["Etype"].text=(_INTL("Efecto: Habilidad"))
  471. @sprites["month"].text=(_INTL("Mes: Marzo"))
  472. @sprites["desc"].text=(_INTL(
  473. "Hay un cuento que habla de un antiguo rey; perdido en el caos de una gran batalla. El cielo estaba nublado por el humo; borrando todas menos una de las estrellas en el cielo. Que una gran estrella guió a volver al rey a su reino, donde declaró esta constelación siempre será conocido como 'El faro', y todos los que nacen bajo él pondrán luz para el mundo."))
  474. pbFadeInAndShow(@sprites)
  475. loop do
  476. Input.update
  477. Graphics.update
  478. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  479. disposeAll
  480. return
  481. end
  482. update
  483. end
  484. #===============================================================================
  485. # The Savage
  486. #===============================================================================
  487. when 3
  488. pbSetSprites
  489. pbDeactivateWindows(@sprites)
  490. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign04")
  491. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token04")
  492. @sprites["name"].x=+187
  493. @sprites["name"].text = APR_BIRTHSIGN
  494. @sprites["effect"].text=(_INTL("El usuario comienza con IVs máximos en ataque, Sp.Atk, y la velocidad; pero el HP IV es 0."))
  495. @sprites["Etype"].text=(_INTL("Efecto: Pasivo"))
  496. @sprites["month"].text=(_INTL("Mes: Abril"))
  497. @sprites["desc"].text=(_INTL(
  498. "Un Pokémon salvaje, una vez presa de gente en la antigüedad. Su rabia llama rayos desde el cielo, y sus grandes colmillos rasgó a través de los enemigos. Batalla tras batalla se libró, pero la bestia se quedó invicta. Hasta que un día, un niño saltando piedras golpeó a la bestia por casualidad. La gran bestia luego cayó, y su furia no era más."))
  499. pbFadeInAndShow(@sprites)
  500. loop do
  501. Input.update
  502. Graphics.update
  503. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  504. disposeAll
  505. return
  506. end
  507. update
  508. end
  509. #===============================================================================
  510. # The Prodigy
  511. #===============================================================================
  512. when 4
  513. pbSetSprites
  514. pbDeactivateWindows(@sprites)
  515. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign05")
  516. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token05")
  517. @sprites["name"].x=+185
  518. @sprites["name"].text = MAY_BIRTHSIGN
  519. @sprites["effect"].text=(_INTL("El usuario siempre tendrá su habilidad oculta, si tiene alguna disponible."))
  520. @sprites["Etype"].text=(_INTL("Efecto: Pasivo"))
  521. @sprites["month"].text=(_INTL("Mes: Mayo"))
  522. @sprites["desc"].text=(_INTL(
  523. "Hubo ocho hermanos que reclamaron el dominio sobre un elemento. Juntos, se llevaron a cabo en el mundo en equilibrio. Un día nació un noveno hermano, pero sin potencia aparente. Hasta que hubo un cataclismo que ninguno de los ocho hermanos podría detener. De la nada el noveno hermano apareció y reveló su poder - el dominio de todos los elementos."))
  524. pbFadeInAndShow(@sprites)
  525. loop do
  526. Input.update
  527. Graphics.update
  528. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  529. disposeAll
  530. return
  531. end
  532. update
  533. end
  534. #===============================================================================
  535. # The Martyr
  536. #===============================================================================
  537. when 5
  538. pbSetSprites
  539. pbDeactivateWindows(@sprites)
  540. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign06")
  541. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token06")
  542. @sprites["name"].x=+187
  543. @sprites["name"].text = JUN_BIRTHSIGN
  544. @sprites["effect"].text=(_INTL("El usuario tiene acceso a la habilidad 'Amortiguador' en el campo sin necesidad de movimiento."))
  545. @sprites["Etype"].text=(_INTL("Efecto: Habilidad"))
  546. @sprites["month"].text=(_INTL("Mes: Junio"))
  547. @sprites["desc"].text=(_INTL(
  548. "Había una vez un viajero que se derrumbó de hambre. Un Pokémon apareció, y compartió con ella un huevo extraño. Ella fue revitalizada en cuestión de momentos, pero la salud de los Pokémon se negó. La mujer hizo todo lo que podía hacer ... pero era demasiado tarde. Como para honrar su memoria, la mujer se convirtió en el primer médico en el mundo Pokémon."))
  549. pbFadeInAndShow(@sprites)
  550. loop do
  551. Input.update
  552. Graphics.update
  553. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  554. disposeAll
  555. return
  556. end
  557. update
  558. end
  559. #===============================================================================
  560. # The Maiden
  561. #===============================================================================
  562. when 6
  563. pbSetSprites
  564. pbDeactivateWindows(@sprites)
  565. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign07")
  566. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token07")
  567. @sprites["name"].x=+189
  568. @sprites["name"].text = JUL_BIRTHSIGN
  569. @sprites["effect"].text=(_INTL("El usuario siempre será hembra, si es posible."))
  570. @sprites["Etype"].text=(_INTL("Efecto: Pasivo"))
  571. @sprites["month"].text=(_INTL("Mes: Julio"))
  572. @sprites["desc"].text=(_INTL(
  573. "Habla de una bella doncella y un poderoso gladiador que estaban profundamente en el amor. Pero un día una bruja celosa quería el gladiador por sí misma, por lo que la doncella atrapada en el cielo como polvo de estrellas. La doncella apareció cada noche para brillar tanto como pudo; esperando que mirarla de nuevo de la misma manera que hizo una vez. Ella lo hace a este día."))
  574. pbFadeInAndShow(@sprites)
  575. loop do
  576. Input.update
  577. Graphics.update
  578. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  579. disposeAll
  580. return
  581. end
  582. update
  583. end
  584. #===============================================================================
  585. # The Gladiator
  586. #===============================================================================
  587. when 7
  588. pbSetSprites
  589. pbDeactivateWindows(@sprites)
  590. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign08")
  591. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token08")
  592. @sprites["name"].x=+177
  593. @sprites["name"].text = AUG_BIRTHSIGN
  594. @sprites["effect"].text=(_INTL("El usuario comienza con 100 EV tanto en ataque como en Sp.Atk."))
  595. @sprites["Etype"].text=(_INTL("Efecto: Pasivo"))
  596. @sprites["month"].text=(_INTL("Mes: Agosto"))
  597. @sprites["desc"].text=(_INTL(
  598. "Después de atrapar a su amante en el cielo, los avances de la bruja fueron rechazadas por la voluntad de hierro del gladiador. Luego viajó por el mundo en busca de su amada; Nunca encontrarla. Cada noche, miraba hacia el cielo y sentir su dulce mirada. Se dice que después de su muerte, volvió a nacer por Arceus como polvo de estrellas, para reunirse con su amor perdido."))
  599. pbFadeInAndShow(@sprites)
  600. loop do
  601. Input.update
  602. Graphics.update
  603. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  604. disposeAll
  605. return
  606. end
  607. update
  608. end
  609. #===============================================================================
  610. # The Voyager
  611. #===============================================================================
  612. when 8
  613. pbSetSprites
  614. pbDeactivateWindows(@sprites)
  615. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign09")
  616. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token09")
  617. @sprites["name"].x=+185
  618. @sprites["name"].text = SEP_BIRTHSIGN
  619. @sprites["effect"].text=(_INTL("El usuario tiene acceso a la habilidad 'teletransporte' en el campo sin necesidad de movimiento."))
  620. @sprites["Etype"].text=(_INTL("Efecto: Habilidad"))
  621. @sprites["month"].text=(_INTL("Mes: Septiembre"))
  622. @sprites["desc"].text=(_INTL(
  623. "Ha habido avistamientos de seres de otro a lo largo de la historia. Una antigua región conocida como Silphonia afirmó haberse reunido con uno de tales visitante que viajó desde un planeta lejano (erróneamente pensaron que era una estrella en esta constelación). Casualmente, esta fue la primera civilización para desarrollar tanto Pokeball y tecnología de panel de urdimbre."))
  624. pbFadeInAndShow(@sprites)
  625. loop do
  626. Input.update
  627. Graphics.update
  628. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  629. disposeAll
  630. return
  631. end
  632. update
  633. end
  634. #===============================================================================
  635. # The Thief
  636. #===============================================================================
  637. when 9
  638. pbSetSprites
  639. pbDeactivateWindows(@sprites)
  640. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign10")
  641. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token10")
  642. @sprites["name"].x=+195
  643. @sprites["name"].text = OCT_BIRTHSIGN
  644. @sprites["effect"].text=(_INTL("El usuario comienza con 252 EVs en velocidad."))
  645. @sprites["Etype"].text=(_INTL("Efecto: Pasivo"))
  646. @sprites["month"].text=(_INTL("Mes: Octubre"))
  647. @sprites["desc"].text=(_INTL(
  648. "El robo ha existido durante el tiempo que ha habido cosas que robar. cultos secretos dedicados a los robos se encuentran en la historia. Los pocos que sobrevivieron todos tienen una cosa en común: la fundación de su gremio bajo la luz de las estrellas de este signo. Esta superstición se ha vuelto tan omnipresente, que todavía es practicada por las bandas modernas como el Equipo Rocket."))
  649. pbFadeInAndShow(@sprites)
  650. loop do
  651. Input.update
  652. Graphics.update
  653. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  654. disposeAll
  655. return
  656. end
  657. update
  658. end
  659. #===============================================================================
  660. # The Glutton
  661. #===============================================================================
  662. when 10
  663. pbSetSprites
  664. pbDeactivateWindows(@sprites)
  665. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign11")
  666. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token11")
  667. @sprites["name"].x=+185
  668. @sprites["name"].text = NOV_BIRTHSIGN
  669. @sprites["effect"].text=(_INTL("El usuario comienza con IVs máximos de Defensa, Sp.Def, y HP; pero la velocidad es 0 IV."))
  670. @sprites["Etype"].text=(_INTL("Efecto: Pasivo"))
  671. @sprites["month"].text=(_INTL("Mes: Noviembre"))
  672. @sprites["desc"].text=(_INTL(
  673. "Allí vivía un rey con un apetito tan grande, todo su reino pasó hambre. El pueblo se sublevó, pero el rey se habían vuelto tan gordo que ninguna espada puede perforar. Pero tampoco podía mover. La gente del pueblo decidió salir y construir un nuevo hogar, mientras que el viejo rey de grasa reinaba siempre en el trono de su reino vacío."))
  674. pbFadeInAndShow(@sprites)
  675. loop do
  676. Input.update
  677. Graphics.update
  678. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  679. disposeAll
  680. return
  681. end
  682. update
  683. end
  684. #===============================================================================
  685. # The Wishmaker
  686. #===============================================================================
  687. when 11
  688. pbSetSprites
  689. pbDeactivateWindows(@sprites)
  690. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign12")
  691. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token12")
  692. @sprites["name"].x=+175
  693. @sprites["name"].text = DEC_BIRTHSIGN
  694. @sprites["effect"].text=(_INTL("El usuario siempre será shiny, si es posible."))
  695. @sprites["Etype"].text=(_INTL("Efecto: Pasivo"))
  696. @sprites["month"].text=(_INTL("Mes: Diciembre"))
  697. @sprites["desc"].text=(_INTL(
  698. "Hay una leyenda que indica que allí vive un Pokémon que concede un deseo cada 1.000 años. Sólo uno de esos casos se ha registrado jamás, que se remonta a miles de años. Un entrenador implacable deseaba por su Pokémon para ser inmortal. En respuesta, el legendario Pokémon volvió todos los Pokémon del hombre en constelaciones en el cielo."))
  699. pbFadeInAndShow(@sprites)
  700. loop do
  701. Input.update
  702. Graphics.update
  703. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  704. disposeAll
  705. return
  706. end
  707. update
  708. end
  709. # Exit Option.
  710. #===============================================================================
  711. when 12
  712. pbPlayDecisionSE()
  713. $scene = Scene_Pokegear.new
  714. end
  715. return
  716. end
  717.  
  718.  
  719. #===============================================================================
  720. #Birthsign Info Pages - Set 2.
  721. #===============================================================================
  722. #Opens info pages for Birthsign Set 2.
  723. #Each number after "when" corresponds to an item on the list found on the
  724. #main menu.
  725. #The following is drawn whenever one of those items are selected with the
  726. #confirm button.
  727. if Input.trigger?(Input::C) && BIRTHSIGNS_SET_2
  728. case @sprites["list"].index
  729. #===============================================================================
  730. # The Phoenix
  731. #===============================================================================
  732. when 0
  733. pbSetSprites
  734. pbDeactivateWindows(@sprites)
  735. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign01")
  736. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token01")
  737. @sprites["name"].x=+183
  738. @sprites["name"].text = JAN_BIRTHSIGN
  739. @sprites["effect"].text=(_INTL("The user has access to the 'Rebirth' skill; allowing it to restore itself from fainting."))
  740. @sprites["Etype"].text=(_INTL("Effect: Skill"))
  741. @sprites["month"].text=(_INTL("Month: January"))
  742. @sprites["desc"].text=(_INTL(
  743. "One of the myths that is spoken of in the Johto region tells the story of three Pokémon who perished within a burning tower. But there was a majestic bird Pokémon who brought them back to life with its mysterious abilities. Some believe that this Pokémon can still be found flying among the stars; and will grant new life to true believers."))
  744. pbFadeInAndShow(@sprites)
  745. loop do
  746. Input.update
  747. Graphics.update
  748. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  749. disposeAll
  750. return
  751. end
  752. update
  753. end
  754. #===============================================================================
  755. # The Scholar
  756. #===============================================================================
  757. when 1
  758. pbSetSprites
  759. pbDeactivateWindows(@sprites)
  760. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign02")
  761. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token02")
  762. @sprites["name"].x=+185
  763. @sprites["name"].text = FEB_BIRTHSIGN
  764. @sprites["effect"].text=(_INTL("The user gains 20% more experience from battles. This stacks with similar effects."))
  765. @sprites["Etype"].text=(_INTL("Effect: Passive"))
  766. @sprites["month"].text=(_INTL("Month: February"))
  767. @sprites["desc"].text=(_INTL(
  768. "There was once a particularly dim-witted Slowpoke who forgot how to fish. Confusing his head for his tail, he dunked his face in the water. But as all his friends became Slowbro, he became something else. He was smarter in this form, but no longer belonged. He spent hours theorizing his new purpose as his friends spent their days lounging in peace."))
  769. pbFadeInAndShow(@sprites)
  770. loop do
  771. Input.update
  772. Graphics.update
  773. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  774. disposeAll
  775. return
  776. end
  777. update
  778. end
  779. #===============================================================================
  780. # The Fugitive
  781. #===============================================================================
  782. when 2
  783. pbSetSprites
  784. pbDeactivateWindows(@sprites)
  785. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign03")
  786. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token03")
  787. @sprites["name"].x=+181
  788. @sprites["name"].text = MAR_BIRTHSIGN
  789. @sprites["effect"].text=(_INTL("The user has access to the 'Escape' skill; allowing it to flee from any dungeon."))
  790. @sprites["Etype"].text=(_INTL("Effect: Skill"))
  791. @sprites["month"].text=(_INTL("Month: March"))
  792. @sprites["desc"].text=(_INTL(
  793. "Rumors of a famous cat burglar known as ‘The Silver Vulpix’ say that there wasn’t any lock she couldn’t break. Recorded instances of her capture describe her escape moments later. No safe could keep her out, and no cage could keep her in. Some say the secret to her lock picking skill was actually the work of a Pokémon."))
  794. pbFadeInAndShow(@sprites)
  795. loop do
  796. Input.update
  797. Graphics.update
  798. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  799. disposeAll
  800. return
  801. end
  802. update
  803. end
  804. #===============================================================================
  805. # The Aristocrat
  806. #===============================================================================
  807. when 3
  808. pbSetSprites
  809. pbDeactivateWindows(@sprites)
  810. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign04")
  811. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token04")
  812. @sprites["name"].x=+171
  813. @sprites["name"].text = APR_BIRTHSIGN
  814. @sprites["effect"].text=(_INTL("The user gains 2x prize money while leading. This stacks with other party effects."))
  815. @sprites["Etype"].text=(_INTL("Effect: Passive"))
  816. @sprites["month"].text=(_INTL("Month: April"))
  817. @sprites["desc"].text=(_INTL(
  818. "Meowth has been revered by many in the past. A symbol of great fortune, and common among nobility. One particularly cruel nobleman was said to order his Meowth to toss coins at peasants for his own entertainment. Despite the injuries, most kept quiet as they picked up the thrown coins. This move was later named ‘Pay Day’."))
  819. pbFadeInAndShow(@sprites)
  820. loop do
  821. Input.update
  822. Graphics.update
  823. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  824. disposeAll
  825. return
  826. end
  827. update
  828. end
  829. #===============================================================================
  830. # The Cleric
  831. #===============================================================================
  832. when 4
  833. pbSetSprites
  834. pbDeactivateWindows(@sprites)
  835. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign05")
  836. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token05")
  837. @sprites["name"].x=+191
  838. @sprites["name"].text = MAY_BIRTHSIGN
  839. @sprites["effect"].text=(_INTL("The user has access to the 'Cure' skill; allowing it to heal its own status conditions."))
  840. @sprites["Etype"].text=(_INTL("Effect: Skill"))
  841. @sprites["month"].text=(_INTL("Month: May"))
  842. @sprites["desc"].text=(_INTL(
  843. "Pokémon with healing capabilities have always been held in high esteem throughout history. Even before the first Pokémon Centers, the sick and wounded would meet with a particular Pokémon in town who would treat them. Every town had its own ‘Cleric’, as they became known, and they were perhaps the most respected members of society."))
  844. pbFadeInAndShow(@sprites)
  845. loop do
  846. Input.update
  847. Graphics.update
  848. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  849. disposeAll
  850. return
  851. end
  852. update
  853. end
  854. #===============================================================================
  855. # The Monk
  856. #===============================================================================
  857. when 5
  858. pbSetSprites
  859. pbDeactivateWindows(@sprites)
  860. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign06")
  861. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token06")
  862. @sprites["name"].x=+197
  863. @sprites["name"].text = JUN_BIRTHSIGN
  864. @sprites["effect"].text=(_INTL("The user has access to the 'Trance' skill; allowing it to relearn any forgotten moves."))
  865. @sprites["Etype"].text=(_INTL("Effect: Skill"))
  866. @sprites["month"].text=(_INTL("Month: June"))
  867. @sprites["desc"].text=(_INTL(
  868. "There lives a sect of monks who secludes themselves from the world. High atop the peaks of Mt. Silver, they take vows of silence and dedicate themselves to meditation. Years go by as they meditate to discover lost knowledge. Rumors say one particularly strong trainer took this vow, and still trains there to this day."))
  869. pbFadeInAndShow(@sprites)
  870. loop do
  871. Input.update
  872. Graphics.update
  873. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  874. disposeAll
  875. return
  876. end
  877. update
  878. end
  879. #===============================================================================
  880. # The Ancestor
  881. #===============================================================================
  882. when 6
  883. pbSetSprites
  884. pbDeactivateWindows(@sprites)
  885. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign07")
  886. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token07")
  887. @sprites["name"].x=+179
  888. @sprites["name"].text = JUL_BIRTHSIGN
  889. @sprites["effect"].text=(_INTL("The user yields eggs that hatch 2x as fast. Both parents can stack this effect."))
  890. @sprites["Etype"].text=(_INTL("Effect: Passive"))
  891. @sprites["month"].text=(_INTL("Month: July"))
  892. @sprites["desc"].text=(_INTL(
  893. "In the days of superstition, people prayed for the blessings of the fertility gods. These gods rested in the sky, watching over all life. Legend says that they would occasionally come down to earth in the form of a Pokémon. It’s believed that any Pokémon who yield eggs that hatch unusually quick are decedents of those gods."))
  894. pbFadeInAndShow(@sprites)
  895. loop do
  896. Input.update
  897. Graphics.update
  898. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  899. disposeAll
  900. return
  901. end
  902. update
  903. end
  904. #===============================================================================
  905. # The Specialist
  906. #===============================================================================
  907. when 7
  908. pbSetSprites
  909. pbDeactivateWindows(@sprites)
  910. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign08")
  911. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token08")
  912. @sprites["name"].x=+173
  913. @sprites["name"].text = AUG_BIRTHSIGN
  914. @sprites["effect"].text=(_INTL("The user has access to the 'Re-roll' skill; allowing it to roll for a new Hidden Power."))
  915. @sprites["Etype"].text=(_INTL("Effect: Skill"))
  916. @sprites["month"].text=(_INTL("Month: August"))
  917. @sprites["desc"].text=(_INTL(
  918. "Espionage was a common practice in war, even before the days of modern technology. Spies would carry with them a Pokémon for every situation. However, one of the greatest spies in history only carried a single Pokémon to carry out his missions. That one Pokémon somehow always had the exact tool it needed for the job."))
  919. pbFadeInAndShow(@sprites)
  920. loop do
  921. Input.update
  922. Graphics.update
  923. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  924. disposeAll
  925. return
  926. end
  927. update
  928. end
  929. #===============================================================================
  930. # The Assassin
  931. #===============================================================================
  932. when 8
  933. pbSetSprites
  934. pbDeactivateWindows(@sprites)
  935. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign09")
  936. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token09")
  937. @sprites["name"].x=+181
  938. @sprites["name"].text = SEP_BIRTHSIGN
  939. @sprites["effect"].text=(_INTL("The user may sneak up on unsuspecting wild Pokémon to strike while they're asleep."))
  940. @sprites["Etype"].text=(_INTL("Effect: Passive"))
  941. @sprites["month"].text=(_INTL("Month: September"))
  942. @sprites["desc"].text=(_INTL(
  943. "There are some legends that people fear to this day. One such myth surrounds a dark assassin whose method of attack is impossible to defend against. It attacks you in your dreams. This bogeyman has haunted people for eons. It’s said that when a victim is chosen, the assassin stalks you in the sky; waiting for you to fall asleep."))
  944. pbFadeInAndShow(@sprites)
  945. loop do
  946. Input.update
  947. Graphics.update
  948. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  949. disposeAll
  950. return
  951. end
  952. update
  953. end
  954. #===============================================================================
  955. # The Parent
  956. #===============================================================================
  957. when 9
  958. pbSetSprites
  959. pbDeactivateWindows(@sprites)
  960. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign10")
  961. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token10")
  962. @sprites["name"].x=+187
  963. @sprites["name"].text = OCT_BIRTHSIGN
  964. @sprites["effect"].text=(_INTL("The user has access to the 'Incubate' skill; hatching an egg with under 1,000 steps."))
  965. @sprites["Etype"].text=(_INTL("Effect: Skill"))
  966. @sprites["month"].text=(_INTL("Month: October"))
  967. @sprites["desc"].text=(_INTL(
  968. "There is an old story of a mother who was desperately awaiting her egg to hatch. Centuries passed as she waited atop her egg; completely motionless. One day a great wind pushed the mother off the egg, and the egg rolled from its nest. Frantically, the mother picked up the egg…and with a single step, the egg hatched."))
  969. pbFadeInAndShow(@sprites)
  970. loop do
  971. Input.update
  972. Graphics.update
  973. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  974. disposeAll
  975. return
  976. end
  977. update
  978. end
  979. #===============================================================================
  980. # The Hunter
  981. #===============================================================================
  982. when 10
  983. pbSetSprites
  984. pbDeactivateWindows(@sprites)
  985. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign11")
  986. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token11")
  987. @sprites["name"].x=+187
  988. @sprites["name"].text = NOV_BIRTHSIGN
  989. @sprites["effect"].text=(_INTL("The user has keen tracking skills; boosting capture rates by 20% when leading."))
  990. @sprites["Etype"].text=(_INTL("Effect: Passive"))
  991. @sprites["month"].text=(_INTL("Month: November"))
  992. @sprites["desc"].text=(_INTL(
  993. "A Pokémon once lived that evaded all attempts at capture. It out-witted even the most skilled trackers, and would often turn their own traps against them. A bounty was placed on this Pokémon, but it was never turned in. Some think that the Pokémon never even existed. Others say that it was a god in Pokémon form."))
  994. pbFadeInAndShow(@sprites)
  995. loop do
  996. Input.update
  997. Graphics.update
  998. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  999. disposeAll
  1000. return
  1001. end
  1002. update
  1003. end
  1004. #===============================================================================
  1005. # The Eternal
  1006. #===============================================================================
  1007. when 11
  1008. pbSetSprites
  1009. pbDeactivateWindows(@sprites)
  1010. @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign12")
  1011. @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token12")
  1012. @sprites["name"].x=+183
  1013. @sprites["name"].text = DEC_BIRTHSIGN
  1014. @sprites["effect"].text=(_INTL("The user has access to the 'Reincarnate' skill. Start over under a new birthsign!"))
  1015. @sprites["Etype"].text=(_INTL("Effect: Skill"))
  1016. @sprites["month"].text=(_INTL("Month: December"))
  1017. @sprites["desc"].text=(_INTL(
  1018. "Ily devout, the gods would bring them back; reborn as new life. The ancient Pokémon, Mew, was the basis of this belief, as it could change into new forms at will. As time went on, the practice was abandoned, but the belief remains."))
  1019. pbFadeInAndShow(@sprites)
  1020. loop do
  1021. Input.update
  1022. Graphics.update
  1023. if Input.trigger?(Input::B) || Input.trigger?(Input::C)
  1024. disposeAll
  1025. return
  1026. end
  1027. update
  1028. end
  1029. #===============================================================================
  1030. # Exit Option.
  1031. #===============================================================================
  1032. when 12
  1033. pbPlayDecisionSE()
  1034. $scene = Scene_Pokegear.new
  1035. end
  1036. return
  1037. end
  1038. end
  1039. end
  1040.  
  1041. #===============================================================================
  1042. #=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  1043. #===============================================================================
  1044. # Section B - Text Size
  1045. #===============================================================================
  1046. # This section overwrites the system font section found in SpriteWindow.
  1047. # Adds an ""Extra Small Font" that is used by the Birthsigns Journal.
  1048. #===============================================================================
  1049. #=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  1050. #===============================================================================
  1051. def pbSetSystemFont(bitmap)
  1052. fontname=MessageConfig.pbGetSystemFontName()
  1053. bitmap.font.name=fontname
  1054. if fontname=="Pokemon FireLeaf" || fontname=="Power Red and Green"
  1055. bitmap.font.size=29
  1056. elsif fontname=="Pokemon Emerald Small" || fontname=="Power Green Small"
  1057. bitmap.font.size=25
  1058. #=============================================================================
  1059. # Used by Birthsigns Journal
  1060. #=============================================================================
  1061. elsif fontname=="Power Clear"
  1062. bitmap.font.size=18
  1063. #=============================================================================
  1064. else
  1065. bitmap.font.size=31
  1066. end
  1067. end
  1068.  
  1069. # Gets the name of the system small font.
  1070. def pbSmallFontName()
  1071. return MessageConfig.pbTryFonts("Power Green Small","Pokemon Emerald Small",
  1072. "Arial Narrow","Arial")
  1073. end
  1074.  
  1075. # Gets the name of the system narrow font.
  1076. def pbNarrowFontName()
  1077. return MessageConfig.pbTryFonts("Power Green Narrow","Pokemon Emerald Narrow",
  1078. "Arial Narrow","Arial")
  1079. end
  1080.  
  1081. #===============================================================================
  1082. # Used by Birthsigns Journal
  1083. #===============================================================================
  1084. # Gets the name of the system small font.
  1085. def pbExtraSmallFontName()
  1086. return MessageConfig.pbTryFonts("Power Clear",
  1087. "Arial Narrow","Arial")
  1088. end
  1089. #==========================================================================
  1090.  
  1091. # Sets a bitmap's font to the system small font.
  1092. def pbSetSmallFont(bitmap)
  1093. bitmap.font.name=pbSmallFontName()
  1094. bitmap.font.size=25
  1095. end
  1096.  
  1097. # Sets a bitmap's font to the system narrow font.
  1098. def pbSetNarrowFont(bitmap)
  1099. bitmap.font.name=pbNarrowFontName()
  1100. bitmap.font.size=31
  1101. end
  1102.  
  1103. #===============================================================================
  1104. # Used by Birthsigns Journal
  1105. #===============================================================================
  1106. # Sets a bitmap's font to the system extra small font.
  1107. def pbSetExtraSmallFont(bitmap)
  1108. bitmap.font.name=pbExtraSmallFontName()
  1109. bitmap.font.size=18
  1110. end
  1111. #===============================================================================
  1112.  
  1113.  
  1114.  
  1115. #===============================================================================
  1116. #=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  1117. #===============================================================================
  1118. # Section C - Pokegear Installation
  1119. #===============================================================================
  1120. # The following section overwrites sections in PScreen_Pokegear to have
  1121. # the Birthsigns Journal automatically accessible via the Pokegear.
  1122. #
  1123. # If you do not want the Birthsigns Journal to appear in the Pokegear, you
  1124. # may delete this section.
  1125. #
  1126. # This section will OVERWRITE the default Pokegear scripts, so if you have
  1127. # changes to the Pokegear scene that you don't want overwritten, delete
  1128. # this section and simply copy over the parts below labeled
  1129. # "Birthsigns Journal" into your Pokegear scripts.
  1130. #===============================================================================
  1131. #=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
  1132. #===============================================================================
  1133. class Scene_Pokegear
  1134.  
  1135. def main
  1136. commands=[]
  1137. # OPTIONS - If you change these, you should also change update_command below.
  1138. @cmdMap=-1
  1139. @cmdPhone=-1
  1140. @cmdJukebox=-1
  1141. #===========================================================================
  1142. #Birthsigns Journal
  1143. #===========================================================================
  1144. @cmdBirthsigns=-1
  1145. commands[@cmdBirthsigns=commands.length]=_INTL("Birthsigns")
  1146. #===========================================================================
  1147. commands[@cmdMap=commands.length]=_INTL("Map")
  1148. commands[@cmdPhone=commands.length]=_INTL("Phone") if $PokemonGlobal.phoneNumbers &&
  1149. $PokemonGlobal.phoneNumbers.length>0
  1150. commands[@cmdJukebox=commands.length]=_INTL("Jukebox")
  1151.  
  1152. @viewport=Viewport.new(0,0,Graphics.width,Graphics.height)
  1153. @viewport.z=99999
  1154. @button=AnimatedBitmap.new("Graphics/Pictures/pokegearButton")
  1155. @sprites={}
  1156. @sprites["background"] = IconSprite.new(0,0)
  1157. femback=pbResolveBitmap(sprintf("Graphics/Pictures/pokegearbgf"))
  1158. if $Trainer.isFemale? && femback
  1159. @sprites["background"].setBitmap("Graphics/Pictures/pokegearbgf")
  1160. else
  1161. @sprites["background"].setBitmap("Graphics/Pictures/pokegearbg")
  1162. end
  1163. @sprites["command_window"] = Window_CommandPokemon.new(commands,160)
  1164. @sprites["command_window"].index = @menu_index
  1165. @sprites["command_window"].x = Graphics.width
  1166. @sprites["command_window"].y = 0
  1167. for i in 0...commands.length
  1168. x=118
  1169. y=196 - (commands.length*24) + (i*48)
  1170. @sprites["button#{i}"]=PokegearButton.new(x,y,commands[i],i,@viewport)
  1171. @sprites["button#{i}"].selected=(i==@sprites["command_window"].index)
  1172. @sprites["button#{i}"].update
  1173. end
  1174. Graphics.transition
  1175. loop do
  1176. Graphics.update
  1177. Input.update
  1178. update
  1179. if $scene != self
  1180. break
  1181. end
  1182. end
  1183. Graphics.freeze
  1184. pbDisposeSpriteHash(@sprites)
  1185. end
  1186.  
  1187. def update_command
  1188. if Input.trigger?(Input::B)
  1189. pbPlayCancelSE()
  1190. $scene = Scene_Map.new
  1191. return
  1192. end
  1193. if Input.trigger?(Input::C)
  1194. if @cmdMap>=0 && @sprites["command_window"].index==@cmdMap
  1195. pbPlayDecisionSE()
  1196. pbShowMap(-1,false)
  1197. end
  1198. if @cmdPhone>=0 && @sprites["command_window"].index==@cmdPhone
  1199. pbPlayDecisionSE()
  1200. pbFadeOutIn(99999) {
  1201. PokemonPhoneScene.new.start
  1202. }
  1203. end
  1204. if @cmdJukebox>=0 && @sprites["command_window"].index==@cmdJukebox
  1205. pbPlayDecisionSE()
  1206. $scene = Scene_Jukebox.new
  1207. end
  1208. #=========================================================================
  1209. #Birthsigns Journal
  1210. #=========================================================================
  1211. if @cmdBirthsigns>=0 && @sprites["command_window"].index==@cmdBirthsigns
  1212. pbPlayDecisionSE()
  1213. $scene = BirthsignJournalScene.new
  1214. end
  1215. #=========================================================================
  1216. return
  1217. end
  1218. end
  1219. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement