• 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?".
  • 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

5,256
Posts
16
Years

The Miscellaneous Script Thread

Scripts are XSE-compatible only!

Welcome to The Miscellaneous (XSE) Script Thread! The purpose of this thread is simple; it is an archive of numerous, pretty random, scripts available for you to use in your hack if you are having difficulties scripting it yourself (or are too lazy. ^.^).

If you wish to see one of your threads up on this post, please use the following form:

Code:
[PLAIN][B]Name:[/B]
[B]ROM info:[/B]
[B]Effect:[/B]
[B]Script:[/B]
[B]Comments & Bugs:[/B]
[B]Credits:[/B][/PLAIN]

For example, you could post this:
Name: Talking Script
ROM info: Pokémon: FireRed Version [BPRE] (U)
Effect: When you interact with the person event affiliated with this script, a message will appear.
Script:
Spoiler:

Comments & Bugs: Make sure you do not use "boxset 0x6"! That's an outdated command!
Credits: Person A, Person B and Person C.

Of course, you shouldn't really bother submitting a simple script as easy as that – if you think people can't do that, than you must be a pessimist!


The Scripts:

Egg Shop Script:
Spoiler:


Rock Climb (Vine Whip):
Spoiler:

Headbutt Trees (Headbutt):
Spoiler:


Braille Script:
Spoiler:


Move Tutor Script:
Spoiler:


'Wishing' Well Script
Spoiler:


Bike Stand Script
Spoiler:


Honey Tree Script:
Spoiler:


Random Weather Script:
Spoiler:


Phonecall Script:
Spoiler:


Rock Jump Script:
Spoiler:


Feel free to submit your miscellaneous, XSE scripts!

Also, to save up a bit of clutter, I've merged all of these repeat threads in one, so some of these replies may not make sense. DON'T MAKE ANY MORE MISC. XSE SCRIPT THREADS. BUMP THIS ONE. Thanks.
 
Last edited:

Hiche..

 
979
Posts
15
Years
  • Seen Dec 27, 2014
Well, I have a HEADBUTT script. Do I post all the script if I want?

Also, in the two rock climb scripts, change this part #org @move, to this #org @move1. In both scripts.
 
Last edited:

Tropical Sunlight

The Faltine
3,476
Posts
16
Years
Well,I've donated my scripts to the ROM Hacking Newsletter,and should I post them here again?
BTW,you lost the ROM version imformation...
Please post them here, I'm too lazy to looks up the Newspapers (X-Buster made lazyness)

Well, I have a HEADBUTT script. Do I post all the script if I want?

Also, in the two rock climb scripts, change this part #org @move, to this #org @move1. In both scripts.
Done.
Yes, please post them here. Just make sure they're in XSE format.
 

Hiche..

 
979
Posts
15
Years
  • Seen Dec 27, 2014
Name: Headbutt script
ROM info: FireRed BPRE
Effect: Like in Pokemon G/S/C versions.
Script:

Spoiler:


Credits: Dabomstew, Hiche.

Some explanations:

jump 0x1BE06F

It's the command that calls the Pokemon that are encountered, when you HEADBUTT the small tree.
 

HackMew

Mewtwo Strikes Back
1,314
Posts
17
Years
  • Seen Oct 26, 2011
This is a good idea, but it doesn't really make sense to use #raw for known commands.
 

Hiche..

 
979
Posts
15
Years
  • Seen Dec 27, 2014
Lol. I only put the #raw because to explain some. I will post it with XSE known commands later on.

Spoiler:


Edit the other part of the script. Here is the XSE format of the script. No #raws.

The Headbutt script, I will modify it tomorrow.
 
Last edited:

Dratii

Working on something new...
195
Posts
15
Years
  • Seen Oct 24, 2023
For those that are confused, here is a more complete script

Name: Headbutt script
ROM info: FR
Effect: makes a wild pokemon appear after using headbutt

Code:
#org @headbutt
lock
checkattack 0x1D
compare 0x800D 0x6
if 0x1 goto @release
bufferpokemon2 0x0 0x800D
bufferattack 0x1 0x1D
message @head
boxset 0x5
compare 0x800D 0x0
if 0x1 goto @release
message @used
boxset 0x4
closeonkeypress
goto @treeshake
end

#org @treeshake
random 0xamount
compare 0x800D 0x0
if 0x1 goto @wildbattle offset
compare 0x800D 0x1
if 0x1 goto @wildbattle offset2
[the random amount is how many different ones you can add]


#org @used
= [buffer1] used HEADBUTT.

#org @head
= Pokemon live in this tree. Using\nHEADBUTT may cause them to come out.\pDo you want to use HEADBUTT?
Credits Dratii
 
Last edited:
219
Posts
16
Years
I think I have to enter more than 24 chracters...

Name: Braille Script
ROM info: Firered English (BPRE)
Effect: Makes the words become braille
Script:

Code:
#dynamic 0x[your offset]
#org @start
lock
faceplayer
msgbox @3
boxset MSG_NORMAL 'Must be a msgbox!
braille @4 
waitkeypress
release
end

#org @3
= There is something strange on the stone...

#org @4
#braille something 'the braille words
Comments & Bugs: NEVER forget a message box!

Credits Nintendo

Name: Move Tutor Script
ROM info: Firered English (BPRE)
Effect:You can learn a move from this script

Script:

Code:
#org @Start
lock
faceplayer
checkflag 0x200
compare LASTRESULT 0x1
if 0x1 goto @AlreadyLearnt
msgbox @WantToLearn
boxset 0x5
compare LASTRESULT 0x0
if 0x1 goto @DontWant
setvar 0x8005 0x1 ' 0x[Move number]
special 0x18D
setflag 0x200
release
end
Comments & Bugs: You can use any number between 0 and F. That gives us 16 possible moves to

use. You can find all possible moves on this page

And if you want to change the move ,read this post

http://www.pokecommunity.com/showpost.php?p=4141210&postcount=258



Credits: Nintendo
 
Last edited:

Hiche..

 
979
Posts
15
Years
  • Seen Dec 27, 2014
I tried both of the Headbutt scripts, and neither of them work for me.

Spoiler:


Try this. It's XSE. In what way it does not work? Like, you click on the headbutt tree, and nothing happens, or something else? Because it worked perfectly in my ROM.

This is for the new version of XSE.
 
Last edited:

Hiche..

 
979
Posts
15
Years
  • Seen Dec 27, 2014
I edited it again.(Before you post now). replace jump with call. See it. Also, you have the new XSE, right? 1.1.1
 

hot_kage

I am like a rose cute and calm
35
Posts
15
Years
Tropical Sunlight said:
#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 up them?

#org @move1
#raw 0x1E 0x1E 0x1E 0xFE

i found the various pointers don't have parameters
@end has none
@jump has none
 

Sonikku17

Wanderer
18
Posts
15
Years
  • Age 32
  • Seen Aug 20, 2015
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?
 
Back
Top