• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Scottie, Todd, Serena, Kris - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Above Main script

  • 9
    Posts
    12
    Years
    • Seen Dec 28, 2016
    I know this is a total noob question but, when I'm adding in a script what does it mean by above main? I'm trying to put this script in






    #===============================================================================
    # * Show Species Introdution - by FL (Credits will be apreciated)
    #===============================================================================
    #
    # This script is for Pokémon Essentials. It shows a picture with the pokémon
    # species in a border, show a message with the name and kind, play it cry and
    # mark it as seen in pokédex. Good to make the starter selection event.
    #
    #===============================================================================
    #
    # To this script works, put it above main.
    #
    # To call it, use showSpeciesIntro(specie,complement) where the specie is
    # the species number and complement is an optional string complement (like
    # "f" or "_3") to show other sprites like the female one or the other
    # forms ones.
    # Ex: 'showSpeciesIntro(4)' shows Charmander,
    # 'showSpeciesIntro(PBSpecies::CHIKORITA)' shows Chikorita and
    # 'showSpeciesIntro(422,"_1")' shows Shellos in East Sea form.
    #
    #===============================================================================

    def showSpeciesIntro(specie,complement="")
    name=PBSpecies.getName(specie)
    kind=pbGetMessage(MessageTypes::Kinds,specie)
    # Comment the below line so it won't show the species on pokédex as seen.
    $Trainer.seen[specie]=true
    battlername=sprintf("Graphics/Battlers/%03d%s",specie,complement)
    bitmap=pbResolveBitmap(battlername)
    pbPlayCry(specie)
    if bitmap # to prevent crashes
    iconwindow=PictureWindow.new(bitmap)
    iconwindow.x=(Graphics.width/2)-(iconwindow.width/2)
    iconwindow.y=((Graphics.height-96)/2)-(iconwindow.height/2)
    Kernel.pbMessage(_INTL("{1}. {2} Pokémon.",name,kind))
    iconwindow.dispose
    end
    end











    But I'm unsure exactly where to put it as I've put it in the main script base and in the one directly above it but it fails both times. Thanks in advance for the help!
     
    In RPG Maker XP, press F11. The Script Editor pops up. On the left is a list of script sections, and the one at the bottom is called "Main". Any script you want in your game must appear in a script section above this one.

    You can right-click in that list to make a new script section.

    As for the script not working, you can take that up with FL by posting in the resource thread where you found it.
     
    In RPG Maker XP, press F11. The Script Editor pops up. On the left is a list of script sections, and the one at the bottom is called "Main". Any script you want in your game must appear in a script section above this one.

    You can right-click in that list to make a new script section.

    As for the script not working, you can take that up with FL by posting in the resource thread where you found it.

    Thanks man I got it all sorted out!
     
    Back
    Top