The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Multiple choice starters

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 March 6th, 2017 (11:54 AM).
Munichtastics's Avatar
Munichtastics Munichtastics is offline
 
Join Date: Aug 2014
Gender: Male
Posts: 78
Hello guys!

It would be very nice if someone could help me out.
I kinda start getting how scripts works but i just cant figure out this
So basicly i want to put a pokeball somewhere which:

Gives you a lil text when you start talking to it (ye i know how to do this)
Gives you a option to either choose
Pokemon A
Pokemon B
Pokemon C in a multiple choice box

When you choose a pokemon, the pokeball will dissapear for good.

Hope someone can help me out with showing me the script (maybe some explaination behind the lines of the script)

Regards Swen
__________________
Pokemon 'The Tree of Time'
Banner in progress!
https://www.pokecommunity.com/showthread.php?t=363830
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old March 16th, 2017 (1:48 PM).
ChaosSigma0's Avatar
ChaosSigma0 ChaosSigma0 is offline
How do I change this stupid username?
 
Join Date: May 2014
Location: Jamaica
Age: 29
Gender: Male
Nature: Quiet
Posts: 16
*bump*
I too, have also been wondering on how to do this as well.
__________________
One step forward, two steps back...

Currently working on:
something...
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old March 16th, 2017 (6:49 PM).
longlostsoldier's Avatar
longlostsoldier longlostsoldier is offline
 
Join Date: Oct 2013
Gender: Other
Nature: Quiet
Posts: 200
I'm sorry, why would /one/ pokeball have multiple pokemon in it? Wouldn't it make more logical sense to copy the Pro. Oak script and have multiple pokeballs for all the pokemon, instead of having one pokeball magically contain several pokemon but only letting you choose one? Or have a bag full of pokemon instead, in which case, Ruby/Emerald are your buddies.

However, assuming you do want to go through with this 'one pokeball containing multi pokemon' weirdness, you might want to check out JPAN's hacked engine in Resources. His documents for it include how to do variable multiple choice boxes. Without the hack, I thinnnnk but don't recall perfectly, that you have to use an existing multiple choice box word selection and change the text. There are, without JPANengine, only a limited number of them. I did actually have a script somewhere for multiple pokemon choice selection, but only for JPAN hack, which is a bit advanced for most beginners I admit because it clears out all the existing scripts including for pokemon centers and sethealplaces.

If you don't mind having the limited number, you can try searching for an unused multichoice set, alter the text, then look at how the normal rom deals with multichoice code (for instance, look at the lemonade stand, or an elevator) and combine that with your basic pro. oak give-pokemon script. I think I remember there was an unused Southwest/Northwest one, but that's 2 options, not 3, anndddd I might be mentally merging it with first gen which I've worked on far more recently.

Here's an example JPAN hack script, keeping in mind it's suuuuuuper old and I don't remember if I ever tested this out:
Spoiler:

Code:
Mega Give Poke Script

#org @pro
lock
checkflag 0x829
if 0x0 goto @listy
msgbox @goodtoseeyou 0x2
release
end

#org @goodtoseeyou
= Good to see you!/n Doing well?

#org @rawrs
=  Your Pikachu came back from the dead to haunt you and attacked?  That's... very disturbing news. Ghosts can be very vengeful, I wouldn't  rely on one. Here, I'll give you a new starter.

#org @rawr
= Want one I got from Pro. Elm?

#org @listy
msgbox @rawrs
goto @listone

#org @listone
msgbox @rawr 0x6
setvar 0x8006 0x0
loadpointer 0x0 @1
special 0x25
setvar 0x8006 0x1
loadpointer 0x0 @2
special 0x25
setvar 0x8006 0x2
loadpointer 0x0 @3
special 0x25
setvar 0x8006 0x3
loadpointer 0x0 @4
special 0x25
setvar 0x8006 0x4
loadpointer 0x0 @5
special 0x25
setvar 0x8006 0x5
loadpointer 0x0 @6
special 0x25
setvar 0x8006 0x6
loadpointer 0x0 @7
special 0x25
multichoice 0x0 0x0 0x25 0x1
compare 0x800D 0x1
if 0x1 goto @opt1
if 0x2 goto @opt2
if 0x3 goto @opt3
if 0x4 goto @opt4
if 0x5 goto @opt5
if 0x6 goto @opt6
if 0x7 goto @listtwo

#org @1
= Chikorita

#org @2
= Cyndaquil

#org @3
= Totodile


#org @4
= Eevee

#org @5
= Clefairy

#org @6
= Ralts
#org @7
= More


#org @opt1 'chika
setflag 0x829
givepokemon 0x98 0x0e 0xcd 0x0 0x0 0x0
goto @end

#org @opt2 'cyn
setflag 0x829
givepokemon 0x9b 0x0e 0xd7 0x0 0x0 0x0
goto @end

#org @opt2 'toto
setflag 0x829
givepokemon 0x9e 0x0e 0xd1 0x0 0x0 0x0
goto @end

#org @opt4 'ee 
setflag 0x829
givepokemon 0x85 0x0e 0xd9 0x0 0x0 0x0
goto @end

#org @opt5 'cleff
setflag 0x829
givepokemon 0x23 0x0e 0xdd 0x0 0x0 0x0
goto @end

#org @opt6 'ralts
setflag 0x829
givepokemon 0x188 0x0e 0xd6 0x0 0x0 0x0
goto @end



#org @listtwo
msgbox @moo 0x6
setvar 0x8006 0x0
loadpointer 0x0 @1
special 0x25
setvar 0x8006 0x1
loadpointer 0x0 @2
special 0x25
setvar 0x8006 0x2
loadpointer 0x0 @3
special 0x25
setvar 0x8006 0x3
loadpointer 0x0 @4
special 0x25
setvar 0x8006 0x4
loadpointer 0x0 @5
special 0x25
setvar 0x8006 0x5
loadpointer 0x0 @6
special 0x25
setvar 0x8006 0x6
loadpointer 0x0 @7
special 0x25
multichoice 0x0 0x0 0x25 0x1
compare 0x800D 0x1
if 0x1 goto @1b
if 0x2 goto @2b
if 0x3 goto @3b
if 0x4 goto @4b
if 0x5 goto @5b
if 0x6 goto @6b
if 0x7 goto @listone

#org @moo
= Want an abandoned [PK][MN]?

@org #end
fanfare 0x13E
msgbox @receivedmsg 0x4
waitfanfare
closeonkeypress
msgbox @niam 0x5
compare 0x800D 0x1
if 0x1 call 0x1A74EB
msgbox @promise
release
end

#org @receivedmsg
= Got a pokemon!

#org @promise
= I promised I would give
you a new starter! I will
re-register your trainer
license.
You're good to go!

#org @niam
= Name them?

#org @yay
= Alright, got a [pk][mn]!

#org @1
= Vulpix

#org @2
= Squirtle

#org @3
= Charmander

#org @4
= Koffing

#org @5
= Bulbasaur

#org @6
= Absol

#org @7
= Previous

#org @1b 'vulp 
setflag 0x829
givepokemon 0x25 0x0e 0xd7 0x0 0x0 0x0
goto @end

#org @2b 'squirt
setflag 0x829
givepokemon 0x7 0x0e 0xdc 0x0 0x0 0x0
goto @end

#org @2b 'char
setflag 0x829
givepokemon 0x4 0x0e 0xd7 0x0 0x0 0x0
goto @end


#org @5b 'bulb 
setflag 0x829
givepokemon 0x1 0x0e 0xcd 0x0 0x0 0x0
goto @end
#org @4b 'koff 
setflag 0x829
givepokemon 0x6d 0x0e 0xd3 0x0 0x0 0x0
goto @end
#org @6b 'abs
setflag 0x829
givepokemon 0x178 0x0e 0xce 0x0 0x0 0x0
goto @end

I don't recommend that one, because it won't work on a normal rom that doesn't have JPAN's hacked engine, but it's an example.

edit: Oh, yeah, I forgot. Hiding the pokeball or spawning event requires hidesprite + making sure the sprite has the flag id in AdvancedMap, so the map knows when reloading to permanently disappear it, or to reappear it if you choose to unset the flag later in a different map.
__________________
Evo-Yellow: 151 Evolve Raichu Hack, uses the Yellow Disassembly. Play as girl, ride a pokemon, special/physical, dark/fairy/steel types, new pokemon, gen 2 sprites, evolve Pikachu into Raichu and have them still follow you with new Raichu emotion sprites!
Yellow Hack Tutorial
Fire Yellow - A FireRed Hack & Yellow Remake with Following Pikachu - I am not continuing this until I get a new computer where I can use the latest disassembly. My old one can only run gen I disassemblies.
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:17 AM.