The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Other Two Problems. (https://www.pokecommunity.com/showthread.php?t=349287)

FanYi May 21st, 2015 1:37 AM

Two Problems.
 
Hi guys, I would like to know how to make a person invisible from the start so that he can move out of the door and appear.
And also is there any #raw for hidesprite/showsprite that I can put in applymovement?

NewDenverCity May 21st, 2015 2:11 AM

1: Add a person ID in A-Map that matches to an unused flag. Set that flag somewhere. Clear it when you want them to show up.
2: #raw 0x60 = hide #raw 0x61 = show
Those only apply to the sprite it's moving though.

FanYi May 21st, 2015 2:46 AM

How do I do it when everything happens in a script? Do you have an example, would gladly appreciate it.

Percy May 21st, 2015 4:06 PM

Here's a very basic script:

Code:

#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @1 0x6
hidesprite 0x1
setflag 0x200

release
end

#org @1
= I will disappear!


The hidesprite line does the actual work of disappearing. (Add fadescreen too, to, you know, make it more beautiful.) You need to set an unused flag too, okay? Remember that. If you don't set a flag, it will disappear, but when you walk, it will appear again. So, REMEMBER, set a flag. After making the script, remember to change the 0x1 to the person's actual person event #. You can find the person event # in A-map. Let me show you a picture.



See the red circle? That's the person event #. After you've done that, set the flag to the Person ID. We used 200, right? So, we're gonna write 200 to the Person ID too. Here's a pic.



If you have any further questions, just hit me up whenever :)


All times are GMT -8. The time now is 2:29 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.