The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Trainer Sprite not disappearing

Notices
For all updates, view the main page.

Binary ROM Hacking Need 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.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old October 29th, 2020 (5:03 AM).
AJaxs AJaxs is offline
 
Join Date: Oct 2020
Posts: 15
Hallo.
For some reason my enemy Trainer Overworld Sprite doesn't dissapear right away.
It just stays there until I leave the Area and come back than it is gone, but
it should dissapear after the battle and some Dialogue.

Here's the Script:

'---------------
#org 0x806E6A
lock
faceplayer
trainerbattle 0x1 0x3 0x0 0x8806E8E 0x8806EDA 0x8806F0F
hidesprite 0x10
setflag 0x2FD
fadescreen 0x3
hidesprite 0x10
fadescreen 0x2
release
end

'---------------
#org 0x806F0F
msgbox 0x8806F21 MSG_NORMAL '"[green_fr]This isn't over yet.\nI ..."
fadescreen 0x3
hidesprite 0x10
fadescreen 0x2
release
end


'---------
' Strings
'---------
#org 0x806E8E
= [green_fr]Hey!\nHey,You!\lYes,You!\lYou look weak.\lLet me Show you how Strong I am.

#org 0x806EDA
= IMPOSSIBLE!\nThis was supposed to be an easy\lFIGHT.

#org 0x806F21
= [green_fr]This isn't over yet.\nI will get you next Time!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old October 29th, 2020 (10:08 AM).
mcferaligatr's Avatar
mcferaligatr mcferaligatr is offline
 
Join Date: Nov 2018
Posts: 120
Here are a couple of ideas I can suggest:

- You can delete the second hidesprite command as one is enough,
- I see you're using hidesprite 0x10, if person event number is 10, then you should write the command like: "hidesprite 0xa" because you need to convert decimal numbers to hexadecimal, and this is probably the cause of the error,
- Carefully inspect that the flag and the person event numbers are correct, both in Advance Map and the script,
- Try using a different flag if you want, but seeing as the trainer disappears after getting back to the area this may indicate that the setflag worked,
- Check the level scripts of the map your NPC is located, some level scripts could interfere with appearing/disappearing.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old October 31st, 2020 (4:39 AM).
AJaxs AJaxs is offline
 
Join Date: Oct 2020
Posts: 15
Hey man,
You are a great Help.
It works now.
I will keep your Tips in mind while continuing.
Your are Awesome!😆👍
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old November 5th, 2020 (9:51 PM).
MM980's Avatar
MM980 MM980 is offline
"You said you have a dream...That dream...Make it come true ! Make your wonderful dream a reality, and it will become your truth ! If anyone can, it's you !"
 
Join Date: Nov 2020
Location: Kerala,India
Age: 16
Gender: Male
Nature: Sassy
Posts: 118
@AJaxs, he is always of great help, God Bless him 🙂
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

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

Forum Jump


All times are GMT -8. The time now is 9:16 AM.