Main Menu
Main Page
Forums
Recent changes
Random page
Help

Databases
GlitchDex
AttackDex
ItemDex
StatDex
TrainerDex
TypeDex
UnownDex
More

Major Glitches
Trainer escape glitch
Old man trick
Celebi Egg trick
Select glitches (Japan)
SRAM glitch
CoolTrainer♀ corruption
LOL glitch
Rival LOL glitch
Super Glitch
ZZAZZ glitch
Pomeg data corruption glitch (Glitzer Popping)
Tweaking
Elite Four door glitch (Japan)
Pokémon merge glitch
Pokémon cloning
Time Capsule exploit
Arbitrary code execution
Coin Case glitches
More

Other Glitch Categories
Glitches by generation
Glitches between two generations
Japan-only/language specific glitches
Music glitches
Natural glitches
Non-core series glitches
Non-Pokémon glitches
Officially acknowledged glitches
Recurring glitches
Dead glitches

References
Pokémon GameShark codes
The Big HEX List
Glitch Pokémon cries
GB programming
Curiosities
Debugging features
Easter eggs
Error traps
Glitch areas
Glitch myths
Non-glitch exploits
Placeholder texts
Pokémon glitch terminology
Unused content and prerelease information

Useful Tools
8F Helper
GBz80 to Items
Old man trick name generator
PATH (Prama's Advanced Tweaking Heaven)
Save file editors
Special stat/Pokémon converter
Trainer escape Trainer Pokémon finder

Affiliates
Legendary Star Blob 2 (Hakuda)
Pokémon Speedruns wiki
PRAMA Initiative
Become an affiliate!

Technical
Site Source Code

Search Wiki

 

Search Forums

 

Author Topic: 8F script request  (Read 154 times)

0 Members and 1 Guest are viewing this topic.

0ErrorYT

  • GCLF Member
  • Offline Offline
  • Gender: Male
  • Dri REDGREENMOM MOM, are you ready?
    • View Profile
8F script request
« on: February 12, 2018, 03:39:41 pm »
I am looking for an 8F script that will allow me to encounter a Pokemon after x amount of steps. I've just started 8F and don't know much about code in general so help would be appreciated. I figure you have to load something into D059 but i don't have a clue on how to do the rest. Also one that disables map connections would be nice. Thanks in advance
##f????????
Grass Pelt
No:928
-------
Sky Drop
-------
Fire Blast
About me:
I'm 13.
Go easy on me, I suffer from depression and autism.

Princess Torchic ❤

  • Administrator
  • *****
  • Offline Offline
  • Gender: Female
  • ⛄🦋
    • View Profile
Re: 8F script request
« Reply #1 on: February 12, 2018, 04:21:09 pm »
I am looking for an 8F script that will allow me to encounter a Pokemon after x amount of steps. I've just started 8F and don't know much about code in general so help would be appreciated. I figure you have to load something into D059 but i don't have a clue on how to do the rest. Also one that disables map connections would be nice. Thanks in advance

You're in luck as D13B is already a step counter that counts down every step.

So putting this together could involve setting D13B to your desired value and using a condition (such as (not ASM language but logic-wise) if D31B - 1 <1 , set D059 to (Pokémon). Here you could use a D13B value of 6, so 5 steps are required before it reaches 0). If I have time tomorrow will check it out for you. :)

As for map connections I'm not sure how exactly to do that but you can lock your coordinates at the same value (D361, D362) to get a similar effect where map connections never load.
« Last Edit: February 12, 2018, 04:27:08 pm by Princess Torchic ❤ »
Hi! I identify as female.  She/her pronouns, please.

Online I most often use the username Torchickens or Chickasaurus.

Ah.. koucha ga oishii ♪





Thank you Aeriixion for the cute sprite above! :) Roelof also made different variations of the sprite (which I animated).

Contact:
If you like, please contact me by private message here on the forums as I no longer check other places very often.

YouTube: http://www.youtube.com/user/ChickasaurusGL

I like to collect interesting video games. ^_^
https://www.vgcollect.com/Torchickens

Give love, receive love, repeat. But in order to love others you must first love yourself unconditionally, even if it means abandoning pressure from projects or taking time off work and empathise with the self as you are your own best friend. The key often is simply to follow your heart, your urges and have faith they are valid; use them to do what you want to do as long as it doesn't harm anyone, and/or sympathise and respect it as we all have bad days (even the prettiest rose has thorns but is still beautiful).

ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Distinguished Member
  • *
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: 8F script request
« Reply #2 on: February 12, 2018, 04:31:57 pm »
It's not possible to disable map connections.

A setup that triggers an encounter after N steps ? That's not possible with a 8F code, you would need heavier memory editing.
"THOU SHALL NOT PASS !!"  RIVAL's effect, Gandalf.

Proudly glitching Pokémon Red and Yellow on a Black & White GB, Pocket GB, GB Color, GBA SP and new 3DS.

My Twitter (beware, I'm French)
My YouTube (same warning)

Here is an online tool to build 8F setups : GBz80 to Items !

They see me layzin', they ha-tin'...
Heavy contributor of the global augmentation of entropy (my room's is too damn high !)

Princess Torchic ❤

  • Administrator
  • *****
  • Offline Offline
  • Gender: Female
  • ⛄🦋
    • View Profile
Re: 8F script request
« Reply #3 on: February 12, 2018, 05:36:01 pm »
A setup that triggers an encounter after N steps ? That's not possible with a 8F code, you would need heavier memory editing.

Could you use 8F to change the map script pointer to check D13B though (with something like conditional jumps)? D13B counts down every step and we can set it to whatever we like first.
« Last Edit: February 12, 2018, 05:39:26 pm by Princess Torchic ❤ »
Hi! I identify as female.  She/her pronouns, please.

Online I most often use the username Torchickens or Chickasaurus.

Ah.. koucha ga oishii ♪





Thank you Aeriixion for the cute sprite above! :) Roelof also made different variations of the sprite (which I animated).

Contact:
If you like, please contact me by private message here on the forums as I no longer check other places very often.

YouTube: http://www.youtube.com/user/ChickasaurusGL

I like to collect interesting video games. ^_^
https://www.vgcollect.com/Torchickens

Give love, receive love, repeat. But in order to love others you must first love yourself unconditionally, even if it means abandoning pressure from projects or taking time off work and empathise with the self as you are your own best friend. The key often is simply to follow your heart, your urges and have faith they are valid; use them to do what you want to do as long as it doesn't harm anyone, and/or sympathise and respect it as we all have bad days (even the prettiest rose has thorns but is still beautiful).

Epsilon

  • Zeta
  • Member+
  • *
  • Offline Offline
  • The default personal text makes no sense
    • View Profile
Re: 8F script request
« Reply #4 on: February 12, 2018, 07:05:04 pm »
I'm not sure what ISSO is talking about, ofc you can use wStepCounter to encounter a Pokemon

8f
Any xany
TM50 x59 (hex:3B)
TM09 x61 (hex:3D)
Leaf Stone x38 (hex:26)
TM08 x4 (hex:04)
X Accuracy x89 (hex:59)
Elixer x119 (hex:77)
TM01 x[Any qty]

To use:

1.Enter/exit a building or room
2. Take steps that are equivalent to the hex identifier of the desired Pokemon. (e.g Mew would be 21 steps)
3. Use 8f
4. Dance
« Last Edit: February 12, 2018, 07:08:10 pm by Epsilon »
"What's a stack? Can you eat that?"

"Sure, just POP it into your mouth!" (someoneplskillme)

Clash Royale profile: #LYQC9LLV. Join our clan because we're lonely.

Does anybody really know what time it is?

Does anybody really care?
- Chicago

0ErrorYT

  • GCLF Member
  • Offline Offline
  • Gender: Male
  • Dri REDGREENMOM MOM, are you ready?
    • View Profile
Re: 8F script request
« Reply #5 on: February 12, 2018, 08:13:54 pm »
I'm not sure what ISSO is talking about, ofc you can use wStepCounter to encounter a Pokemon

8f
Any xany
TM50 x59 (hex:3B)
TM09 x61 (hex:3D)
Leaf Stone x38 (hex:26)
TM08 x4 (hex:04)
X Accuracy x89 (hex:59)
Elixer x119 (hex:77)
TM01 x[Any qty]

To use:

1.Enter/exit a building or room
2. Take steps that are equivalent to the hex identifier of the desired Pokemon. (e.g Mew would be 21 steps)
3. Use 8f
4. Dance
It works, however I want to do an early April fools joke where I walk into the grass outside Pallet Town (hence the disabling map connections) then walk around in it and encounter legendary Pokemon and using 8F is too obvious. I should of said that before, but it's a cool script, so thanks.
##f????????
Grass Pelt
No:928
-------
Sky Drop
-------
Fire Blast
About me:
I'm 13.
Go easy on me, I suffer from depression and autism.

Epsilon

  • Zeta
  • Member+
  • *
  • Offline Offline
  • The default personal text makes no sense
    • View Profile
Re: 8F script request
« Reply #6 on: February 12, 2018, 08:47:00 pm »
After re-reading your first post, I now understand what you wanted out of this. Sorry!

What you want is a little bit more complicated, as we need to return control to the game. Thankfully, with OAM DMA hijacking, this problem can be resolved, granted with a few extra steps.

First, you'll need to setup you're store PC items like so:

TM50 x59 (hex:3B)
TM09 x61 (hex:3D)
Leaf Stone x13 (hex:0D)
Repel x(# of steps)
Elixer x187 (hex:BB)
Fire Stone x5 (hex:05)
Lemonade x(Pokemon Index)
TM34 x89 (hex:59)
TM08 x62 (hex:3E)
Thunderstone x4 (hex:04)
Awakening x70 (hex:46)
HM03 x162 (hex:A2)
TM01 x[Any qty]

Then, setup an 8f script like so

8f
Any xany
Thunderstone x57 (hex:37)
TM11 x4 (hex:04)
Awakening x255 (hex:FF)
Repel x128 (hex:80)
Max Ether x14 (hex:0E)
Poké Ball x42 (hex:2A)
Hyper Potion x19 (hex:13)
Ice Heal x32 (hex:20)
TM50 x201 (hex:C9)
TM05 x59 (hex:3B)
TM13 x226 (hex:E2)

Then, use 8f. After walking a certain amount of steps, you should encounter your Pokemon!
« Last Edit: February 13, 2018, 04:25:03 pm by Epsilon »
"What's a stack? Can you eat that?"

"Sure, just POP it into your mouth!" (someoneplskillme)

Clash Royale profile: #LYQC9LLV. Join our clan because we're lonely.

Does anybody really know what time it is?

Does anybody really care?
- Chicago

0ErrorYT

  • GCLF Member
  • Offline Offline
  • Gender: Male
  • Dri REDGREENMOM MOM, are you ready?
    • View Profile
Re: 8F script request
« Reply #7 on: February 13, 2018, 09:20:38 am »
That code seems to just turn your Sprite invisible, but no matter how much I walked, I didn't encounter any Pokemon. I know I got the items right, can you help?
##f????????
Grass Pelt
No:928
-------
Sky Drop
-------
Fire Blast
About me:
I'm 13.
Go easy on me, I suffer from depression and autism.

Epsilon

  • Zeta
  • Member+
  • *
  • Offline Offline
  • The default personal text makes no sense
    • View Profile
Re: 8F script request
« Reply #8 on: February 13, 2018, 09:36:16 am »
Oops, a couple things went wrong. I've edited the post, try it now.

I confirmed that the new version does work.
« Last Edit: February 13, 2018, 09:36:47 am by Epsilon »
"What's a stack? Can you eat that?"

"Sure, just POP it into your mouth!" (someoneplskillme)

Clash Royale profile: #LYQC9LLV. Join our clan because we're lonely.

Does anybody really know what time it is?

Does anybody really care?
- Chicago

0ErrorYT

  • GCLF Member
  • Offline Offline
  • Gender: Male
  • Dri REDGREENMOM MOM, are you ready?
    • View Profile
Re: 8F script request
« Reply #9 on: February 13, 2018, 11:02:34 am »
It's doing the same thing, can you send a save file with the code set up so I can see what I'm doing wrong? I am on Pokemon red and emulator is Bgb
##f????????
Grass Pelt
No:928
-------
Sky Drop
-------
Fire Blast
About me:
I'm 13.
Go easy on me, I suffer from depression and autism.

Epsilon

  • Zeta
  • Member+
  • *
  • Offline Offline
  • The default personal text makes no sense
    • View Profile
Re: 8F script request
« Reply #10 on: February 13, 2018, 11:47:17 am »
In the attached save, just use 8f, walk 16 steps, and Mew will appear. You can use the PC in the room to check the item list.

On this particular save, the game will softlock if you attempt to open the party menu/when you encounter Mew. This is simply because I lazily edited the bootstrapper rather than set it up properly, setting this up correctly in game should have no issues.
"What's a stack? Can you eat that?"

"Sure, just POP it into your mouth!" (someoneplskillme)

Clash Royale profile: #LYQC9LLV. Join our clan because we're lonely.

Does anybody really know what time it is?

Does anybody really care?
- Chicago

0ErrorYT

  • GCLF Member
  • Offline Offline
  • Gender: Male
  • Dri REDGREENMOM MOM, are you ready?
    • View Profile
Re: 8F script request
« Reply #11 on: February 13, 2018, 12:29:10 pm »
I have no idea what I did wrong, but i think I will wait till April fools to upload the video and thanks for helping me
##f????????
Grass Pelt
No:928
-------
Sky Drop
-------
Fire Blast
About me:
I'm 13.
Go easy on me, I suffer from depression and autism.

0ErrorYT

  • GCLF Member
  • Offline Offline
  • Gender: Male
  • Dri REDGREENMOM MOM, are you ready?
    • View Profile
Re: 8F script request
« Reply #12 on: February 13, 2018, 04:12:48 pm »
I figured out what went wrong, in the post you said 77 thunder stones in the bag, but in the save you gave me its 57.
I made the video (but won't upload it till April fools), however if you guys want to see it I can make it unlisted
« Last Edit: February 13, 2018, 04:15:29 pm by 0ErrorYT »
##f????????
Grass Pelt
No:928
-------
Sky Drop
-------
Fire Blast
About me:
I'm 13.
Go easy on me, I suffer from depression and autism.

Epsilon

  • Zeta
  • Member+
  • *
  • Offline Offline
  • The default personal text makes no sense
    • View Profile
Re: 8F script request
« Reply #13 on: February 13, 2018, 04:24:14 pm »
I figured out what went wrong, in the post you said 77 thunder stones in the bag, but in the save you gave me its 57.
I made the video (but won't upload it till April fools), however if you guys want to see it I can make it unlisted

The program I used to develop these scripts, Gbz80 to items, currently suffers a bug in which it incorrectly calculates the code relative to Labels. I have reported this to the developer of Gbz80 to items, sorry for the confusion!
« Last Edit: February 13, 2018, 04:25:22 pm by Epsilon »
"What's a stack? Can you eat that?"

"Sure, just POP it into your mouth!" (someoneplskillme)

Clash Royale profile: #LYQC9LLV. Join our clan because we're lonely.

Does anybody really know what time it is?

Does anybody really care?
- Chicago

0ErrorYT

  • GCLF Member
  • Offline Offline
  • Gender: Male
  • Dri REDGREENMOM MOM, are you ready?
    • View Profile
Re: 8F script request
« Reply #14 on: February 13, 2018, 05:44:40 pm »
No problem! Thanks for helping me
##f????????
Grass Pelt
No:928
-------
Sky Drop
-------
Fire Blast
About me:
I'm 13.
Go easy on me, I suffer from depression and autism.