Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources

Notices
For all updates, view the main page.

Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.
New threads in this forum are to be approved by a moderator before they are displayed.



View Poll Results: How was this tutorial?
Good Job, make more! 10 90.91%
Okay job, could have done better. 1 9.09%
Not well explained, instructions were unclear. 0 0%
lol no u suck. 0 0%
Voters: 11. You may not vote on this poll

Reply
 
Thread Tools
  #1    
Old January 17th, 2014 (07:10 PM).
Karinmo's Avatar
Karinmo
☜(ˆ▽ˆ)
Community Supporter
 
Join Date: Nov 2013
Location: Texas
Age: 17
Gender: Male
Nature: Calm
Hello! My name is Dema, and today I will be showing you how to insert a Mugshot that looks like this basic pixel art mugshot of Brock-




To this-


So, without further or do, lets go into what you need to have.

Mugshots for your trainer/Pokemon. I use this picture from NeoSeeker.com-
*And from what ive seen these are from the games, so no credit is needed*

Wichu's Advance Series
Or something to insert your mugshot with.

Some sort of script editor
In this- I will be using PKSV-UI, but you can use any by altering the script slightly.
Some basic scripting knowledge
This is essential.
Advance Map for script insertion

Good- Now that were dont with that, howabout we get started with the tutorial.

Inserting your mugshot to your ROM-
First, resize/cut a mugshot down to 64x64 and put a colour THAT IS NOT USED in the sprite/mugshot itself.
I.E- If I have a may sprite with a red hat, pale skin, and a blue tshirt, I would make the background a light pink, since its used NO WHERE in the sprite. That is now the transparent layer for the sprite.

Now, open Wichu's Sprite Editor and go to one of the many ??? sprites after 153. For this example I will be using #154, or FE in hex. *That will be important later*
Now, insert your sprite into that ???. Once you have inserted it and written to ROM, close it. Your done!

Writing the script-
Now, this can be a confusing part one what to put, so ill break it down.
Code:
#org @start
lock 
faceplayer 
showpokepic 0xFE 0x0 0x2
msgbox @text ' Wassup Bruh.
callstd MSG_NORMAL
closeonkeypress
hidepokepic
release
end
Red represents important parts of that script.
Showpokepic -- shows the mugshot
0xFE -- The Pokemon's number in HEX.
0x0 and 0x2 -- The X and Y cords on the screen. I use 0x0 0x2 because its in the bottom corner just above the textbox.

Closeonkeypress -- This tells the script to close itself, so the mugshots doesn't stay there after the script is ended.
Hidepokepic -- This hides the sprite after you use the closeonkeypress command.

Now compile and copy the offset.



Inserting the sprite into the ROM-
Now, go ahead and open up Advance Map and load your rom. Head to the map you wish to insert the event into. Make a new person event and put in your compiled offset in the appropriate box.
Save- and its inserted!

Now, it should look like the example in the beginning.
__________________
Hi, this signature is a work in progress.
Reply With Quote
  #2    
Old January 18th, 2014 (02:53 AM).
Sniper's Avatar
Sniper
ヘッド·ショット
 
Join Date: Nov 2013
Location: Void
Gender: Male
Nature: Quiet
Send a message via Skype™ to Sniper
Just to add. Destinedjagold told me the positions he used for showpokepic.
0x0 (left) or X = 0x14 (right), and Y = 0x3. Callstd doesn't work for me.
__________________
Sniper | Pair

Suck at inserting tiles? Check out my fr rombases
Reply With Quote
  #3    
Old January 18th, 2014 (05:59 AM).
Karinmo's Avatar
Karinmo
☜(ˆ▽ˆ)
Community Supporter
 
Join Date: Nov 2013
Location: Texas
Age: 17
Gender: Male
Nature: Calm
Quote originally posted by Saturnus:
Just to add. Destinedjagold told me the positions he used for showpokepic.
0x0 (left) or X = 0x14 (right), and Y = 0x3. Callstd doesn't work for me.
Im using PKSV-UI. A few script adjustments in xse like i believe

Msgbox @text 0x6
I think just looking at a script example for XSE you can see how to make adjustments.
__________________
Hi, this signature is a work in progress.
Reply With Quote
  #4    
Old January 18th, 2014 (10:41 AM).
Sniper's Avatar
Sniper
ヘッド·ショット
 
Join Date: Nov 2013
Location: Void
Gender: Male
Nature: Quiet
Send a message via Skype™ to Sniper
Quote originally posted by Karinmo:
Im using PKSV-UI. A few script adjustments in xse like i believe

Msgbox @text 0x6
I think just looking at a script example for XSE you can see how to make adjustments.
I mean other scripter used callstd on XSE before. I forgot the reason why mine doesn't work. lol
__________________
Sniper | Pair

Suck at inserting tiles? Check out my fr rombases
Reply With Quote
  #5    
Old January 24th, 2014 (07:08 PM).
The_Show
Banned
 
Join Date: Jan 2012
Location: Carracosta Rock, Akmin Region
Gender: Male
Nature: Sassy
A wonderful, and easy to follow tutorial
Reply With Quote
  #6    
Old January 29th, 2014 (07:54 AM).
Astraea's Avatar
Astraea
I'll be back soon....
 
Join Date: Sep 2013
Location: Otago, New Zealand
Age: 18
Gender: Male
Nature: Brave
Send a message via Skype™ to Astraea
I'll try this. Well this looks good. And makes a script more complicated but as being a scripter, i'll take this.
__________________
Reply With Quote
  #7    
Old January 29th, 2014 (08:00 AM).
Karinmo's Avatar
Karinmo
☜(ˆ▽ˆ)
Community Supporter
 
Join Date: Nov 2013
Location: Texas
Age: 17
Gender: Male
Nature: Calm
Quote originally posted by IndianCharizard#:
I'll try this. Well this looks good. And makes a script more complicated but as being a scripter, i'll take this.

Well for me, i just save a basic script, and then open it, edit it to my needs, and save time with having a template for the script.
__________________
Hi, this signature is a work in progress.
Reply With Quote
  #8    
Old January 30th, 2014 (06:36 AM).
Blue's Avatar
Blue
endless
Community Supporter
 
Join Date: Jan 2008
Location: ☿
Gender: Male
Nature: Relaxed
Tried this and it worked perfectly, the only issue I had was when applying to Brawly in Emerald. Since his Gym is virtually pitch black and only a little light is available, instead of displaying his mugshot, there is just a white box. Other than that though great, straight forward tutorial.
__________________
Reply With Quote
  #9    
Old December 12th, 2014 (12:32 PM).
BrendanSceptile's Avatar
BrendanSceptile
147x World Champion
 
Join Date: Apr 2013
Location: Mossdeep City, Hoenn
Age: 16
Gender: Male
Nature: Brave
Excellent tutorial! I wish more people could write tutorials this well...

Question:
What are the scripting differences between FRLG and RSE when entering mugshots?
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 05:08 PM.