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

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 March 10th, 2013 (09:14 PM). Edited March 10th, 2013 by Yusshin.
Yusshin's Avatar
Yusshin Yusshin is offline
♪ Yggdrasil ♪
 
Join Date: Jul 2009
Location: Quebec, Canada
Age: 22
Nature: Brave
Posts: 2,424
Three problems, spoiler'd.

Dark Rooms:

Spoiler:
For some reason, my map Professor Oak's Lab is very dark inside. I have no events tinting the screen, and it's the only house that this happens in (I have two more that are "brighter")

Do windows affect the room's brightness? Why is it so dark?


Encounters *Major Issue*

Spoiler:
This is what I have written in encounters.txt:

Code:
######################
003
25,25,10
Land
LILLIPUP,2,4
LILLIPUP,2,4
LILLIPUP,2,4
LILLIPUP,2,4
RATTATA,2,4
STARLY,2,4
STARLY,2,4
LandDay
STARLY,2,6
STARLY,2,6
WURMPLE,2,4
WURMPLE,2,4
WURMPLE,2,4
PATRAT,2,4
PATRAT,2,4
PATRAT,2,4
PIDGEY,2,4
SPEAROW,2,4
LandNight
Poochyena,2,6
RATTATA,2,5
RATTATA,2,5
RATTATA,2,5
SEEDOT,2,4
SEEDOT,2,4
HOOTHOOT,2,5
HOOTHOOT,2,5
HOOTHOOT,2,5
HOOTHOOT,2,5
LandMorning
PIDGEY,2,5
PIDGEY,2,5
PIDGEY,2,5
PIDGEY,2,5
CATERPIE,2,4
WEEDLE,2,4
WEEDLE,2,4
I followed the format on the Wiki and in the pre-existing encounters.txt file (from the example "game")

Yet, I get an error that reads more or less "Error on line 492, expected Pokemon type, instead found "LandDay." Error may be due to not enough Pokemon entries."

Yet I have a lot of entries - more than some example ones, which function properly without errors - so I don't understand why it's erroring.


Map Titles

Spoiler:
How do I get the drop-down name of the map I'm on to activate? It's in the demo, and I think there's a .txt, but I don't know how to format it. There's a mix of map names and I'm not sure how to work it.


Searched the boards and Wiki for these, but sorry if I missed'em :\
__________________


Polaret | Fourette | Ecuret | Axew | Zorua | Nanette [Shiny]
"My scar makes me sassy, child!"
The Big Bang Theory Fan Club - Click To Join!
The French Club
Reply With Quote
  #2    
Old March 10th, 2013 (09:53 PM).
Rayd12smitty's Avatar
Rayd12smitty Rayd12smitty is offline
Shadow Maker
 
Join Date: Dec 2011
Gender: Male
Posts: 642
I believe I have 3 answers for you.

1) check the maps metadata you might have it set as an outside map which would cause it to get dark at night

2) you are correct in a way. You need to have the exact number of entries as it says on the wiki for that encounter type. You can't just put in a random amount of entries

3) you need to open the editor and edit the maps metadata. There is an option for it
__________________
Reply With Quote
  #3    
Old March 10th, 2013 (10:37 PM).
Yusshin's Avatar
Yusshin Yusshin is offline
♪ Yggdrasil ♪
 
Join Date: Jul 2009
Location: Quebec, Canada
Age: 22
Nature: Brave
Posts: 2,424
I looked for the option but couldn't find it. What's its name in the Debug?

Also, a new issue. I put this into a Script Call (Event) to get 3x Potions:

Kernel.pbReceiveItem(PBItems::POTION,3)

But it gives me a syntax error saying that the ( shouldn't be there - that it should be at the end; however, that's right from the Wiki, and it should work :( confused why it's erroring.
__________________


Polaret | Fourette | Ecuret | Axew | Zorua | Nanette [Shiny]
"My scar makes me sassy, child!"
The Big Bang Theory Fan Club - Click To Join!
The French Club
Reply With Quote
  #4    
Old March 11th, 2013 (08:41 AM).
Maruno's Avatar
Maruno Maruno is online now
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 3,964
1. Check the metadata. Only Outdoor maps have day/night shading.

3. Check the metadata. Only maps that ShowArea will show the location signpost.

Quote originally posted by Yusshin:
I looked for the option but couldn't find it. What's its name in the Debug?

Also, a new issue. I put this into a Script Call (Event) to get 3x Potions:

Kernel.pbReceiveItem(PBItems::POTION,3)

But it gives me a syntax error saying that the ( shouldn't be there - that it should be at the end; however, that's right from the Wiki, and it should work :( confused why it's erroring.
That's not what you've typed into the event's script box, though. What you've typed is this:
Code:
Kernel.pbReceiveItem
(PBItems::POTION,3)
It should look like this:
Code:
Kernel.pbReceiveItem(
PBItems::POTION,3)
You know, with the open bracket at the end of the previous line, like the error message tells you to do. It's a common error.
__________________
Reply With Quote
  #5    
Old March 11th, 2013 (09:35 AM). Edited March 11th, 2013 by Yusshin.
Yusshin's Avatar
Yusshin Yusshin is offline
♪ Yggdrasil ♪
 
Join Date: Jul 2009
Location: Quebec, Canada
Age: 22
Nature: Brave
Posts: 2,424
OK, that worked :) I had just copy/pasted what was in the Wiki, and the Essentials demo game didn't have a "give item" example (or I couldn't find it).

Thanks :0 everything works now!
__________________


Polaret | Fourette | Ecuret | Axew | Zorua | Nanette [Shiny]
"My scar makes me sassy, child!"
The Big Bang Theory Fan Club - Click To Join!
The French Club
Reply With Quote
  #6    
Old March 11th, 2013 (09:41 AM).
Maruno's Avatar
Maruno Maruno is online now
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 3,964
Well, giving items is generally done in a Conditional Branch, which allows you to state what happens if the player can't receive the item(s). Route 2 has a bunch of item balls which do this, and Route 8's Harbour map has a couple of similar things.
__________________
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 03:47 AM.