The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other making a sprite disappear after receiving item from it

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 September 4th, 2015 (7:25 PM). Edited September 5th, 2015 by tkim.
tkim's Avatar
tkim tkim is offline
 
Join Date: May 2011
Posts: 232
In Fire Red, I am trying to make a certain sprite disappear after receiving two items from him. I've set the sprite to the flag stated here. I can receive the items and the first message from him just fine. The problem is, he just won't disappear after the fade screen no matter what I tried to do. Here is the script I've last used with no success:

#org $script
lock
faceplayer
message $talk
$talk 1 = \c\h01\h08I've got!\pTWO tickets to paradise!
boxset 6
giveitem 0x172 0x01
giveitem 0x173 0x01
setflag 0x84A
setflag 0x84B
fadescreen 1
removesprite 1
setflag 0x1200
pause 0x10
fadescreen 0
message $talk1
$talk1 1 = \c\h01\h02The man disappeared!
boxset 6
release
end

I'd also want that last message "The man disappeared!" after the sprite disappears..
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old September 4th, 2015 (9:16 PM).
Sayuri's Avatar
Sayuri Sayuri is offline
人生忘れられた
 
Join Date: Jun 2015
Location: Boston, MA
Age: 24
Gender: Female
Nature: Lonely
Posts: 276
Quote:
Originally Posted by tkim View Post
In Fire Red, I am trying to make a certain sprite disappear after receiving two items from him. I've set the sprite to the flag stated here. I can receive the items and the first message from him just fine. The problem is, he just won't disappear after the fade screen no matter what I tried to do. Here is the script I've last used with no success:

#org $script
lock
faceplayer
message $talk
$talk 1 = \c\h01\h08I've got!\pTWO tickets to paradise!
boxset 6
giveitem 0x172 0x01
giveitem 0x173 0x01
setflag 0x84A
setflag 0x84B
fadescreen 1
removesprite 1
setflag 0x1200
pause 0x10
fadescreen 0
message $talk1
$talk1 1 = \c\h01\h02The man disappeared!
boxset 6
release
end

I'd also want that last message "The man disappeared!" after the sprite disappears..
Are you sure the person's event number is 1?


Make sure that after removesprite you put the number that matches that box, and that the Person ID is 1200 (although I'd recommend using a smaller flag; one that high is not necessary).
Using XSE might also help make scripting easier.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old September 4th, 2015 (9:18 PM).
Dionen's Avatar
Dionen Dionen is offline
deprived of sleep
 
Join Date: Jun 2011
Location: Brazil
Gender: Male
Nature: Quirky
Posts: 295
Check this out:
http://www.pokecommunity.com/showthread.php?t=302347
To sum up, the flag you are using is not safe and might be the cause of your error
__________________
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old September 5th, 2015 (12:19 AM).
tkim's Avatar
tkim tkim is offline
 
Join Date: May 2011
Posts: 232
Thanks for the heads up on the flag guys. So I went and tried changing the flag from 0x1200 to 0x701 which I believe is unused based on the link Dionen provided, but I still get the same results. The person ID is the same as the flag- this time using 0701 for the person ID and the person's event number is the same as the removesprite number. The sprite only seems to disappear if I get far away from it or enter a building, which has happened throughout my trials..
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old September 5th, 2015 (1:31 AM).
C me's Avatar
C me C me is offline
Creator of Pokemon League Of Legends
 
Join Date: Jan 2014
Age: 26
Gender: Male
Posts: 681
Quote:
Originally Posted by tkim View Post
Thanks for the heads up on the flag guys. So I went and tried changing the flag from 0x1200 to 0x701 which I believe is unused based on the link Dionen provided, but I still get the same results. The person ID is the same as the flag- this time using 0701 for the person ID and the person's event number is the same as the removesprite number. The sprite only seems to disappear if I get far away from it or enter a building, which has happened throughout my trials..
You forgot the disappear command, put it when you want him to disappear and it will work.
__________________
Check out my hack: Pokemon League of Legends.
Join the subreddit: https://www.reddit.com/r/PokemonLoL/
If you would like to give me money for no reason you can do so here
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old September 5th, 2015 (1:13 PM).
tkim's Avatar
tkim tkim is offline
 
Join Date: May 2011
Posts: 232
Quote:
Originally Posted by DogPolice View Post
Are you sure the person's event number is 1?


Make sure that after removesprite you put the number that matches that box, and that the Person ID is 1200 (although I'd recommend using a smaller flag; one that high is not necessary).
Using XSE might also help make scripting easier.
Thanks, using XSE made it WORK lol. I've been using pokescript this whole time and it must be outdated... Typing removesprite and compiling it with pokescript gave me entirely new commands when opening the script again in XSE.
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:09 AM.