View Single Post
Old January 13th, 2013 (12:12 AM).
DrFuji's Avatar
DrFuji DrFuji is online now
Heiki Hecchara‌‌
  • Crystal Tier
Join Date: Sep 2009
Location: Downia-upside
Age: 25
Gender: Male
Nature: Jolly
Posts: 1,329
Originally Posted by hukurae View Post
I'm having a little problem with my givingpokemon script in Pokemon Ruby

Everything is fine until the 'nicknaming' process

I took the script from tajaros's guide and combine it with XSE guide to make out


#org @name1
fadescreen 0x1
special 0x9F
special 0x166

0x9F is to choose the Pokemon to be named and 0x166 is to nickname
but the screen just freezes

Any solution?
This is because special 0x166 is used to nickname Pokemon that have been inserted into a PC Box, where the number of the box is indicated by the value of variable 0x800F and the slot by variable 0x8010. The reason why it was freezing is most likely that you didn't have a Pokemon in that exact spot in the PC to be nicknamed resulting in the ROM crashing.

Special 0x9E is the command you want to use when nicknaming a Pokemon in your party whose number is assigned to variable 0x8004 (Which you have done by using special 0x9F). Hopefully that helps.