- 34
- Posts
- 14
- Years
- Seen Jun 14, 2016
I recommend the following pseudo-script:
1.Make a script tile that sets a variable, say, 0x4000, to 0x0. This script would also begin the "pedometer" script, in the way JPAN talks about in his manual
2. In the pedometer script, add 0x1 to 0x4000 for each step. After adding, compare 0x4000 to 0x1F4, and if its true, branch to the PA saying "ding!" and warping you out, otherwise, end the script. Don't forget, with JPANs, you need to also use the specials that generate wild battles, since scripts that activate when you take a step overwrite the wild battle generator.
You'd put the gender-checking scripts wherever a gender-dependent event occurs. For example:
Spoiler:
#dynamic 0x800000
#org @start
checkgender
compare LASTRESULT 0x0
if 0x1 goto @boy
msgbox @higirl MSG_FACE
release
end
#org @boy
msgbox @hiboy MSG_FACE
release
end
#org @hiboy
= Yo, dude!
#org @higirl
= Yo, lady!
That's just one small example, but all gender-dependant scripts will have the beginning in common: checking the gender, and then branching.
3. UNLZ.gba is designed to view every compressed image in the ROM, in order. Since you repointed the image, you placed it in a different location...however, it didn't erase the previous image. Basically, the Skiploom sprite is still in the game, although nothing points to it, so it's just taking up space. If you open up UNLZ.gba and scroll through, I can garuntee you'll find the Prinplup sprite somewhere, not necessarily around the other sprites. Also, if you test it in-game, you'll see it works fine :)
Thanks again, but I'm still somewhat confused, though, it is becoming more clear. I've set the variable, but how would I go about activating the pedometer? The manual says to use flags, but I'm not entirely sure how to go about with doing that. I also don't really know what to do in order to add 0x1 for every step.. The only way I know of is to place a script event on every passable tile in A-map, and I'd rather not do that. ._.
With the gender scripts, what I want is to have different start maps for the hero/heroine right at the beginning, like in R/S/E. Is there a way to do this without starting the hero in a blank map, then warping them depending on their gender?