• 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?".
  • Forum moderator applications are now open! Click here for details.
  • 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
11
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
 
5
Posts
12
Years
  • Seen Apr 5, 2013
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:
54
Posts
11
Years
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
 

FL

Pokémon Island Creator
2,434
Posts
13
Years
  • Seen yesterday
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