Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Reload this Page [Question] Wild event battle

Notices
For all updates, view the main page.

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.



Reply
 
Thread Tools
  #1    
Old September 29th, 2012 (11:11 PM).
mrsnuggles's Avatar
mrsnuggles mrsnuggles is offline
 
Join Date: Sep 2012
Location: USA
Gender: Male
Nature: Careful
Posts: 54
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
Reply With Quote
  #2    
Old September 30th, 2012 (09:49 AM). Edited September 30th, 2012 by BattleScarred53.
BattleScarred53's Avatar
BattleScarred53 BattleScarred53 is offline
 
Join Date: Dec 2011
Gender: Male
Nature: Modest
Posts: 5
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.
Reply With Quote
  #3    
Old September 30th, 2012 (12:31 PM).
mrsnuggles's Avatar
mrsnuggles mrsnuggles is offline
 
Join Date: Sep 2012
Location: USA
Gender: Male
Nature: Careful
Posts: 54
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
Reply With Quote
  #4    
Old October 7th, 2012 (09:24 AM).
FL's Avatar
FL FL is offline
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
Posts: 1,439
Quote originally posted by mrsnuggles:
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".

Quote originally posted by Essentials Wikia:
"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.
__________________
Reply With Quote
Reply
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC -8. The time now is 11:45 AM.