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
Click here to go to the first staff post in this thread.  
Thread Tools
  #1    
Old March 21st, 2013, 02:44 PM
BadSamaritan's Avatar
BadSamaritan
Its time for overtime
 
Join Date: May 2009
Hey there guys, I have a simple question with most likely a complex answer,

Are mugshots for the pokemon menu, like the mockup I made here...(please ignore all the other changes other then the mugshots)



Feasible within the essentials system? I'm no coder, but I can at least read the scripts and make small edits, so I just wanted to know how difficult of a task this would be?

Also, I wouldn't have any plans to get rid of the icons per se, those could stay for the box menu for all I care.

Thanks for any help!
Reply With Quote
  #2    
Old March 21st, 2013, 05:05 PM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Where would you use this? At first I thought you meant the party screen (accessible from the pause menu and during battle and so forth), but then you mentioned the "box menu" (which I presume you meant as the party screen) to be something different.

Your idea is an odd shape, by which I mean it wouldn't fit into the standard screen resolution of 512x384.

To strictly answer your question, it's feasible. All it would be is displaying a certain picture (sprite) depending on the species of the Pokémon, which is what all Pokémon icons and battle sprites already do, which is easy. Well, easy enough, anyway. The real question is what else you want to do, which matters in both a technical and aesthetic sense.
__________________
Reply With Quote
  #3    
Old March 22nd, 2013, 12:42 PM
BadSamaritan's Avatar
BadSamaritan
Its time for overtime
 
Join Date: May 2009
Quote:
Originally Posted by Maruno View Post
Where would you use this? At first I thought you meant the party screen (accessible from the pause menu and during battle and so forth), but then you mentioned the "box menu" (which I presume you meant as the party screen) to be something different.

Your idea is an odd shape, by which I mean it wouldn't fit into the standard screen resolution of 512x384.

To strictly answer your question, it's feasible. All it would be is displaying a certain picture (sprite) depending on the species of the Pokémon, which is what all Pokémon icons and battle sprites already do, which is easy. Well, easy enough, anyway. The real question is what else you want to do, which matters in both a technical and aesthetic sense.
Yes, I mean the party screen, sorry for the confusion. But then I said box menu, to imply that I'd still want to use the normal sized icons for the storage box navigation and the such.

Also, as I mentioned right before the picture, ignore all the other changes like the different directions, health bar sizes and stuff. All it was was a concept I was showing another member of the team, before I even got into essentials and all that. Strictly getting mugshots to work with minor changes to the look of everything, is my primary goal(and unfortunately we have no coder)

So to put it better, my question is how would I go about separating these entities, so that the party menu displays mugshots, but the box displays icons?

Thanks again for any help!

Last edited by BadSamaritan; March 22nd, 2013 at 01:06 PM.
Reply With Quote
  #4    
Old March 22nd, 2013, 02:07 PM
Pharetra's Avatar
Pharetra
MOM GET THE CAMERA
 
Join Date: Jun 2011
Age: 18
Gender: Male
Quote:
Originally Posted by Rickyboy View Post
Yes, I mean the party screen, sorry for the confusion. But then I said box menu, to imply that I'd still want to use the normal sized icons for the storage box navigation and the such.

Also, as I mentioned right before the picture, ignore all the other changes like the different directions, health bar sizes and stuff. All it was was a concept I was showing another member of the team, before I even got into essentials and all that. Strictly getting mugshots to work with minor changes to the look of everything, is my primary goal(and unfortunately we have no coder)

So to put it better, my question is how would I go about separating these entities, so that the party menu displays mugshots, but the box displays icons?

Thanks again for any help!
I have little real experience with RGSS and how Essentials is coded, but I'd guess you'd have to change these lines:

Code:
 bitmapFileName=pbResolveBitmap(sprintf("Graphics/Icons/icon%03degg",mail.poke2[0]))
to something like:

Code:
 bitmapFileName=pbResolveBitmap(sprintf("Graphics/Mugshots/mugshot%03degg",mail.poke2[0]))
In which Graphics/Mugshots is the folder containing the mugshots which are named mugshotnumber.png

Haven't tried this out though, so I might be wrong. Seemed very logical to me though.
__________________
Reply With Quote
  #5    
Old March 22nd, 2013, 02:56 PM
Rayd12smitty's Avatar
Rayd12smitty
Shadow Maker
 
Join Date: Dec 2011
Gender: Male
From what I know do exactly like P-Sign said, except depending on the size of your mugshot graphics a couple other things may have to change to change the x/y position of the image so it is where you want it
__________________
Reply With Quote
  #6    
Old March 23rd, 2013, 05:49 PM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Ah, you were talking about the storage screen, and wanting to keep icons in there.

P-Sign was looking at the mail screen, not the party screen.

The line you'd need to change in PokemonParty is this one:
Code:
@pkmnsprite=PokemonIconSprite.new(pokemon,viewport)
What you'd need to do is copy the class PokemonIconSprite (in script section PokemonSprite) and edit the copy to display the mugshot rather than an icon, then change the above-mentioned line of code to use that mugshot class instead. Oh, and make sure the mugshot doesn't jump around every few frames or when selected (basically, pretty much clear its def update). This would be the simplest option, I think.

After that it's just a matter of repositioning the mugshot, which is a simple case of editing these values:
Code:
    @spriteXOffset=28
    @spriteYOffset=0
__________________
Reply With Quote
  #7    
Old March 29th, 2013, 03:36 PM
BadSamaritan's Avatar
BadSamaritan
Its time for overtime
 
Join Date: May 2009
THANKS SO MUCH for the amazing help Maruno(and don't feel bad P-Sign, the way you described it made sense to me haha)

Obviously I'm still in the process of rearranging a few things like the menu bar, and I still don't know what I'll do with the items and status...



Anyways, I had two questions, hopefully my last ones...

1. How do you change to font to a smaller size? I already set it to pbsetsmallfont, but as you can see its still not enough.
2.Is it possible to make the Health Gauge a bit taller? I've figured out how to make to shorter, but its a bit too big a chunk of code for me to deduce.
Reply With Quote
  #8    
Old March 30th, 2013, 11:06 AM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Interesting design.

1. self.bitmap.font.size=16, placed directly after the line pbSetSystemFont(self.bitmap). That'll change all text in the Pokémon panels (i.e. level and name). You'll probably need to fiddle with the number a bit.

2. The width of the health bar (I'm just mentioning this for completeness) is the red number in the following line:
Code:
hpgauge=@pokemon.totalhp==0 ? 0 : (self.hp*96/@pokemon.totalhp)
The height of the health bar is determined by the red numbers in the following lines:
Code:
          self.bitmap.fill_rect(@gaugeX,@gaugeY,hpgauge,2,hpcolors[hpzone*2])
          self.bitmap.fill_rect(@gaugeX,@gaugeY+2,hpgauge,4,hpcolors[hpzone*2+1])
          self.bitmap.fill_rect(@gaugeX,@gaugeY+6,hpgauge,2,hpcolors[hpzone*2])
Knowing that the health bar is three separate coloured lines, this should make some sense.
__________________
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 12:33 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.