• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
    11
    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