• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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.

Syntax error with an event's script command

Tigerfang98

Elite 4
  • 44
    Posts
    12
    Years
    • Seen Aug 28, 2017
    Can somebody help me with the pokegear? After battling a trainer with a phone rematch, this error immediately comes up. The script I used is also attached.
     
    The error tells you what to do... Lines cannot start with a "(".
     
    You get this error because when You write a script, called via event, you must ALWAYS put code signs (like brackets, equal and some others) in the same line of the function.
    Your code should to be:

    pbPhoneRegisterBattle(_I(
    "\Hey, I'm impressed
    with you. Hand over
    your Pokégear."),get_character(
    0,PBTrainers::HIKER,"John",0)
     
    I tried that. It doesn't work. I think it has something to do with the size of the text window, but don't know how to change it.
     
    No, that's the only syntax error you've got, that lines can't start with an open parenthetical. If there were something else wrong with that line, like you using a string where the function needs a number, it wouldn't be called a syntax error.
     
    You can use extendtext which is located in the main folder, it makes your text box bigger.
     
    Man, this is Pokemon Essentials basic knowledge.

    If you open the main folder, which contains Game.exe, Game.ini and some others, there is a executable file called extendtext.exe: open it and wait for processing completion. Then, open the game and write your script into larger window.
     
    Back
    Top