• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • 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.

Wild event battle

  • 54
    Posts
    12
    Years
    I am trying to make an event where you are in a forest & get attacked by a beedrill but when the battle tries to initiate I get this error

    The options are move animation & always on top
    the trigger is player touch
    autonomous movement
    type approach
    speed fastest
    Freq high
    ---------------------------
    Pokemon Essentials
    ---------------------------
    Exception: RuntimeError

    Message: Script error within event 1, map 11 (The Great Forest):

    Exception: SyntaxError

    Message: (eval):2:in `pbExecuteScript'compile error
    (eval):2: syntax error

    ***Full script:

    pbWildBattle(
    PBSpecies::BEEDRILL,7,result,false,)




    Interpreter:276:in `pbExecuteScript'

    Interpreter:1599:in `command_355'

    Interpreter:494:in `execute_command'

    Interpreter:193:in `update'

    Interpreter:106:in `loop'

    Interpreter:198:in `update'

    Scene_Map:103:in `update'

    Scene_Map:101:in `loop'

    Scene_Map:114:in `update'

    Scene_Map:68:in `main'




    another question how can I if at at change the event so that instead of the sprite roaming around until we make contact that when i step on the event square i cant move & the Beedrill sprite charges me initiating the battle.


    thanks in advance
     
    Well, the problem I see is this:
    pbWildBattle(
    PBSpecies::BEEDRILL,7,result,false,)

    Change it to:
    pbWildBattle(PBSpecies::BEEDRILL,7,10,false)

    If that works, and it should, then you're set.

    As for the other question, the movement of the event should be set to fixed, and in the activation event, it should have

    @>[BEEDRILL] Set Move Route:
    >Move toward player
    >Move toward player
    >Move toward player
    >Move toward player
    >Move toward player
    >Move toward player

    Also, the Ignore if can't move should be checked.
     
    Last edited:
    yeah i figure the move route part but because the sprite starts at the event square how would i activate the event also why put the 10 in the result slot for the script
     
    yeah i figure the move route part but because the sprite starts at the event square how would i activate the event also why put the 10 in the result slot for the script
    Put the event as "Event Touch".

    Essentials Wikia said:
    "result" is a Global Variable number in which the outcome of the battle will be recorded (1=won, 2=lost, 3=run, 4=caught).
    So if this is 10, the result number will be recorded in variable 10.
     
    Back
    Top