The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Register New Account FAQ/Rules Chat 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  
Unread September 30th, 2012, 07:11 AM
mrsnuggles's Avatar
mrsnuggles
Unhatched Egg
 
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  
Unread September 30th, 2012, 05:49 PM
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 05:55 PM.
Reply With Quote
  #3  
Unread September 30th, 2012, 08:31 PM
mrsnuggles's Avatar
mrsnuggles
Unhatched Egg
 
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  
Unread October 7th, 2012, 05:24 PM
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

Forum Jump


All times are UTC. The time now is 01:12 PM.


Style by Perdition Haze, artwork by Sa-Dui.
Like our Facebook Page Follow us on TwitterMessage Board Statistics | © 2002 - 2013 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2013 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 posts belong to the user.