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

Script Help Thread (DO NOT REQUEST SCRIPTS)

Status
Not open for further replies.

karatekid552

What happens if I push it?....
1,771
Posts
11
Years
Spoiler:


Spherical Ice, why do you have to be so fast?:p
 

Crocky

SuperScarlet!
97
Posts
15
Years
  • Seen Jul 23, 2020
Spoiler:


Spherical Ice, why do you have to be so fast?:p

@Spherical Ice, i',m getting a duplicate dynamic label in XSE.

@karatekid552
Spoiler:
 

karatekid552

What happens if I push it?....
1,771
Posts
11
Years
@Spherical Ice, i',m getting a duplicate dynamic label in XSE.

@karatekid552
Spoiler:

He used @snippit2 twice. Now, to compare his and the original scripts....

They are the same, it should have worked. Can you explain where exactly it freezes and what you have attached this script to?
 

Crocky

SuperScarlet!
97
Posts
15
Years
  • Seen Jul 23, 2020
He used @snippit2 twice. Now, to compare his and the original scripts....

They are the same, it should have worked. Can you explain where exactly it freezes and what you have attached this script to?

I found the fix haha. I had it on a sign instead of person event. I put it on a Cut Tree and now when I use the headbutt, it shows the cut animation and it looks kind of odd, but it works. Is there any way to change it/remove the cut animation altogether for headbutt trees?
 

karatekid552

What happens if I push it?....
1,771
Posts
11
Years
I found the fix haha. I had it on a sign instead of person event. I put it on a Cut Tree and now when I use the headbutt, it shows the cut animation and it looks kind of odd, but it works. Is there any way to change it/remove the cut animation altogether for headbutt trees?

Yes, you could attach it to regular trees which won't be animated because they aren't OWs, but rather tiles. The best and most efficient way would be to create a new behavior byte. I recently saw a tut in the tutorials section for it, and I know that JPAN's Hacked Engine has it. I also remember a thread somewhere in R&D or in the tutorial section specifically pertaining to headbutt trees. This should help you find your answer.
 
8
Posts
11
Years
  • Seen Mar 29, 2013
This script should be a script that allows you to buy TMs from a NPC. Instead it freezes the game. Does anyone know what i did wrong? And also is there a tool that allows me to change the price of an item's in game worth, such as an ultra ball costing 600?


#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @1 0x6
pokemart @values
release
end

@org @1
= I sell TMs.

#org @values
#raw word 0x14B
#raw word 0x14D
#raw word 0x13C
#raw word 0x13A
#raw word 0x14A
#raw word 0x0
 

destinedjagold

You can contact me in PC's discord server...
8,593
Posts
16
Years
  • Age 33
  • Seen Dec 23, 2023
This script should be a script that allows you to buy TMs from a NPC. Instead it freezes the game. Does anyone know what i did wrong? And also is there a tool that allows me to change the price of an item's in game worth, such as an ultra ball costing 600?


#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @1 0x6
pokemart @values
release
end

@org @1
= I sell TMs.

#org @values
#raw word 0x14B
#raw word 0x14D
#raw word 0x13C
#raw word 0x13A
#raw word 0x14A
#raw word 0x0

Error in color red.
Also, I've heard that sometimes it glitches if you'll use a number as an address, which is colored blue.
Though I couldn't really be sure of that, since I've not yet encountered such problems.

Anyway, for your second question, I believe thethethethe's item editing tool can do that. Not sure though.
 

Bolens

Soul Hacker
359
Posts
14
Years
  • Age 30
  • PA
  • Seen Aug 22, 2016
Game: Firered Type: Level Script Editor: XSE Script:
Spoiler:

Problem: XSE crashes whenever I try to compile this into my ROM. This keeps happening, IDK why. Hopefully someone can help, thanks guys.

~Bolens
 

karatekid552

What happens if I push it?....
1,771
Posts
11
Years
Game: Firered Type: Level Script Editor: XSE Script:
Spoiler:

Problem: XSE crashes whenever I try to compile this into my ROM. This keeps happening, IDK why. Hopefully someone can help, thanks guys.

~Bolens

I see no reason why XSE should be crashing. Are you using v1.1.1? Also, I see that you are using flags over 0x900. You do know the potential consequences if you aren't careful, right? (I am assuming you have been around a while:p)

The only possibilies are you have a faulty copy of XSE, or it doesn't like your @# labels. Try using words; it may work. I have written scripts ten times longer than this with no problems, so it shouldn't be the volume of your script which is causeing it.
 

tajaros

Hi I'm dawg
855
Posts
11
Years
Game: Firered Type: Level Script Editor: XSE Script:
Spoiler:

Problem: XSE crashes whenever I try to compile this into my ROM. This keeps happening, IDK why. Hopefully someone can help, thanks guys.

~Bolens

Nothing seems to be wrong by the script itself the only thing I noticed is that you used flags greater than 0x900 please refrain from using those, Instead use flags from 0x200-0x2FF since they are more storyline related flags.

Also do not use setvar 0x7000 change it to something else.

And as for the crashing must be your XSE or comp making problems for that. May I know what OS are you using?
 

Renegade

Time for real life...
995
Posts
12
Years
Hello, PokeCommunity. I am having some trouble with this script:

Code:
#dynamic 0x800000

#org @start
lockall
applymovement 0xFF @m1
waitmovement 0x0
message @t1 6
applymovement 0xFF @m2
waitmovement 0x0
message @t2 6
applymovement 0x7 @m3
waitmovement 0x0
message @t3 6
fadesong 0x0000
message @t4 6
special 0x113
applymovement 0xFF @m4
applymovement 0x7 @m5
waitmovement 0x0
hidesprite 0x7
hidesprite 0xFF
pause 0x20
applymovement 0x7F @m6
waitmovement 0x0
setflag 0x502
setvar 0x5002 0x1
warpmuted 0x11 0x0 0xFF 0x5 0x5
releaseall
end

#org @m6
#raw 0x17
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0xA
#raw 0xA
#raw 0xFE

#org @m4
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0xB
#raw 0x8
#raw 0xB
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0xFE

#org @m5
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0xB
#raw 0x8
#raw 0xB
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0xFE

#org @t4
= \v\h01: (A... A dive?\nI don't remember that...)\p\v\h01: (Who is this man?)\pYou look kind of... lost.\nMaybe you should come to my\lplace for a while.\pWe can have some coffee or\nsomething.\pLet's go, I'll show you the way.

#org @t3
= Excuse me, are you okay? You sure\ntook a dive to the ground!

#org @t2
= \v\h01: (Somebody's coming this\nway!)

#org @m3
#raw 0x9
#raw 0x9
#raw 0xA
#raw 0x9
#raw 0x10
#raw 0x56
#raw 0x14
#raw 0x9
#raw 0x9
#raw 0xA
#raw 0x9
#raw 0xFE

#org @m2
#raw 0x56
#raw 0xFE

#org @t1
= \v\h01: (Where am I, now?\nWhere did REGIROCK go?)

#org @m1
#raw 0x3
#raw 0x14
#raw 0x14
#raw 0x2
#raw 0x14
#raw 0x14
#raw 0x1
#raw 0x14
#raw 0x14
#raw 0x0
#raw 0xFE

The script works exactly how I want it to, except when it gets to the "warpmuted" command at the end. It is supposed to warp the character to an interior (house), but the game freezes on a black screen when it tries to warp the character. Any ideas?
 

karatekid552

What happens if I push it?....
1,771
Posts
11
Years
Hello, PokeCommunity. I am having some trouble with this script:

Code:
#dynamic 0x800000

#org @start
lockall
applymovement 0xFF @m1
waitmovement 0x0
message @t1 6
applymovement 0xFF @m2
waitmovement 0x0
message @t2 6
applymovement 0x7 @m3
waitmovement 0x0
message @t3 6
fadesong 0x0000
message @t4 6
special 0x113
applymovement 0xFF @m4
applymovement 0x7 @m5
waitmovement 0x0
hidesprite 0x7
hidesprite 0xFF
pause 0x20
applymovement 0x7F @m6
waitmovement 0x0
setflag 0x502
setvar 0x5002 0x1
warpmuted 0x11 0x0 0xFF 0x5 0x5
releaseall
end

#org @m6
#raw 0x17
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0xA
#raw 0xA
#raw 0xFE

#org @m4
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0xB
#raw 0x8
#raw 0xB
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0xFE

#org @m5
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0xB
#raw 0x8
#raw 0xB
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0xFE

#org @t4
= \v\h01: (A... A dive?\nI don't remember that...)\p\v\h01: (Who is this man?)\pYou look kind of... lost.\nMaybe you should come to my\lplace for a while.\pWe can have some coffee or\nsomething.\pLet's go, I'll show you the way.

#org @t3
= Excuse me, are you okay? You sure\ntook a dive to the ground!

#org @t2
= \v\h01: (Somebody's coming this\nway!)

#org @m3
#raw 0x9
#raw 0x9
#raw 0xA
#raw 0x9
#raw 0x10
#raw 0x56
#raw 0x14
#raw 0x9
#raw 0x9
#raw 0xA
#raw 0x9
#raw 0xFE

#org @m2
#raw 0x56
#raw 0xFE

#org @t1
= \v\h01: (Where am I, now?\nWhere did REGIROCK go?)

#org @m1
#raw 0x3
#raw 0x14
#raw 0x14
#raw 0x2
#raw 0x14
#raw 0x14
#raw 0x1
#raw 0x14
#raw 0x14
#raw 0x0
#raw 0xFE

The script works exactly how I want it to, except when it gets to the "warpmuted" command at the end. It is supposed to warp the character to an interior (house), but the game freezes on a black screen when it tries to warp the character. Any ideas?

There are only two reasons that come to mind:

1) Your warpmuted command is broken. (Highly unlikely)
2) You confused Hex and Dec. 0x11 = 17d. Make sure you didn't get confused, it is a common mistake.
 

Renegade

Time for real life...
995
Posts
12
Years
There are only two reasons that come to mind:

1) Your warpmuted command is broken. (Highly unlikely)
2) You confused Hex and Dec. 0x11 = 17d. Make sure you didn't get confused, it is a common mistake.

Nah, I was just on my way to delete my question, haha. It turns out the map I was warping to is corrupted. I just have to warp to a different map.
 
29
Posts
11
Years
  • Age 24
  • Seen Mar 13, 2022
I hope I am posting in the right thread, but I am trying to create a script for a selection...
So, I want to give choices, like:
Slowpoke
Polywag
Mew​
Choose a pokemon.
 

karatekid552

What happens if I push it?....
1,771
Posts
11
Years
I hope I am posting in the right thread, but I am trying to create a script for a selection...
So, I want to give choices, like:
Slowpoke
Polywag
Mew​
Choose a pokemon.

You would need to create a multi choice box and utilize it. There is a tut in the Tutorials section for creating new ones and diegoisawesome's tutorial covers using them.
 
29
Posts
11
Years
  • Age 24
  • Seen Mar 13, 2022
Game: Firered
Type: Person

When I enter the lab and speak to it, nothing happens... It should continue asking me questions until it ends, but it does nothing...

Spoiler:
 

karatekid552

What happens if I push it?....
1,771
Posts
11
Years
Game: Firered
Type: Person

When I enter the lab and speak to it, nothing happens... It should continue asking me questions until it ends, but it does nothing...

Spoiler:

First of all, no flags over 900, see thise post: http://www.pokecommunity.com/showpost.php?p=6829256&postcount=158

Now, you are close when it comes to yes/no boxes, but you are missing a line:

It should be:

msgbox @1 0x5
compare 0x800D 0x1
if 0x1 goto @dragonite

You need to check and see if they said yes. Before you only saw, you didn't check:p

Also, you need to use a msgbox command to show the text at @games. Otherwise with will try and read the characters as scripting commands.
 
Status
Not open for further replies.
Back
Top