Other need help with my trainer hes not dissapeearing
Binary ROM HackingNeed a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.
so im working on my hack and after you beat professor oak in curelean cave i want him to disappear but he dosent so i was wondering how
this is my script
[spoiler]
'---------------
#org 0x75D439
trainerbattle 0x0 0x1FF 0x0 0x875D450 0x875D490
msgbox 0x875D4CD MSG_NORMAL '"You are a very powerful trainer[.]"
end
'---------
' Strings
'---------
#org 0x75D450
= I knew you would eventually show up here
#org 0x75D490
= You've definitely grown\n since you last beat my grandson.
#org 0x75D4CD
= You are a very powerful trainer[.][\spoiler]
Here is your fix. You may need to add a lock, faceplayer, at the start and release at the end if you want to TALK to him. If you just want him to battle you like a normal trainer, leave as is.
Hope this helps, good luck!
Code:
Spoiler:
#dynamic 0x800000
'---------------
#org @battle
trainerbattle 0x0 0x1FF 0x0 @before @after
msgbox @goodbye 0x6
fadescreen 0x1 'fade to black
hidesprite 0x3 'hide prof oak. Change 3 to the person number. Use 800F if you are talking to him first.
fadescreen 0x0 'bring back to normal
setflag 0x900 ' this flag can be any USABLE flag. I use the extened flags code, so I am fine using this. Adjust as you see fit.
end
'---------
' Strings
'---------
#org @before
= I knew you would eventually show\nup here.
#org @after
= You've definitely grown since you\nlast beat my grandson.
#org @goodbye
= You are a very powerful trainer...\pI am now leaving, goodbye...