• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Other] JPAN hacked engine fainting

So player loses, screen does this:
Go completely black and takes you to titlescreen
or
Infinite Pokeballs healing stuff

I've tried sethealing place, doesn't work. Anyone know how to fix? Thanks.

The sethealingplace command has been significantly edited with JPAN's hacked engine as it will now allow you to respawn dynamically at any point in any map rather than a few predetermined locations. You can read about the changes and how to control where you restart at the bottom of the guide that comes with the engine.

I'm not entirely sure why you're reseting to the titlescreen (maybe you're warping to a map that doesn't exist or something), but the infinite Pokeball healing glitch tends to occur when the player doesn't have any Pokemon with them when they faint.
 
Okay, so in the document that comes with the hacked engine it says this:

"At a request, this command was changed to allow a greater number of healing points, that is to say nearly infinite (or at least the full map range of 65536 maps). This code was altered to a point of near-redundancy.
Originaly, this code was a direct correlation between the Flight table and a table of PokéCenters and XY coordinates where the player would appear on. Now, we can add flight points by re-pointing the table to a new location and create more Flight flags on the map. But you could only appear on the PokéCenter the original flight table told you to. In fact, SetHealingPlace only placed the pre-determined flight position in memory, close to the escape-rope data. If you tried to set the flying number higher than the original one, the game would cancel the setting.

The new version uses three variables, 0x405a, 0x405b and 0x405c as the map, X-position and Y-position respectively. The map is placed in the format 0xmmBB, being BB the Bank number and mm the map number. In AdvanceMap, the map number and bank are presented in Decimal form, so you need to place them in Hexadecimal form.

For instance, to use the PokéCenter in Indigo Plateau (13,0), you would use setvar 0x405a 0x000d. To place them in the right place for the nurse, you would also use setvar 0x405b 0x000d setvar 0x405c 0x000c

In the end, this method replaces SetHealingPlace altogether, and the old way doesn't work anymore. Using Sethealingplace is only useful in one occasion, and that is because sethealingplace 0x1 is the only one that doesn't call the default nurse animation. So, you can use sethealingplace 0x0 for all pokecenters and sethealingplace 0x1 for the places where there isn't a healing machine (like a campsite in the florest)"

this feels very nooby
I don't understand. Say I wanted to make it that if the player loses they spawn in Viridian City Pokemon Center (6.2) and then the nurse says the average speech how would I do that?
 
this feels very nooby
I don't understand. Say I wanted to make it that if the player loses they spawn in Viridian City Pokemon Center (6.2) and then the nurse says the average speech how would I do that?

Haha, it can take a while to get used to its different function. And by the way, 6.2 is actually the Pewter City Gym, Viridian's Pokemon Centre is 5.4 :P

Based on the extract you quoted you need to have the following in a script somewhere:
Code:
setvar 0x405A 0x[COLOR="Red"]04[/COLOR][COLOR="Blue"]05[/COLOR] // 0x405A determines which map you'll respawn in. The second byte (blue) indicates the bank while the first (red) is the map number in that bank.
setvar 0x405B 0x7 // The X co-ordinate you will respawn at
setvar 0x405C 0x4 // The Y co-ordinate you will respawn at
sethealingplace 0x0 // Setting this to 0x0 will display the standard Nurse Joy respawn animation/ text

You will respawn right in front of Nurse Joy thanks to the co-ordinates which have been set in 0x405B and 0x405C. You could also put variations of this script in any Pokemon Centre and only change the bank/ map number variable to reflect which city's Centre you just entered.

Also, it goes without saying, but if you have any other scripts which rely on the three 0x40XX variables then you should change them to prevent any disastrous respawning problems.
 
Haha, it can take a while to get used to its different function. And by the way, 6.2 is actually the Pewter City Gym, Viridian's Pokemon Centre is 5.4 :P

Based on the extract you quoted you need to have the following in a script somewhere:
Code:
setvar 0x405A 0x[COLOR="Red"]04[/COLOR][COLOR="Blue"]05[/COLOR] // 0x405A determines which map you'll respawn in. The second byte (blue) indicates the bank while the first (red) is the map number in that bank.
setvar 0x405B 0x7 // The X co-ordinate you will respawn at
setvar 0x405C 0x4 // The Y co-ordinate you will respawn at
sethealingplace 0x0 // Setting this to 0x0 will display the standard Nurse Joy respawn animation/ text

You will respawn right in front of Nurse Joy thanks to the co-ordinates which have been set in 0x405B and 0x405C. You could also put variations of this script in any Pokemon Centre and only change the bank/ map number variable to reflect which city's Centre you just entered.

Also, it goes without saying, but if you have any other scripts which rely on the three 0x40XX variables then you should change them to prevent any disastrous respawning problems.

Oops, my bad with the bank/map things. And thank you so much, now I can fix the thing that I was having trouble with :D
 
Back
Top