• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Forum moderator applications are now open! Click here for details.
  • 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.

Development: The Miscellaneous Script Thread

Dragonmaster91

It's just common sense!
220
Posts
15
Years
  • Age 41
  • Seen Jul 24, 2010
i found the various pointers don't have parameters
@end has none
@jump has none
Look harder. They are there.

Hey, thanks for the scripts! I tried the rock climb script, and it pretty much worked. However, for some reason, it repeats the movements 5 times (for instance, if I wanted it to push me one step down, it does five steps and stops). Is there a way to fix this?
You change the movements in the script.

Applymovement @pointer

#org @pointer
#raw 0x(whatever)
#raw 0xFE

You change that part.

Code:
#dynamic 0x800000
 
#org @1
#raw 0x7C 0x16 0x00
compare 0x800D 0x06
if 0x1 call @end
#raw 0x9D 0x00 0x0D 0x80
message @ha
boxset 5
compare LASTRESULT 0
if 0x1 goto @end
#raw 0x68
#raw 0x9C 0x25 0x00
waitstate
#raw 0x17 0x00 0x80 0x01 0x00
goto @jump
#org @jump
compare 0x8000 0x01
if 0x4 goto @move
release
end
#org @end
release
end
#org @move
applymovement 0xFF @move1
waitmovement 0x0
#raw 0x18 0x00 0x80 0x01 0x00
goto @jump
 
#org @ha
= It's some climbable rocks!\pWant to use VINE WHIP to\nclimb down them?
 
[B]#org @move1
#raw 0x1D 0x1D 0x1D 0xFE[/B]
To:
Code:
[B]#org @move1
#raw 0x1D 0xFE[/B]
 
Last edited:

0m3GA ARS3NAL

Im comin' home...
1,816
Posts
16
Years
Hmm, this script seems useful indeed. A collaboration of scripts many people may want to use, all located in one place... Nice...

I may contribute in the future, if the thread does not die...
If it lasts a month, I'll post some fantastic scripts.
If not... well, I don't think I gotta explain that...

For this thread, I have a bit of advice... Try to enforce the format given, ESPECIALLY defining the ROM the script can be used in, if people start posting scripts that can only be used in Ruby, and then a FR/LG hacker comes, and uses it, well, things will end up a bit hectic... keep that in mind.
 

HackMew

Mewtwo Strikes Back
1,314
Posts
17
Years
  • Seen Oct 26, 2011
@ Spherical Ice:
Didn't you know that comparing LASTRESULT multiple times won't work? Each time you use the compare command, the LASTRESULT is updated. The if command checks the LASTRESULT, indeed. Another thing. You messed up the random command. Random work in the range (0, X + 1). So (0,9) would be (0,10). Also, 0x10 is not the same as 10, of course. Please don't mix hex and dec. You should have tested the script before posting it...
Anyway, here's the optimized (and working) version:

Spoiler:


EDIT: You should update your XSE too, since it's old.
 
Last edited by a moderator:
5,256
Posts
16
Years
I did test my script, and it worked fine! I used the LASTRESULT multiple times, as it was like that in diego's tutorial. On XSE, when I asked for a live update, it said that version 1.1.1 is the newest version. Thanks for the help, though, HackMew.
 

HackMew

Mewtwo Strikes Back
1,314
Posts
17
Years
  • Seen Oct 26, 2011
I did test my script, and it worked fine! I used the LASTRESULT multiple times, as it was like that in diego's tutorial. On XSE, when I asked for a live update, it said that version 1.1.1 is the newest version. Thanks for the help, though, HackMew.

It seemed to work fine, then. You're welcome.
 

Tropical Sunlight

The Faltine
3,476
Posts
16
Years
Name: Bike Stand
ROMbase: Currently just FR/LG
Effect: It just activates the bike
Script:
Spoiler:

Comments & Bugs: Just gets ON the bike, doesn't get OFF yet
Credits: IceCharizard, Tropical Sunlight, or ~Watermelon
 

HackMew

Mewtwo Strikes Back
1,314
Posts
17
Years
  • Seen Oct 26, 2011
Name: Bike Stand
ROMbase: Currently just FR/LG
Effect: It just activates the bike
Script:
Spoiler:

Comments & Bugs: Just gets ON the bike, doesn't get OFF yet
Credits: IceCharizard, Tropical Sunlight, or ~Watermelon

Don't get me wrong but... seriously, why should someone credit you for a simple special anyone can put in his/her script? I mean, some special lists are available alredy o.O
 
185
Posts
16
Years
Don't get me wrong but... seriously, why should someone credit you for a simple special anyone can put in his/her script? I mean, some special lists are available alredy o.O

I agree. Credits are only to be received for bigger and more complex scripts, otherwise you can put in a simple check/setflag script as well...
 

Tropical Sunlight

The Faltine
3,476
Posts
16
Years
I'm sorry but I don't think anyone's gonna post a big script here...
This is the point... Maybe I'll try smth with the script ;)
 

Full Metal

C(++) Developer.
810
Posts
16
Years
Here is a much better bike mounting script.
It
A) checks for the player even having the bike
B) asks the player if he/she wants to mount it!
I've not yet tested it, but it should work.
Spoiler:

And no credits needed o'course
 
Last edited:

Tropical Sunlight

The Faltine
3,476
Posts
16
Years
Here is a much better bike mounting script.
It
A) checks for the player even having the bike
B) asks the player if he/she wants to mount it!
I've not yet tested it, but it should work.
Spoiler:

And no credits needed o'course
It is much better, put this one up!
Mine was just a special.
 

HackMew

Mewtwo Strikes Back
1,314
Posts
17
Years
  • Seen Oct 26, 2011
Here is a much better bike mounting script.
It
A) checks for the player even having the bike
B) asks the player if he/she wants to mount it!
I've not yet tested it, but it should work.
Spoiler:

And no credits needed o'course

It should, but it won't. Since this is not the Script Help Thread, please post working, tested scripts only thanks. Fixes in bold. And here's the optimized script:

Spoiler:
 

ExitWound

Boggle
79
Posts
16
Years
  • Age 32
  • Seen Sep 22, 2016
Name: POKéDEX Given
ROMbase: Sapphire
Effect: Enables the POKéDEX in the start menu
Script: Not needed
Comments & Bugs: My script is complete except for 1 problem: what flag is set or what special is used to activate the POKéDEX in the start menu for Sapphire?
 

Tropical Sunlight

The Faltine
3,476
Posts
16
Years
Name: POKéDEX Given
ROMbase: Sapphire
Effect: Enables the POKéDEX in the start menu
Script: Not needed
Comments & Bugs: My script is complete except for 1 problem: what flag is set or what special is used to activate the POKéDEX in the start menu for Sapphire?
Eh... You need to post a script, maybe? O.o

Name: Honey Tree
ROMbase: Whatever, I used FR
Effect: A honey tree script which requires Honey in order to encounter a random Pokemon.
Script:
Spoiler:

Comments & Bugs: You need to make a different flag for all the honey trees, unless you want to slather one tree and catch Pokemon on another.
I didn't debug the script, replace the Pokemon with the ones you prefer.
Also, you need the item honey.
I replaced it with Berry Juice, but again, whatever you prefer.
 
Last edited:

ExitWound

Boggle
79
Posts
16
Years
  • Age 32
  • Seen Sep 22, 2016
Eh... You need to post a script, maybe? O.o

Well I didn't think my script was necessary but here it is:

Spoiler:
 
5,256
Posts
16
Years
Well I didn't think my script was necessary but here it is:

Spoiler:

You seem to have misunderstood the purpose of this thread. It's for posting completed, workig scripts that most hackers will find useful to use in their hacks. For help on the scripts, the Script Help Thread is where you should be. If you do happen to understand this thread, and you're posting that script for other people, I can't really see why other would want to use the movement stuff, etc. The flag for activating the National Dex can be found in scripting tutorials, such as diegoisawesome's.
 

sab

Now too much of a life.
999
Posts
15
Years
effect: a random weather script
game: all gba games
credit: sab
script:
Spoiler:
 
Last edited:

558122_DG

Learning how to make mistakes
737
Posts
14
Years
  • Seen May 27, 2021
cool...those are pretty custom scripts :) I've seen em at work in your hack and they seem pretty nice to me :) maybe you should post the vid of them at work that will make this post better, and maybe an explanation of how they work :)
 
Back
Top