Quote:
Originally Posted by Hajima
I'm making a Pokemon Rom Hack that I was hoping that can have a Two Way Route.
What I meant was, You can either be in the bad side or good side.
Is it possible? Like for example, at the very start you we're asked if you would become good or evil, and what choice you made would direct you to the good or bad route?
The script I'm going to be using to trigger the routes is this :
I also have the problem with that script, where should I add the warp script?
Thanks!
Additional : How the heck do you make a script tile, all the tutorials I've read so far don't make sense at all.
|
To Hajima:
I added some organization tags which I myself have noticed have started to become useful, especially if you want to save an archival copy of your script in a folder or something.
For parts of these scripts, I will assume you have used the tutorial found here:
http://www.pokecommunity.com/showthread.php?t=302476
It is very useful to add this in the long run, but to each their own.
What I will be doing is using a safe, already in game flag, for a yes or no at the beginning. This flag will pretty much be used through out the entire script, and is the single most important flag you will have in your ROM.
I will be using flag 0x230 for your good or evil choice, which is the one used for the pokemart dude in route 1.
If this is set it will = 1, which means that, yes, we have chosen the evil path. If it is not set, it will automatically be 0, meaning we don't have to set it.
setflag 0x2C6 is to permanently remove the NPC from the map, so the event will never play again. This flag was from the fat guy in Viridian.
When reading the script, understand that since the 0x230 flag is already set to 0, we are automatically good. In the script, we have it set it to 1 to make the player evil.
I also added the warp script after the player is released, in an easy to understand format.
Good or evil Choice Script:
Now I'm also going to add an extra something that should help in the future as your hack progresses, and is also a good example as to what you can do with the above script.
Sometimes, you will probably be using the same map, but you just want certain people to appear for the good choice, and some for the bad choice.
Now, lets say for example you have 5 people on a map, total. Now, if you choose the bad side, two, lets say rockets, should be on the map. If you choose the good side, two police or whatever, should be on the map. The last person should be a bystander that changes his message based on your choice, but stays on the map either way.
To do the first part, we must add a level script to the map, setting and changing flags based on our choice that will remove two of the other sides people.
You add the below flags to each Person ID in Advance Map. Again, there is an image below for reference.
Finally since I am using the extended flags from the tutorial above, you WILL need to change these flags below to ones already used in game if you have NOT applied the hack.
EDIT: I just looked at some flags, so that you could test the script, if you decide to wait on adding that hack. The flags are 0x249, from the Magikarp guy on Route 4, and 0x232, from the fossil guy in MT. Moon. You would just exchange them out for whichever one.
Level Script:
Use the tutorial here to correctly insert the level script, you WILL need to do this:
http://www.pokecommunity.com/showpost.php?p=4414826
Here is an image album to a few images explaining where to put things:
https://imgur.com/a/0d6Zs
As you can see, I simply used the variable 0x4012 and 0x0000 for the level script.
This means that when the variable 0x4012 = 0, we will run the level script.
I would personally choose a variable that will ALWAYS be zero, or you could look more into level scripts to run it when entering a map, etc.
Finally, since we also have a bystander, we will add his own unique script, changing his message based on your choice of good or evil.
Bystander Script:
And that's pretty much it. You now have a working choice script, a working level script, and a working person who says something different based on your choice.
This is pretty comprehensive for your question, but it will future-proof your hack.
It might look like a lot at first, but read carefully and look at the images, and you'll be sure to get it.
Good luck, and happy hacking!
EDIT: Script Tile? What do you mean?