Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================================================
- #
- # Birthsigns Journal - By Lucidious89
- # For -Pokémon Essentials-
- #
- #===============================================================================
- # This script is meant as an add-on to the Pokémon Birthsigns script.
- # This may cause errors if Pokémon Birthsigns is not installed.
- #===============================================================================
- # ~Installation~
- #===============================================================================
- # To install, insert a new section below PokemonBirthsigns, and paste this
- # there. This is a plug-n-play addition, and doesn't require any other
- # changes.
- #
- # Use $scene = BirthsignJournalScene.new in an event to call this script.
- #
- # This script comes in three sections - A, B, and C.
- # Section A is the Journal scene, and is the core part of this script.
- # Section B overwrites things in SpriteWindow, to guarantee text displays correctly.
- # Section C overwrites things in PScreen_Pokegear, to automatically let you
- # access the Journal scene through the Pokegear.
- #
- # You may delete Sections B & C if you have your own changes to those sections
- # that you do not want overwritten.
- #
- # Everything below is written for Pokémon Essentials v.16.1
- #===============================================================================
- #===============================================================================
- #=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
- #===============================================================================
- # Section A - Journal
- #===============================================================================
- #=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
- #===============================================================================
- class BirthsignJournalScene
- def initialize(menu_index = 0)
- @menu_index = menu_index
- end
- #===============================================================================
- #Sets the colors for all the text.
- #===============================================================================
- BASECOLOR = Color.new(248,248,248)
- SHADOWCOLOR = Color.new(0,0,0)
- #===============================================================================
- def update
- pbUpdateSpriteHash(@sprites)
- end
- #===============================================================================
- #Draws the main menu.
- #===============================================================================
- def main
- @sprites={}
- @viewport=Viewport.new(0,0,Graphics.width,Graphics.height)
- @viewport.z=99999
- #===============================================================================
- #The background image that will display while viewing the menu.
- #===============================================================================
- @sprites["bg"] = IconSprite.new(0,0)
- @sprites["bg"].setBitmap("Graphics/Pictures/Birthsigns/Other/journalbg")
- @sprites["bg"].z=255
- #===============================================================================
- #The ball image that displays in the center of the menu.
- #===============================================================================
- @sprites["ball"] = IconSprite.new(0,0)
- @sprites["ball"].setBitmap("Graphics/Pictures/Birthsigns/Other/journalball")
- @sprites["ball"].z=256
- #===============================================================================
- #The zodiac wheel graphic that acts as the menu.
- #===============================================================================
- @sprites["zodiac"] = IconSprite.new(0,0)
- if !BIRTHSIGNS_SET_2
- @sprites["zodiac"].setBitmap("Graphics/Pictures/Birthsigns/Other/journalwheel")
- else
- @sprites["zodiac"].setBitmap("Graphics/Pictures/Birthsigns/Other/journalwheel2")
- end
- @sprites["zodiac"].z=256
- #===============================================================================
- #Draws the highlight graphic off-screen; ready to be used for the menu.
- #===============================================================================
- pbHighlight
- @sprites["select"].x=+1000
- #===============================================================================
- #This is the list of choices that will appear when the journal is opened.
- #Each option corresponds to a number after "when" below.
- #The first option ('The Apprentice') corresponds to 0.
- #The last option (Exit) corresponds to 12.
- #===============================================================================
- @choices=[
- JAN_BIRTHSIGN, # The Apprentice || The Phoenix
- FEB_BIRTHSIGN, # The Companion || The Scholar
- MAR_BIRTHSIGN, # The Beacon || The Fugitive
- APR_BIRTHSIGN, # The Savage || The Aristocrat
- MAY_BIRTHSIGN, # The Prodigy || The Cleric
- JUN_BIRTHSIGN, # The Martyr || The Monk
- JUL_BIRTHSIGN, # The Maiden || The Ancestor
- AUG_BIRTHSIGN, # The Gladiator || The Specialist
- SEP_BIRTHSIGN, # The Voyager || The Assassin
- OCT_BIRTHSIGN, # The Thief || The Parent
- NOV_BIRTHSIGN, # The Glutton || The Hunter
- DEC_BIRTHSIGN, # The Wishmaker || The Eternal
- _INTL("Exit")
- ]
- #===============================================================================
- #Creates a window on the main menu for the list of options above.
- #This window is hidden, and instead the zodiac wheel is used to display options.
- #===============================================================================
- @sprites["list"] = Window_CommandPokemon.new(@choices,324)
- @sprites["list"].index = @menu_index
- @sprites["list"].height = 0
- @sprites["list"].width = 0
- #===============================================================================
- Graphics.transition
- loop do
- Graphics.update
- Input.update
- update
- if $scene != self
- break
- end
- end
- Graphics.freeze
- pbDisposeSpriteHash(@sprites)
- @viewport.dispose
- end
- def update
- pbUpdateSpriteHash(@sprites)
- update_command
- return
- end
- #===============================================================================
- #Deletes the highlight graphic & birthsign title on the main menu.
- #===============================================================================
- def disposeSelect
- @sprites["select"].dispose
- @sprites["title"].dispose
- end
- #===============================================================================
- #Deletes all graphics and text windows on an info page.
- #===============================================================================
- def disposeAll
- pbPlayCancelSE()
- pbFadeOutIn(99999) {
- Input.update
- @sprites["birthsign"].dispose
- @sprites["token"].dispose
- @sprites["display"].dispose
- @sprites["name"].dispose
- @sprites["effect"].dispose
- @sprites["Etype"].dispose
- @sprites["month"].dispose
- @sprites["desc"].dispose
- pbActivateWindow(@sprites,"list")
- }
- end
- #===============================================================================
- #Sets all the graphics and text windows on an info page.
- #===============================================================================
- def pbSetSprites
- #Sets Birthsign image.
- @sprites["birthsign"]=IconSprite.new(0,0,@viewport)
- @sprites["birthsign"].z = 258
- #Sets Token graphic.
- @sprites["token"]=IconSprite.new(448,4,@viewport)
- @sprites["token"].z = 259
- #Sets Display graphic.
- @sprites["display"]=IconSprite.new(0,0,@viewport)
- @sprites["display"].setBitmap("Graphics/Pictures/Birthsigns/Other/journalboarder")
- @sprites["display"].z = 259
- #Sets Name Window.
- @sprites["name"]=Window_UnformattedTextPokemon.newWithSize("",0,0,300,64,@viewport)
- @sprites["name"].baseColor=BASECOLOR
- @sprites["name"].shadowColor=SHADOWCOLOR
- @sprites["name"].windowskin=nil
- @sprites["name"].z = 260
- pbSetSmallFont(@sprites["name"].contents)
- #Sets Effect Window.
- @sprites["effect"]=Window_AdvancedTextPokemon.newWithSize("",-10,330,532,64,@viewport)
- @sprites["effect"].baseColor=BASECOLOR
- @sprites["effect"].shadowColor=SHADOWCOLOR
- @sprites["effect"].windowskin=nil
- @sprites["effect"].z = 260
- pbSetExtraSmallFont(@sprites["effect"].contents)
- #Sets Effect Type Window.
- @sprites["Etype"]=Window_AdvancedTextPokemon.newWithSize("",-10,298,300,64,@viewport)
- @sprites["Etype"].baseColor=BASECOLOR
- @sprites["Etype"].shadowColor=SHADOWCOLOR
- @sprites["Etype"].windowskin=nil
- @sprites["Etype"].z = 260
- pbSetExtraSmallFont(@sprites["Etype"].contents)
- #Sets Month Window.
- @sprites["month"]=Window_AdvancedTextPokemon.newWithSize("",378,298,300,64,@viewport)
- @sprites["month"].baseColor=BASECOLOR
- @sprites["month"].shadowColor=SHADOWCOLOR
- @sprites["month"].windowskin=nil
- @sprites["month"].z = 260
- pbSetExtraSmallFont(@sprites["month"].contents)
- #Sets Description Window.
- @sprites["desc"]=Window_AdvancedTextPokemon.newWithSize("",4,46,300,290,@viewport)
- @sprites["desc"].baseColor=BASECOLOR
- @sprites["desc"].shadowColor=SHADOWCOLOR
- @sprites["desc"].windowskin=nil
- @sprites["desc"].z = 260
- pbSetExtraSmallFont(@sprites["desc"].contents)
- end
- #===============================================================================
- #Draws the highlight graphic & birthsign name on the main menu.
- #===============================================================================
- def pbHighlight
- @sprites["select"] = IconSprite.new(0,0)
- @sprites["select"].setBitmap("Graphics/Pictures/Birthsigns/Other/journalselect")
- @sprites["select"].z=256
- @sprites["title"]=Window_UnformattedTextPokemon.newWithSize("",0,159,300,64,@viewport)
- @sprites["title"].baseColor=BASECOLOR
- @sprites["title"].shadowColor=SHADOWCOLOR
- @sprites["title"].windowskin=nil
- end
- #===============================================================================
- #Pressing cancel on the main menu exits from the journal.
- #===============================================================================
- def update_command
- if Input.trigger?(Input::B)
- pbPlayCancelSE()
- #======================================================================
- #Swap the comment tag between the two "$scene" lines to choose how
- #you want to exit the Journal. First one exits back to the game world,
- #while the second exits back to the Pokegear scene.
- #======================================================================
- $scene = Scene_Map.new
- #$scene = Scene_Pokegear.new
- #======================================================================
- return
- end
- #===============================================================================
- # Main Menu Zodiac Wheel.
- #===============================================================================
- #Highlights the selected birthsign and brings up its name.
- #Each number after "when" corresponds to an item on the list found on the
- #main menu.
- #The following is drawn whenever one of those items are highlighted by the
- #cursor (hidden from view).
- case @sprites["list"].index
- #===============================================================================
- # Highlights January's token.
- #===============================================================================
- when 0
- disposeSelect
- pbHighlight
- @sprites["select"].x=+226
- @sprites["select"].y=+1
- @sprites["title"].text = JAN_BIRTHSIGN
- @sprites["title"].x=+163 if !BIRTHSIGNS_SET_2
- @sprites["title"].x=+178 if BIRTHSIGNS_SET_2
- #===============================================================================
- # Highlights February's token.
- #===============================================================================
- when 1
- disposeSelect
- pbHighlight
- @sprites["select"].x=+305
- @sprites["select"].y=+26
- @sprites["title"].text = FEB_BIRTHSIGN
- @sprites["title"].x=+169 if !BIRTHSIGNS_SET_2
- @sprites["title"].x=+178 if BIRTHSIGNS_SET_2
- #===============================================================================
- # Highlights March's token.
- #===============================================================================
- when 2
- disposeSelect
- pbHighlight
- @sprites["select"].x=+366
- @sprites["select"].y=+85
- @sprites["title"].text = MAR_BIRTHSIGN
- @sprites["title"].x=+181 if !BIRTHSIGNS_SET_2
- @sprites["title"].x=+173 if BIRTHSIGNS_SET_2
- #===============================================================================
- # Highlights April's token.
- #===============================================================================
- when 3
- disposeSelect
- pbHighlight
- @sprites["select"].x=+387
- @sprites["select"].y=+164
- @sprites["title"].text = APR_BIRTHSIGN
- @sprites["title"].x=+181 if !BIRTHSIGNS_SET_2
- @sprites["title"].x=+163 if BIRTHSIGNS_SET_2
- #===============================================================================
- # Highlights May's token.
- #===============================================================================
- when 4
- disposeSelect
- pbHighlight
- @sprites["select"].x=+366
- @sprites["select"].y=+243
- @sprites["title"].text = MAY_BIRTHSIGN
- @sprites["title"].x=+179 if !BIRTHSIGNS_SET_2
- @sprites["title"].x=+185 if BIRTHSIGNS_SET_2
- #===============================================================================
- # Highlights June's token.
- #===============================================================================
- when 5
- disposeSelect
- pbHighlight
- @sprites["select"].x=+305
- @sprites["select"].y=+302
- @sprites["title"].text = JUN_BIRTHSIGN
- @sprites["title"].x=+181 if !BIRTHSIGNS_SET_2
- @sprites["title"].x=+191 if BIRTHSIGNS_SET_2
- #===============================================================================
- # Highlights July's token.
- #===============================================================================
- when 6
- disposeSelect
- pbHighlight
- @sprites["select"].x=+226
- @sprites["select"].y=+327
- @sprites["title"].text = JUL_BIRTHSIGN
- @sprites["title"].x=+183 if !BIRTHSIGNS_SET_2
- @sprites["title"].x=+170 if BIRTHSIGNS_SET_2
- #===============================================================================
- # Highlights August's token.
- #===============================================================================
- when 7
- disposeSelect
- pbHighlight
- @sprites["select"].x=+147
- @sprites["select"].y=+302
- @sprites["title"].text = AUG_BIRTHSIGN
- @sprites["title"].x=+171 if !BIRTHSIGNS_SET_2
- @sprites["title"].x=+165 if BIRTHSIGNS_SET_2
- #===============================================================================
- # Highlights September's token.
- #===============================================================================
- when 8
- disposeSelect
- pbHighlight
- @sprites["select"].x=+86
- @sprites["select"].y=+243
- @sprites["title"].text = SEP_BIRTHSIGN
- @sprites["title"].x=+179 if !BIRTHSIGNS_SET_2
- @sprites["title"].x=+171 if BIRTHSIGNS_SET_2
- #===============================================================================
- # Highlights October's token.
- #===============================================================================
- when 9
- disposeSelect
- pbHighlight
- @sprites["select"].x=+65
- @sprites["select"].y=+164
- @sprites["title"].text = OCT_BIRTHSIGN
- @sprites["title"].x=+189 if !BIRTHSIGNS_SET_2
- @sprites["title"].x=+180 if BIRTHSIGNS_SET_2
- #===============================================================================
- # Highlights November's token.
- #===============================================================================
- when 10
- disposeSelect
- pbHighlight
- @sprites["select"].x=+86
- @sprites["select"].y=+85
- @sprites["title"].text = NOV_BIRTHSIGN
- @sprites["title"].x=+179 if !BIRTHSIGNS_SET_2
- @sprites["title"].x=+180 if BIRTHSIGNS_SET_2
- #===============================================================================
- # Highlights December's token.
- #===============================================================================
- when 11
- disposeSelect
- pbHighlight
- @sprites["select"].x=+147
- @sprites["select"].y=+26
- @sprites["title"].text = DEC_BIRTHSIGN
- @sprites["title"].x=+169 if !BIRTHSIGNS_SET_2
- @sprites["title"].x=+178 if BIRTHSIGNS_SET_2
- #===============================================================================
- # Highlights the Exit button.
- #===============================================================================
- when 12
- disposeSelect
- pbHighlight
- @sprites["select"].x=+229
- @sprites["select"].y=+161
- @sprites["title"].x=+223
- @sprites["title"].text=(_INTL("Exit"))
- end
- #===============================================================================
- #Birthsign Info Pages - Set 1.
- #===============================================================================
- #Opens info pages for Birthsign Set 1.
- #Each number after "when" corresponds to an item on the list found on the
- #main menu.
- #The following is drawn whenever one of those items are selected with the
- #confirm button.
- if Input.trigger?(Input::C) && !BIRTHSIGNS_SET_2
- case @sprites["list"].index
- #===============================================================================
- # The Apprentice
- #===============================================================================
- when 0
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign01")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token01")
- @sprites["name"].x=+169
- @sprites["name"].text = JAN_BIRTHSIGN
- @sprites["effect"].text=(_INTL("El usuario comienza con el virus Pokerus curada; ganando EV's dobles de la batalla."))
- @sprites["Etype"].text=(_INTL("Efecto: Passivo"))
- @sprites["month"].text=(_INTL("Mes: Enero"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Companion
- #===============================================================================
- when 1
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign02")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token02")
- @sprites["name"].x=+169
- @sprites["name"].text = FEB_BIRTHSIGN
- @sprites["effect"].text=(_INTL("El usuario comienza con el máximo afecto por su entrenador."))
- @sprites["Etype"].text=(_INTL("Efecto: Pasivo"))
- @sprites["month"].text=(_INTL("Mes: Febrero"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Beacon
- #===============================================================================
- when 2
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign03")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token03")
- @sprites["name"].x=+187
- @sprites["name"].text = MAR_BIRTHSIGN
- @sprites["effect"].text=(_INTL("El usuario tiene acceso a la habilidad del 'Destello' en el campo sin necesidad de movimiento."))
- @sprites["Etype"].text=(_INTL("Efecto: Habilidad"))
- @sprites["month"].text=(_INTL("Mes: Marzo"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Savage
- #===============================================================================
- when 3
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign04")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token04")
- @sprites["name"].x=+187
- @sprites["name"].text = APR_BIRTHSIGN
- @sprites["effect"].text=(_INTL("El usuario comienza con IVs máximos en ataque, Sp.Atk, y la velocidad; pero el HP IV es 0."))
- @sprites["Etype"].text=(_INTL("Efecto: Pasivo"))
- @sprites["month"].text=(_INTL("Mes: Abril"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Prodigy
- #===============================================================================
- when 4
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign05")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token05")
- @sprites["name"].x=+185
- @sprites["name"].text = MAY_BIRTHSIGN
- @sprites["effect"].text=(_INTL("El usuario siempre tendrá su habilidad oculta, si tiene alguna disponible."))
- @sprites["Etype"].text=(_INTL("Efecto: Pasivo"))
- @sprites["month"].text=(_INTL("Mes: Mayo"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Martyr
- #===============================================================================
- when 5
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign06")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token06")
- @sprites["name"].x=+187
- @sprites["name"].text = JUN_BIRTHSIGN
- @sprites["effect"].text=(_INTL("El usuario tiene acceso a la habilidad 'Amortiguador' en el campo sin necesidad de movimiento."))
- @sprites["Etype"].text=(_INTL("Efecto: Habilidad"))
- @sprites["month"].text=(_INTL("Mes: Junio"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Maiden
- #===============================================================================
- when 6
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign07")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token07")
- @sprites["name"].x=+189
- @sprites["name"].text = JUL_BIRTHSIGN
- @sprites["effect"].text=(_INTL("El usuario siempre será hembra, si es posible."))
- @sprites["Etype"].text=(_INTL("Efecto: Pasivo"))
- @sprites["month"].text=(_INTL("Mes: Julio"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Gladiator
- #===============================================================================
- when 7
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign08")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token08")
- @sprites["name"].x=+177
- @sprites["name"].text = AUG_BIRTHSIGN
- @sprites["effect"].text=(_INTL("El usuario comienza con 100 EV tanto en ataque como en Sp.Atk."))
- @sprites["Etype"].text=(_INTL("Efecto: Pasivo"))
- @sprites["month"].text=(_INTL("Mes: Agosto"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Voyager
- #===============================================================================
- when 8
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign09")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token09")
- @sprites["name"].x=+185
- @sprites["name"].text = SEP_BIRTHSIGN
- @sprites["effect"].text=(_INTL("El usuario tiene acceso a la habilidad 'teletransporte' en el campo sin necesidad de movimiento."))
- @sprites["Etype"].text=(_INTL("Efecto: Habilidad"))
- @sprites["month"].text=(_INTL("Mes: Septiembre"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Thief
- #===============================================================================
- when 9
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign10")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token10")
- @sprites["name"].x=+195
- @sprites["name"].text = OCT_BIRTHSIGN
- @sprites["effect"].text=(_INTL("El usuario comienza con 252 EVs en velocidad."))
- @sprites["Etype"].text=(_INTL("Efecto: Pasivo"))
- @sprites["month"].text=(_INTL("Mes: Octubre"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Glutton
- #===============================================================================
- when 10
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign11")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token11")
- @sprites["name"].x=+185
- @sprites["name"].text = NOV_BIRTHSIGN
- @sprites["effect"].text=(_INTL("El usuario comienza con IVs máximos de Defensa, Sp.Def, y HP; pero la velocidad es 0 IV."))
- @sprites["Etype"].text=(_INTL("Efecto: Pasivo"))
- @sprites["month"].text=(_INTL("Mes: Noviembre"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Wishmaker
- #===============================================================================
- when 11
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/birthsign12")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/token12")
- @sprites["name"].x=+175
- @sprites["name"].text = DEC_BIRTHSIGN
- @sprites["effect"].text=(_INTL("El usuario siempre será shiny, si es posible."))
- @sprites["Etype"].text=(_INTL("Efecto: Pasivo"))
- @sprites["month"].text=(_INTL("Mes: Diciembre"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- # Exit Option.
- #===============================================================================
- when 12
- pbPlayDecisionSE()
- $scene = Scene_Pokegear.new
- end
- return
- end
- #===============================================================================
- #Birthsign Info Pages - Set 2.
- #===============================================================================
- #Opens info pages for Birthsign Set 2.
- #Each number after "when" corresponds to an item on the list found on the
- #main menu.
- #The following is drawn whenever one of those items are selected with the
- #confirm button.
- if Input.trigger?(Input::C) && BIRTHSIGNS_SET_2
- case @sprites["list"].index
- #===============================================================================
- # The Phoenix
- #===============================================================================
- when 0
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign01")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token01")
- @sprites["name"].x=+183
- @sprites["name"].text = JAN_BIRTHSIGN
- @sprites["effect"].text=(_INTL("The user has access to the 'Rebirth' skill; allowing it to restore itself from fainting."))
- @sprites["Etype"].text=(_INTL("Effect: Skill"))
- @sprites["month"].text=(_INTL("Month: January"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Scholar
- #===============================================================================
- when 1
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign02")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token02")
- @sprites["name"].x=+185
- @sprites["name"].text = FEB_BIRTHSIGN
- @sprites["effect"].text=(_INTL("The user gains 20% more experience from battles. This stacks with similar effects."))
- @sprites["Etype"].text=(_INTL("Effect: Passive"))
- @sprites["month"].text=(_INTL("Month: February"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Fugitive
- #===============================================================================
- when 2
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign03")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token03")
- @sprites["name"].x=+181
- @sprites["name"].text = MAR_BIRTHSIGN
- @sprites["effect"].text=(_INTL("The user has access to the 'Escape' skill; allowing it to flee from any dungeon."))
- @sprites["Etype"].text=(_INTL("Effect: Skill"))
- @sprites["month"].text=(_INTL("Month: March"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Aristocrat
- #===============================================================================
- when 3
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign04")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token04")
- @sprites["name"].x=+171
- @sprites["name"].text = APR_BIRTHSIGN
- @sprites["effect"].text=(_INTL("The user gains 2x prize money while leading. This stacks with other party effects."))
- @sprites["Etype"].text=(_INTL("Effect: Passive"))
- @sprites["month"].text=(_INTL("Month: April"))
- @sprites["desc"].text=(_INTL(
- "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’."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Cleric
- #===============================================================================
- when 4
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign05")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token05")
- @sprites["name"].x=+191
- @sprites["name"].text = MAY_BIRTHSIGN
- @sprites["effect"].text=(_INTL("The user has access to the 'Cure' skill; allowing it to heal its own status conditions."))
- @sprites["Etype"].text=(_INTL("Effect: Skill"))
- @sprites["month"].text=(_INTL("Month: May"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Monk
- #===============================================================================
- when 5
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign06")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token06")
- @sprites["name"].x=+197
- @sprites["name"].text = JUN_BIRTHSIGN
- @sprites["effect"].text=(_INTL("The user has access to the 'Trance' skill; allowing it to relearn any forgotten moves."))
- @sprites["Etype"].text=(_INTL("Effect: Skill"))
- @sprites["month"].text=(_INTL("Month: June"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Ancestor
- #===============================================================================
- when 6
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign07")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token07")
- @sprites["name"].x=+179
- @sprites["name"].text = JUL_BIRTHSIGN
- @sprites["effect"].text=(_INTL("The user yields eggs that hatch 2x as fast. Both parents can stack this effect."))
- @sprites["Etype"].text=(_INTL("Effect: Passive"))
- @sprites["month"].text=(_INTL("Month: July"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Specialist
- #===============================================================================
- when 7
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign08")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token08")
- @sprites["name"].x=+173
- @sprites["name"].text = AUG_BIRTHSIGN
- @sprites["effect"].text=(_INTL("The user has access to the 'Re-roll' skill; allowing it to roll for a new Hidden Power."))
- @sprites["Etype"].text=(_INTL("Effect: Skill"))
- @sprites["month"].text=(_INTL("Month: August"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Assassin
- #===============================================================================
- when 8
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign09")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token09")
- @sprites["name"].x=+181
- @sprites["name"].text = SEP_BIRTHSIGN
- @sprites["effect"].text=(_INTL("The user may sneak up on unsuspecting wild Pokémon to strike while they're asleep."))
- @sprites["Etype"].text=(_INTL("Effect: Passive"))
- @sprites["month"].text=(_INTL("Month: September"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Parent
- #===============================================================================
- when 9
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign10")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token10")
- @sprites["name"].x=+187
- @sprites["name"].text = OCT_BIRTHSIGN
- @sprites["effect"].text=(_INTL("The user has access to the 'Incubate' skill; hatching an egg with under 1,000 steps."))
- @sprites["Etype"].text=(_INTL("Effect: Skill"))
- @sprites["month"].text=(_INTL("Month: October"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Hunter
- #===============================================================================
- when 10
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign11")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token11")
- @sprites["name"].x=+187
- @sprites["name"].text = NOV_BIRTHSIGN
- @sprites["effect"].text=(_INTL("The user has keen tracking skills; boosting capture rates by 20% when leading."))
- @sprites["Etype"].text=(_INTL("Effect: Passive"))
- @sprites["month"].text=(_INTL("Month: November"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # The Eternal
- #===============================================================================
- when 11
- pbSetSprites
- pbDeactivateWindows(@sprites)
- @sprites["birthsign"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/birthsign12")
- @sprites["token"].setBitmap("Graphics/Pictures/Birthsigns/Birthsigns2/token12")
- @sprites["name"].x=+183
- @sprites["name"].text = DEC_BIRTHSIGN
- @sprites["effect"].text=(_INTL("The user has access to the 'Reincarnate' skill. Start over under a new birthsign!"))
- @sprites["Etype"].text=(_INTL("Effect: Skill"))
- @sprites["month"].text=(_INTL("Month: December"))
- @sprites["desc"].text=(_INTL(
- "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."))
- pbFadeInAndShow(@sprites)
- loop do
- Input.update
- Graphics.update
- if Input.trigger?(Input::B) || Input.trigger?(Input::C)
- disposeAll
- return
- end
- update
- end
- #===============================================================================
- # Exit Option.
- #===============================================================================
- when 12
- pbPlayDecisionSE()
- $scene = Scene_Pokegear.new
- end
- return
- end
- end
- end
- #===============================================================================
- #=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
- #===============================================================================
- # Section B - Text Size
- #===============================================================================
- # This section overwrites the system font section found in SpriteWindow.
- # Adds an ""Extra Small Font" that is used by the Birthsigns Journal.
- #===============================================================================
- #=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
- #===============================================================================
- def pbSetSystemFont(bitmap)
- fontname=MessageConfig.pbGetSystemFontName()
- bitmap.font.name=fontname
- if fontname=="Pokemon FireLeaf" || fontname=="Power Red and Green"
- bitmap.font.size=29
- elsif fontname=="Pokemon Emerald Small" || fontname=="Power Green Small"
- bitmap.font.size=25
- #=============================================================================
- # Used by Birthsigns Journal
- #=============================================================================
- elsif fontname=="Power Clear"
- bitmap.font.size=18
- #=============================================================================
- else
- bitmap.font.size=31
- end
- end
- # Gets the name of the system small font.
- def pbSmallFontName()
- return MessageConfig.pbTryFonts("Power Green Small","Pokemon Emerald Small",
- "Arial Narrow","Arial")
- end
- # Gets the name of the system narrow font.
- def pbNarrowFontName()
- return MessageConfig.pbTryFonts("Power Green Narrow","Pokemon Emerald Narrow",
- "Arial Narrow","Arial")
- end
- #===============================================================================
- # Used by Birthsigns Journal
- #===============================================================================
- # Gets the name of the system small font.
- def pbExtraSmallFontName()
- return MessageConfig.pbTryFonts("Power Clear",
- "Arial Narrow","Arial")
- end
- #==========================================================================
- # Sets a bitmap's font to the system small font.
- def pbSetSmallFont(bitmap)
- bitmap.font.name=pbSmallFontName()
- bitmap.font.size=25
- end
- # Sets a bitmap's font to the system narrow font.
- def pbSetNarrowFont(bitmap)
- bitmap.font.name=pbNarrowFontName()
- bitmap.font.size=31
- end
- #===============================================================================
- # Used by Birthsigns Journal
- #===============================================================================
- # Sets a bitmap's font to the system extra small font.
- def pbSetExtraSmallFont(bitmap)
- bitmap.font.name=pbExtraSmallFontName()
- bitmap.font.size=18
- end
- #===============================================================================
- #===============================================================================
- #=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
- #===============================================================================
- # Section C - Pokegear Installation
- #===============================================================================
- # The following section overwrites sections in PScreen_Pokegear to have
- # the Birthsigns Journal automatically accessible via the Pokegear.
- #
- # If you do not want the Birthsigns Journal to appear in the Pokegear, you
- # may delete this section.
- #
- # This section will OVERWRITE the default Pokegear scripts, so if you have
- # changes to the Pokegear scene that you don't want overwritten, delete
- # this section and simply copy over the parts below labeled
- # "Birthsigns Journal" into your Pokegear scripts.
- #===============================================================================
- #=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
- #===============================================================================
- class Scene_Pokegear
- def main
- commands=[]
- # OPTIONS - If you change these, you should also change update_command below.
- @cmdMap=-1
- @cmdPhone=-1
- @cmdJukebox=-1
- #===========================================================================
- #Birthsigns Journal
- #===========================================================================
- @cmdBirthsigns=-1
- commands[@cmdBirthsigns=commands.length]=_INTL("Birthsigns")
- #===========================================================================
- commands[@cmdMap=commands.length]=_INTL("Map")
- commands[@cmdPhone=commands.length]=_INTL("Phone") if $PokemonGlobal.phoneNumbers &&
- $PokemonGlobal.phoneNumbers.length>0
- commands[@cmdJukebox=commands.length]=_INTL("Jukebox")
- @viewport=Viewport.new(0,0,Graphics.width,Graphics.height)
- @viewport.z=99999
- @button=AnimatedBitmap.new("Graphics/Pictures/pokegearButton")
- @sprites={}
- @sprites["background"] = IconSprite.new(0,0)
- femback=pbResolveBitmap(sprintf("Graphics/Pictures/pokegearbgf"))
- if $Trainer.isFemale? && femback
- @sprites["background"].setBitmap("Graphics/Pictures/pokegearbgf")
- else
- @sprites["background"].setBitmap("Graphics/Pictures/pokegearbg")
- end
- @sprites["command_window"] = Window_CommandPokemon.new(commands,160)
- @sprites["command_window"].index = @menu_index
- @sprites["command_window"].x = Graphics.width
- @sprites["command_window"].y = 0
- for i in 0...commands.length
- x=118
- y=196 - (commands.length*24) + (i*48)
- @sprites["button#{i}"]=PokegearButton.new(x,y,commands[i],i,@viewport)
- @sprites["button#{i}"].selected=(i==@sprites["command_window"].index)
- @sprites["button#{i}"].update
- end
- Graphics.transition
- loop do
- Graphics.update
- Input.update
- update
- if $scene != self
- break
- end
- end
- Graphics.freeze
- pbDisposeSpriteHash(@sprites)
- end
- def update_command
- if Input.trigger?(Input::B)
- pbPlayCancelSE()
- $scene = Scene_Map.new
- return
- end
- if Input.trigger?(Input::C)
- if @cmdMap>=0 && @sprites["command_window"].index==@cmdMap
- pbPlayDecisionSE()
- pbShowMap(-1,false)
- end
- if @cmdPhone>=0 && @sprites["command_window"].index==@cmdPhone
- pbPlayDecisionSE()
- pbFadeOutIn(99999) {
- PokemonPhoneScene.new.start
- }
- end
- if @cmdJukebox>=0 && @sprites["command_window"].index==@cmdJukebox
- pbPlayDecisionSE()
- $scene = Scene_Jukebox.new
- end
- #=========================================================================
- #Birthsigns Journal
- #=========================================================================
- if @cmdBirthsigns>=0 && @sprites["command_window"].index==@cmdBirthsigns
- pbPlayDecisionSE()
- $scene = BirthsignJournalScene.new
- end
- #=========================================================================
- return
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement