The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Script REPEL USE !!! (https://www.pokecommunity.com/showthread.php?t=380729)

Froosty October 19th, 2016 1:08 AM

REPEL USE !!!
 
Straight to the point !!!

can anyone tell me if there is anyway We can use a repel by running a script...
for eg, if I talk to a man and the repel is activated...
.
.
what basically I am asking is,
if there is anyway to activate the repel or super repel or max repel use withouth actually usuing a repel....
.
.
also is there any way to make not battling for 100 steps or so on ???


Hoping for replies !!!

DizzyEgg October 19th, 2016 1:17 AM

Yeah, get a FR IDB, open it in IDA, search for repel, find the script, modify it, same with 100 steps.

Froosty October 19th, 2016 4:38 AM

Quote:

Originally Posted by DizzyEgg (Post 9455854)
Yeah, get a FR IDB, open it in IDA, search for repel, find the script, modify it, same with 100 steps.

Sorry but i didnt get the short-forms can you tell in detsils pls ....

Sea Dragon October 20th, 2016 8:41 AM

You might find something by looking into how the BW repel system was done.
http://www.pokecommunity.com/showthread.php?t=291023

Blah October 20th, 2016 1:07 PM

Repoint the script at 08083100 to your new script.

In your new script, checkitem for repels you want to use. Setvar 0x4020 the amount of steps for the repel to be active. It's that easy, no need to use external ASM and further changes. :)

Setting var 0x4020 to the amount of repel steps is also useful for other things, because a Pokemon can't be encountered while it's not zero. Though it's decremented when you take a step, anway.

DizzyEgg October 20th, 2016 1:23 PM

Quote:

Originally Posted by FBI (Post 9457637)
Setting var 0x4020 to the amount of repel steps is also useful for other things, because a Pokemon can't be encountered while it's not zero.

Actually it can when it has higher level than the one your party leading poke has.
Don't mind that remark tho. I'm just bored.

Froosty October 20th, 2016 9:12 PM

Quote:

Originally Posted by Sea Dragon (Post 9457318)
You might find something by looking into how the BW repel system was done.
http://www.pokecommunity.com/showthread.php?t=291023

Searched this whole thread and posts already... no working information
:(

Quote:

Originally Posted by FBI (Post 9457637)
Repoint the script at 08083100 to your new script.

In your new script, checkitem for repels you want to use. Setvar 0x4020 the amount of steps for the repel to be active. It's that easy, no need to use external ASM and further changes. :)

Setting var 0x4020 to the amount of repel steps is also useful for other things, because a can't be encountered while it's not zero. Though it's decremented when you take a step, anway.

I tried this method already but seems like not working ....


Quote:

Originally Posted by DizzyEgg (Post 9457655)
Actually it can when it has higher level than the one your party leading poke has.
Don't mind that remark tho. I'm just bored.

It must be the case to setvar command..... any else method ???

Blah October 21st, 2016 4:57 AM

It is working, that's the way we did it in the community hack. You are probably doing something incorrectly.

1) Make your repel script
2) Compile it in the ROM
3) Instead of giving the address to an NPC in A-map write the address in "reverse-hex", without adding +1, to 0x8083100


All times are GMT -8. The time now is 9:14 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.