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.



Closed Thread
Thread Tools
  #176  
Unread September 23rd, 2007, 06:39 PM
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  
Unread September 23rd, 2007, 07:59 PM
Flameguru's Avatar
Flameguru
Pokemon: Metallic Silver
 
Join Date: Oct 2005
Location: Amish country, PA
Age: 21
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  
Unread September 23rd, 2007, 08:10 PM
-BlackShadow-'s Avatar
-BlackShadow-
Shadow King
 
Join Date: Sep 2007
Location: U.S.
Age: 18
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  
Unread September 23rd, 2007, 08: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  
Unread September 23rd, 2007, 08: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?
  #181  
Unread September 23rd, 2007, 08: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 09:00 PM. Reason: Your double post has been automatically merged.
  #182  
Unread September 23rd, 2007, 10:21 PM
-BlackShadow-'s Avatar
-BlackShadow-
Shadow King
 
Join Date: Sep 2007
Location: U.S.
Age: 18
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  
Unread September 23rd, 2007, 11:11 PM
Sizzle3003's Avatar
Sizzle3003
Cows = Cool :O
 
Join Date: Sep 2007
Location: United States
Age: 23
Gender:
Nature: Naughty
Hey, poccil or someone who can answer this, how do I set certain events to happen only at night time?
  #184  
Unread September 23rd, 2007, 11:36 PM
Flameguru's Avatar
Flameguru
Pokemon: Metallic Silver
 
Join Date: Oct 2005
Location: Amish country, PA
Age: 21
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  
Unread September 23rd, 2007, 11: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

Last edited by Minorthreat0987; September 24th, 2007 at 12:05 AM.
  #186  
Unread September 24th, 2007, 01:14 AM
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 24th, 2007 at 02:04 AM.
  #187  
Unread September 24th, 2007, 01:30 AM
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?
  #188  
Unread September 24th, 2007, 01:52 AM
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  
Unread September 24th, 2007, 07:05 PM
.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  
Unread September 24th, 2007, 09: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  
Unread September 24th, 2007, 09:31 PM
.:Sam:.'s Avatar
.:Sam:.
The road goes ever on and on!
 
Join Date: Apr 2006
Location: United Kingdom
Age: 19
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  
Unread September 24th, 2007, 09: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  
Unread September 24th, 2007, 10:09 PM
Sizzle3003's Avatar
Sizzle3003
Cows = Cool :O
 
Join Date: Sep 2007
Location: United States
Age: 23
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  
Unread September 24th, 2007, 10:24 PM
-BlackShadow-'s Avatar
-BlackShadow-
Shadow King
 
Join Date: Sep 2007
Location: U.S.
Age: 18
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  
Unread September 24th, 2007, 10: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  
Unread September 24th, 2007, 11:14 PM
-BlackShadow-'s Avatar
-BlackShadow-
Shadow King
 
Join Date: Sep 2007
Location: U.S.
Age: 18
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  
Unread September 24th, 2007, 11: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...=[
  #198  
Unread September 25th, 2007, 01:06 AM
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  
Unread September 25th, 2007, 02:23 AM
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  
Unread September 25th, 2007, 07:01 AM
Demonic Budha's Avatar
Demonic Budha
semi-good RMXPer (not script)
 
Join Date: Jun 2005
Location: Taupo, NZ
Age: 26
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

Forum Jump


All times are UTC. The time now is 09:31 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.