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)
-   -   Script Scripting issue (https://www.pokecommunity.com/showthread.php?t=383335)

MadMalitian November 16th, 2016 7:45 PM

Scripting issue
 
I want to make a pokeball give someone a pokemon, then disappear. When i use the code *below* my game either doesnt give me the pokemon and you hear a click when i select the pokeball, or weird text is displayed and it freezes the rom. Please help me

The code:

#dynamic 0x1EABD0

#org @start
hidesprite 1
fanfare 0x13E
msgbox @event1 0x6
givepokemon 0x133 0x5 0x1 0x0 0x0 0x0
waitfanfare
release
end

#org @event1
= [PLAYER] recived a [red_fr]pokemon!

Frexxit November 16th, 2016 11:35 PM

You need to add in advanced map the movement 11, that makes disapear the object from the map. To make disapear foreven you also need to add a person ID so the "Person" (the pokeball) Disapear when the script is over. Hide sprite doesn't make it disapear, it just hide it. maybe you need to try put at the start "lock" and then "faceplayer" to. i have to said that i never try that, so good luck


All times are GMT -8. The time now is 9:18 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.