The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

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
 
Join Date: Sep 2012
Location: USA
Gender: Male
Nature: Careful
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
BattleScarred53's Avatar
BattleScarred53
Unhatched Egg
 
Join Date: Dec 2011
Gender: Male
Nature: Modest
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 by BattleScarred53; September 30th, 2012 at 09:55 AM.
Reply With Quote
  #3    
Old September 30th, 2012, 12:31 PM
mrsnuggles's Avatar
mrsnuggles
 
Join Date: Sep 2012
Location: USA
Gender: Male
Nature: Careful
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
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
Quote:
Originally Posted by mrsnuggles View Post
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 04:24 AM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.