View Single Post
  #7528    
Old January 13th, 2013 (12:12 AM).
DrFuji's Avatar
DrFuji DrFuji is offline
Helfen, Wehren, Heilen
Crystal Tier
 
Join Date: Sep 2009
Location: Downia-upside
Age: 22
Gender: Male
Nature: Jolly
Posts: 1,322
Quote originally posted by hukurae:
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

Spoiler:

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


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.
__________________