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 How do you make a pokemon giveaway GBA hacking? (https://www.pokecommunity.com/showthread.php?t=350826)

Jparker1984 June 19th, 2015 1:27 PM

How do you make a pokemon giveaway GBA hacking?
 
Hi everyone, I'm new to the site and GBA hacking. I started a re-vamp if you will of pokemon Fire Red. How do I make an event for a free pokemon giveaway. Like say I walk up to a stray pokeball and I want it to give me a Vulpix. A link to a tutorial will be just fine, thanks.

Squeetz June 19th, 2015 3:22 PM

Welcome! Making a script like that is relatively simple, but you'll have to learn about flags and Things like that, as well as scripting.
Here's a link to a Nice Scripting tutorial by Tajaros: http://www.pokecommunity.com/showthread.php?t=279345

Jparker1984 June 20th, 2015 1:34 PM

Ok, so I got the give pokemon event working just fine but I cant figure out how to make the sprite disappear after i collect the Pokemon. Or at least add a message when you talk to it again. Heres what I had, I used the script generator.

#dyn 0x740000
#org @start
lock
checkflag 0x200
if 0x1 jump :end
setflag FR_POKEMON
countpokemon
compare LASTRESULT 6
if == jump @noroom
addpokemon JIGGLYPUFF 5 POTION 0 0 0
setflag 0x200
storepokemon 0 JIGGLYPUFF
message @get-msg
fanfare 0x101
showmsg
waitfanfare
waitbutton
:end
release
end

#org @noroom
msgbox @noroom-msg
callstd MSG_NOCLOSE
release
end

#org @noroom-msg
= You don't have enough room in your party.

#org @get-msg
= You got a \v\h02!

RuFF June 20th, 2015 6:53 PM

Quote:

Originally Posted by Jparker1984 (Post 8807501)
Ok, so I got the give pokemon event working just fine but I cant figure out how to make the sprite disappear after i collect the Pokemon. Or at least add a message when you talk to it again. Heres what I had, I used the script generator.

#dyn 0x740000
#org @start
lock
checkflag 0x200
if 0x1 jump :end
setflag FR_POKEMON
countpokemon
compare LASTRESULT 6
if == jump @noroom
addpokemon JIGGLYPUFF 5 POTION 0 0 0
setflag 0x200
storepokemon 0 JIGGLYPUFF
message @get-msg
fanfare 0x101
showmsg
waitfanfare
waitbutton
:end
release
end

#org @noroom
msgbox @noroom-msg
callstd MSG_NOCLOSE
release
end

#org @noroom-msg
= You don't have enough room in your party.

#org @get-msg
= You got a \v\h02!

Use this code:

disappear lasttalked

well atleast that's for pksv but I don't know about xse. Maybe same?

Jparker1984 June 21st, 2015 10:33 AM

I used the code, and the poke ball disappeared but came right back, at what part of the script do i apply the code?

RuFF June 22nd, 2015 7:09 PM

Quote:

Originally Posted by Jparker1984 (Post 8808851)
I used the code, and the poke ball disappeared but came right back, at what part of the script do i apply the code?

You need to put a flag on the you need to put a flag on the person ID.


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