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.


Closed Thread
Click here to go to the first staff post in this thread.  
Thread Tools
  #176    
Old September 23rd, 2007, 10:39 AM
poccil
Trainer
 
Join Date: Jan 2007
Gender:
Nature: Adamant
The support I just added for different player characters is rather elegant I must say. Here is an extract from metadata.txt explaining the new setting:
Code:
# PlayerA, PlayerB, PlayerC, PlayerD: Information on the player characters
#   in the game.  This setting consists of a number of comma-separated fields,
#   described below:
#      Field 1: Trainer type.  This is an internal name of the trainer type and
#        has one of the values defined in trainernames.txt.  The file 
#        Graphics/Characters/trainerXXX.png,  where XXX is the ID of that 
#        trainer type, should match the defined trainer type. 
#      Field 2: Character sprite, as found in Graphics/Characters.
#      Field 3: Character sprite when mounted on a bicycle.
#   To change the player in script, use pbChangePlayer(X) where X is
#   one of 0, 1, 2, or 3 and refers to players A, B, C, or D.  The PlayerA setting
#   is required while the other three settings are optional.
__________________
Peter O, of The Ultimate Pokemon Center (Pokemon Essentials, Donate money to restore my page)
  #177    
Old September 23rd, 2007, 11:59 AM
Flameguru's Avatar
Flameguru
Pokemon: Metallic Silver
 
Join Date: Oct 2005
Location: Amish country, PA
Age: 22
Gender: Male
Nature: Rash
Quote:
Originally Posted by poccil View Post
The support I just added for different player characters is rather elegant I must say. Here is an extract from metadata.txt explaining the new setting:
Code:
# PlayerA, PlayerB, PlayerC, PlayerD: Information on the player characters
#   in the game.  This setting consists of a number of comma-separated fields,
#   described below:
#      Field 1: Trainer type.  This is an internal name of the trainer type and
#        has one of the values defined in trainernames.txt.  The file 
#        Graphics/Characters/trainerXXX.png,  where XXX is the ID of that 
#        trainer type, should match the defined trainer type. 
#      Field 2: Character sprite, as found in Graphics/Characters.
#      Field 3: Character sprite when mounted on a bicycle.
#   To change the player in script, use pbChangePlayer(X) where X is
#   one of 0, 1, 2, or 3 and refers to players A, B, C, or D.  The PlayerA setting
#   is required while the other three settings are optional.
This is pretty sweet Wanna add support for Surfing sprites too? I mead you wouldnt need to because I can do that via Events but it'd be nice
__________________
My Projects:
Pokemon Engine for Android
Java Pokemon Engine [Thread here on PC]
  #178    
Old September 23rd, 2007, 12:10 PM
-BlackShadow-'s Avatar
-BlackShadow-
Shadow King
 
Join Date: Sep 2007
Location: U.S.
Age: 19
Gender:
Nature: Relaxed
Quote:
Originally Posted by Flame Claw View Post
Still ain't going. I don't have a clue what this means
Look Again.
Quote:
# ------------------------------------------------------
001 # Johto - Realwood Run
# ------------------------------------------------------
25,10,10
Land
MANKEY,5 1
MANKEY,6 2
WEEDLE,5 3
WEEDLE,6 4
SENTRET,4 5
SENTRET,5 6
AZURILL,2 7
PIDGEY,2 8
TOGEPI,3 9
VENONAT,2 10
VENONAT,5 11
You Should Have 12 Not 11.
Now Add One More Pokemon To This List!

P.S. Flameguru Can You Please Tell Me How To Edit The Intro...Your Tutorial Didn't Tell Me How.:\
  #179    
Old September 23rd, 2007, 12:48 PM
yaoimutt
Trainer
 
Join Date: Sep 2007
Nature: Impish
Send a message via AIM to yaoimutt Send a message via Yahoo to yaoimutt
Quote:
Originally Posted by NightwolfAA2k5 View Post
Aye, Indeed that wood be cool, think of the possibilities :D

lol, we posted at the same time
He plans to make it so that you can set it in the meta file, i know because i asked how you would set the weather in it, and aparently he hadn't even thought of that >.< so he said it was a good idea.
__________________

Name: FishieNUMBER37 (you don't want to know what happened to the other fishies)
Adopt one yourself! @Pokémon Orphanage

Geat thread here
  #180    
Old September 23rd, 2007, 12:51 PM
Minorthreat0987
Pokemon Tellurium
 
Join Date: Oct 2005
Nature: Adamant
I really cant explain the problem well, but im having issues makeing the connections thing work, i want to connect the southern edge of a map to the northern edge, and all i keep getting is a black space at the edge of the map. can anyone please help?
__________________

Check out my DeviantArt account for info on my new project! Pokemon Tellurium.
My DeviantArt
  #181    
Old September 23rd, 2007, 12:52 PM
yaoimutt
Trainer
 
Join Date: Sep 2007
Nature: Impish
Send a message via AIM to yaoimutt Send a message via Yahoo to yaoimutt
Quote:
Originally Posted by Flame Claw View Post
Still ain't going. I don't have a clue what this means
it means what pokemon you encounter and what level they will be, and by the way, there is a problem with this list. in one of the listings of pokemon you have 11 pokemon instead of 12, that could cause a problem

Quote:
Originally Posted by -BlackShadow- View Post
Look Again.


You Should Have 12 Not 11.
Now Add One More Pokemon To This List!

P.S. Flameguru Can You Please Tell Me How To Edit The Intro...Your Tutorial Didn't Tell Me How.:\
That's actually easer then most people think, open your game in the editor, then click on the map that is titled "intro" and click in the uper left hand corner of the map
<-- left right -->

there is actually an event in this corner, that's the event, just change the speech to what ever you want. (if you want anything else difrent in the intro just let me know)
__________________

Name: FishieNUMBER37 (you don't want to know what happened to the other fishies)
Adopt one yourself! @Pokémon Orphanage

Geat thread here

Last edited by yaoimutt; September 23rd, 2007 at 01:00 PM. Reason: Your double post has been automatically merged.
  #182    
Old September 23rd, 2007, 02:21 PM
-BlackShadow-'s Avatar
-BlackShadow-
Shadow King
 
Join Date: Sep 2007
Location: U.S.
Age: 19
Gender:
Nature: Relaxed
Quote:
That's actually easer then most people think, open your game in the editor, then click on the map that is titled "intro" and click in the uper left hand corner of the map
<-- left right -->

there is actually an event in this corner, that's the event, just change the speech to what ever you want. (if you want anything else difrent in the intro just let me know)
Thanks but, I still Have A Little Problem When I Test Play My Game I End Up With 50 Of Every Item!!!???

I Need Help.
  #183    
Old September 23rd, 2007, 03:11 PM
Sizzle3003's Avatar
Sizzle3003
Cows = Cool :O
 
Join Date: Sep 2007
Location: United States
Age: 24
Gender:
Nature: Naughty
Hey, poccil or someone who can answer this, how do I set certain events to happen only at night time?
  #184    
Old September 23rd, 2007, 03:36 PM
Flameguru's Avatar
Flameguru
Pokemon: Metallic Silver
 
Join Date: Oct 2005
Location: Amish country, PA
Age: 22
Gender: Male
Nature: Rash
Quote:
Originally Posted by -BlackShadow- View Post
Thanks but, I still Have A Little Problem When I Test Play My Game I End Up With 50 Of Every Item!!!???

I Need Help.
That only happens in PlayTest Mode. When you distribute your game to people they wont have any items at all until you give them to them. The reason poccil coded that feature in was to better show off stuff in the game (So instead of taking many tries to catch pokemon you get it once with the master bal)
__________________
My Projects:
Pokemon Engine for Android
Java Pokemon Engine [Thread here on PC]
  #185    
Old September 23rd, 2007, 03:45 PM
Minorthreat0987
Pokemon Tellurium
 
Join Date: Oct 2005
Nature: Adamant
i just noticed something about the connections.txt file, and the seamless mapping, the north an south functions dont work, i just puts the map on the east or west depending on which one you put first east or west.


and this is what I have in the text file in regardes to this map.
Code:
7,South,0,8,North,0
__________________

Check out my DeviantArt account for info on my new project! Pokemon Tellurium.
My DeviantArt

Last edited by Minorthreat0987; September 23rd, 2007 at 04:05 PM.
  #186    
Old September 23rd, 2007, 05:14 PM
poccil
Trainer
 
Join Date: Jan 2007
Gender:
Nature: Adamant
My demo has an east-and-west connection; unfortunately I didn't test north and south yet. That's what I will do.

** Yes, you're right, that is a problem in the current release.

To set certain events to happen only at night, you can use a script-based conditional statement like this:
Code:
Time.now.hour<6 || Time.now.hour>=20
The problem was that the script failed to read the map connections file correctly. Here is the correct version of the function (in the script section PokemonMap):
Code:
 def getMapConnections
  if !$MapConnections
   $MapConnections=readSerialRecords("PBS/connections.dat")
   for i in 0...$MapConnections.length
    conn=$MapConnections[i]
    v=getMapEdge(conn[0],conn[1])
    if conn[1]==2||conn[1]==4
     conn[1]=v
    else
     conn[1]=conn[2]
     conn[2]=v
    end
    v=getMapEdge(conn[3],conn[4])
    if conn[4]==2||conn[4]==4
     conn[4]=v
    else
     conn[4]=conn[5]
     conn[5]=v
    end
   end
  end
  return $MapConnections
 end
__________________
Peter O, of The Ultimate Pokemon Center (Pokemon Essentials, Donate money to restore my page)

Last edited by poccil; September 23rd, 2007 at 06:04 PM.
  #187    
Old September 23rd, 2007, 05:30 PM
Minorthreat0987
Pokemon Tellurium
 
Join Date: Oct 2005
Nature: Adamant
ah, okay well I can;t wait till you get it working the seamless teleports are really awsome.

Is there a way to set a Pokemon's gender, like your starters?
__________________

Check out my DeviantArt account for info on my new project! Pokemon Tellurium.
My DeviantArt
  #188    
Old September 23rd, 2007, 05:52 PM
poccil
Trainer
 
Join Date: Jan 2007
Gender:
Nature: Adamant
I provided a fix to the map connections problem above.

The Pokemon class doesn't provide a function to set the gender of a Pokemon; however you can add this method below (which is untested) to the PokeBattle_Pokemon class:

Code:
def setGender(female)
 dexdata=File.open("PBS/dexdata.dat","rb")
 dexdata.pos=76*(@species-1)+18
 genderbyte=dexdata.fgetb
 dexdata.close
 case genderbyte
  when 255
   return false # genderless
  when 254
   return female # always female
  when 0
   return !female # always male
  else
   loop do
    value=rand(256)
    if female==(value<genderbyte)
     @personalID&=~0xFF
     @personalID|=value
     return true
    end
   end
 end
end
To use it, call pokemon.setGender(X) where X is true for female, and false for male. The function returns true if the gender was set, or false if the gender can't be set.
__________________
Peter O, of The Ultimate Pokemon Center (Pokemon Essentials, Donate money to restore my page)
  #189    
Old September 24th, 2007, 11:05 AM
.houndoomed
Trainer
 
Join Date: Apr 2006
Thanks for answering my last question.

But I have another XD
How do you change the battle backrounds?
  #190    
Old September 24th, 2007, 01:12 PM
poccil
Trainer
 
Join Date: Jan 2007
Gender:
Nature: Adamant
I've released a new update to Pokemon Essentials today. For reference, here are the script sections that were modified:

Added: PokemonWeather
Changed: Walk/Run
Changed: Game_Character 1
Changed: SpriteWindow
Changed: PokemonUtilities
Changed: PokemonEvolution
Changed: PokemonMart
Changed: Scene_Map
Changed: PokemonLoad
Changed: PokemonScreen
Changed: PokemonMessages
Changed: PokemonTrainers
Changed: PBItems
Changed: PokemonMap
Changed: PBSpecies
Changed: PokeBattle_Battle
Changed: PokemonItems
Changed: PokemonField
Changed: Spriteset_Map
Changed: Compiler
Changed: WindowAndTilemap
Changed: Game_Player*
Changed: PokemonEntry
Changed: PokemonSave

To change the battle background:

Notice the line of code at line 927 of the script section PokeBattle_ActualScene:
Code:
pbAddPlane("battlebg","Graphics/Pictures/battlebg.png",@viewport)
The filename "Graphics/Pictures/battlebg.png" is the tiled picture for the battle background. You can change that file or change the filename on this line. For advanced handling, you can control which file will be used for the background in script, which could look like this for example (this code is untested):
Code:
 if pbGetMetadata($game_map.map_id,MetadataOutdoor) # If outdoors
  if Time.now.hour<6 || Time.now.hour>=20 # If night
    pbAddPlane("battlebg","Graphics/Pictures/battlebgNight.png",@viewport)
  else
    pbAddPlane("battlebg","Graphics/Pictures/battlebgDay.png",@viewport)
  end
 else # If indoors
  pbAddPlane("battlebg","Graphics/Pictures/battlebg.png",@viewport)
 end
(battlebgNight.png and battlebgDay.png are just examples, they don't exist in the Pokemon Essentials distribution.)
The files Graphics/Pictures/enemybase.png and Graphics/Pictures/playerbase.png are "coasters", if you will, where active
Pokemon are placed. Those two files are also customizable.
__________________
Peter O, of The Ultimate Pokemon Center (Pokemon Essentials, Donate money to restore my page)
  #191    
Old September 24th, 2007, 01:31 PM
.:Sam:.'s Avatar
.:Sam:.
The road goes ever on and on!
 
Join Date: Apr 2006
Location: United Kingdom
Age: 20
Gender: Male
Nature: Calm
This is moving incredibly fast, but may I ask. Have you released the update you mentioned, onyour site it says the latest version was released on the 22nd.
__________________
Current Projects:
None

Staff on the following Projects:
Pokemon: Rise of Oblivion. - Spriter.

Project History:
Pokemon: Legend of Articuno.
May 16th 2006 - July 4th 2006. Deceased.



  #192    
Old September 24th, 2007, 01:34 PM
poccil
Trainer
 
Join Date: Jan 2007
Gender:
Nature: Adamant
Yes I have, about an hour ago. I had not updated the date yet.
__________________
Peter O, of The Ultimate Pokemon Center (Pokemon Essentials, Donate money to restore my page)
  #193    
Old September 24th, 2007, 02:09 PM
Sizzle3003's Avatar
Sizzle3003
Cows = Cool :O
 
Join Date: Sep 2007
Location: United States
Age: 24
Gender:
Nature: Naughty
Poccil I just have to say, I think you've made one of the best starter kits ever I was wondering if you can add water reflections? I can add them myself with an event but it when it gets to the edge of the water the reflection part leaks on to the grass and doesn't look right, ty.
  #194    
Old September 24th, 2007, 02:24 PM
-BlackShadow-'s Avatar
-BlackShadow-
Shadow King
 
Join Date: Sep 2007
Location: U.S.
Age: 19
Gender:
Nature: Relaxed
Quote:
Originally Posted by Flameguru View Post
That only happens in PlayTest Mode. When you distribute your game to people they wont have any items at all until you give them to them. The reason poccil coded that feature in was to better show off stuff in the game (So instead of taking many tries to catch pokemon you get it once with the master bal)
Thank You Again. I Am New At This. So I Hope You Don't Get Irritated But, What Script Do I Use To Give The Player An Item And What Is The Script To Give A Player A Pokemon?
  #195    
Old September 24th, 2007, 02:59 PM
poccil
Trainer
 
Join Date: Jan 2007
Gender:
Nature: Adamant
To add an item, use something like this:
Code:
Kernel.pbItemBall(::PBItems::POTION) # Item ID
Since adding the item may fail, this script statement should normally appear in a "Conditional Branch" event command.

To add a Pokemon, use something like this:
Code:
Kernel.pbAddPokemon(::PBSpecies::CASTFORM,25) # Species ID and level
Adding a Pokemon may also fail, so this statement should also appear in a "Conditional Branch" event command. You can modify that function, which is located in PokemonUtilities,
to remove the messages.
__________________
Peter O, of The Ultimate Pokemon Center (Pokemon Essentials, Donate money to restore my page)
  #196    
Old September 24th, 2007, 03:14 PM
-BlackShadow-'s Avatar
-BlackShadow-
Shadow King
 
Join Date: Sep 2007
Location: U.S.
Age: 19
Gender:
Nature: Relaxed
Quote:
Originally Posted by poccil View Post
To add an item, use something like this:
Code:
Kernel.pbItemBall(::PBItems::POTION) # Item ID
Since adding the item may fail, this script statement should normally appear in a "Conditional Branch" event command.

To add a Pokemon, use something like this:
Code:
Kernel.pbAddPokemon(::PBSpecies::CASTFORM,25) # Species ID and level
Adding a Pokemon may also fail, so this statement should also appear in a "Conditional Branch" event command. You can modify that function, which is located in PokemonUtilities,
to remove the messages.
Thank You. I Don't Have Any More Questions Right Now.
  #197    
Old September 24th, 2007, 03:48 PM
Minorthreat0987
Pokemon Tellurium
 
Join Date: Oct 2005
Nature: Adamant
where do you set the players walking sprites and such?

also when i run the intro, and get to the part where you pick boy or girl, after i pick my choice the game freezes. im not sure why, no error message appears just just freezes...=[
__________________

Check out my DeviantArt account for info on my new project! Pokemon Tellurium.
My DeviantArt
  #198    
Old September 24th, 2007, 05:06 PM
poccil
Trainer
 
Join Date: Jan 2007
Gender:
Nature: Adamant
Quote:
Originally Posted by Minorthreat0987 View Post
where do you set the players walking sprites and such?

also when i run the intro, and get to the part where you pick boy or girl, after i pick my choice the game freezes. im not sure why, no error message appears just just freezes...=[
Thanks for your private messages. I'm glad you solved the problem.
__________________
Peter O, of The Ultimate Pokemon Center (Pokemon Essentials, Donate money to restore my page)
  #199    
Old September 24th, 2007, 06:23 PM
yaoimutt
Trainer
 
Join Date: Sep 2007
Nature: Impish
Send a message via AIM to yaoimutt Send a message via Yahoo to yaoimutt
hm... i think i'll wait to update all my stuff to the next release until this weekend, you update it so fast it would be kind of pointles for me to upgrade mine every other day ^.^ your THE best programer i have ever met. =D
__________________

Name: FishieNUMBER37 (you don't want to know what happened to the other fishies)
Adopt one yourself! @Pokémon Orphanage

Geat thread here
  #200    
Old September 24th, 2007, 11:01 PM
Demonic Budha's Avatar
Demonic Budha
semi-good RMXPer (not script)
 
Join Date: Jun 2005
Location: Taupo, NZ
Age: 27
Gender:
Nature: Naughty
i too will jump on the bandwagon, thi is an extemly excellent starter kit.
Some amazing scripts in there.
Thank you extremly for the help you are providing to the community Poccil.
(and Flameguru, as you seem to be helping alot aswell)
__________________
}-DEMONIC BUDHA-{

(for those of you who dont know im not the best speller in the world. )
(also i find it funny that im like 10 years older than some of you and im asking you for help. )
Closed Thread
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 10:44 PM.


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.