- 84
- Posts
- 15
- Years
- Seen Jun 6, 2014
Thanks! That was exactly what I was looking for. :DI have no idea about cmd24 :P
That is because of a special property of the specific command 'giveitem MSG_FIND' (or 'giveitem 0xY 0xZ 0x1'). It makes the OW that you spoke to last (the Pokeball) disappear while simultainously setting the flag that is equal to the OW's Person ID. You can see this clearly when use the giveitem command on an OW with an ID of 828 - It makes the Pokemon menu option appear on the player's start screen.
Each Pokeball has a different ID to stop the scripts from conflicting with each other. If you were to have two items with the same Person ID and picked one up, the other one will disappear. Since this isn't what you want, it is best to give each Pokeball an ID for a flag that won't be used anywhere else in scripts.
If you were to leave the map (setting the weather back to it's default setting) and then return to speak to the OW then it will start raining again the instant you talk to him. It would be a bit weird since you've already defeated him so he would just be saying his defeated text. If you don't want this to happen then you can use a script similar to this:
Code:#dynamic 0x800000 #org @start checkflag 0x200 if 0x1 goto @defeated setweather 0x3 doweather trainerbattle 0x0 0x009 0x0 @before @after setflag 0x200 release end #org @defeated msgbox @beaten 0x6 release end #org @before = ... #org @after = I will be back... #org @beaten = Go away...