The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script hidesprite reappears after moving

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 26th, 2018 (10:07 PM).
User64556e44 User64556e44 is offline
 
Join Date: Jul 2013
Gender: Male
Posts: 1
Hi, i'm trying to make a sprite disappear after a battle. It does, but after I take a step it reappears. Here is my script, please let me know if I did something wrong, i'm new to this.

#org @after
msgbox @defeat 0x2
fadescreen 0x1
setflag 0xFD
hidesprite 0xB
fadescreen 0x0
release
end

Also, the Person ID I have as FD, do I need to have it as 0253 instead?
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old October 27th, 2018 (12:34 AM). Edited October 27th, 2018 by Dinisk.
Dinisk's Avatar
Dinisk Dinisk is offline
DinisK
 
Join Date: Jan 2017
Gender: Male
Posts: 89
I also just started learning scripts and I don’t understand anything about your part
this script(may be full script ,i know). I used the Diego tutorial and it seemed to work.//we check the flag. if it is zero, it means it has never been used. and after activation we put one.human id must match the flag and no transfers to other systems are needed

#dynamic 0x800000

#org @start
checkflag 0xfd
if 0x0 call @1
lock
faceplayer
msgbox @1 0x6

cry 0x6 0x0
wildbattle 0x6 0x1E 0x8B
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0xfd
release
end

#org @1
= CHARIZARD: Raaarrgghh!
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old October 27th, 2018 (2:27 AM).
kalarie kalarie is offline
 
Join Date: Jun 2008
Posts: 760
You should use 'safe' flags, check this thread to check which are safe to use: https://www.pokecommunity.com/showthread.php?t=302347
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:18 AM.