Script Help Thread (DO NOT REQUEST SCRIPTS) Page 323

Started by HackMew December 20th, 2008 5:10 AM
  • 625760 views
  • 9682 replies

itman

Back to ROM hacking. :D

Age 29
Seen February 5th, 2014
Posted March 27th, 2013
98 posts
16 Years
First post straight to you guys! tried searching high and lo-tad for it.

Here it is: I want to remove HM05 "Flash" from the game in favor of an item that Oak gives you at the start.

I understand how to make an item given an empty space and have oak give it to you but don't know how to instigate an item into acting as a HM. Help? Thanks!

edit: I could just not have caves :\
I'm pretty sure if you use JPAN's hacked engine, it's a feature, and it's explained in the word document that comes with the patch.

karatekid552

What happens if I push it?....

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.5 Years
First post straight to you guys! tried searching high and lo-tad for it.

Here it is: I want to remove HM05 "Flash" from the game in favor of an item that Oak gives you at the start.

I understand how to make an item given an empty space and have oak give it to you but don't know how to instigate an item into acting as a HM. Help? Thanks!

edit: I could just not have caves :\
I know how to make an item that would have the same effect as flash: ie A flashlight, if that is the type of thing you are referring to.

As itman said, there is a way in JPAN's engine to create items that run scripts. However, this is not required to be used with JPAN's engine, as you are probably not using it already. In that case, see this thread for a routine which will run a script in an item: http://www.pokecommunity.com/showthread.php?t=281573

Now, if you wanted to make an HM type item which teaches a pokemon Flash, that will be much more difficult.

Paired with Simba

TweenyTodd

Quitting cuz i got a job

NOYB
Seen November 7th, 2020
Posted June 23rd, 2013
95 posts
10.2 Years
The problem you had was the script crashing. Mine didn't crash, and I know it worked because the spritefacing command worked. This means that (most likely) the flags were set too, but I didn't actually check.

The most important part here, is not the compile log, but the offsets given. Those settings in A-map: they are settings for my Map Script. Notice, they have the same offset as the compiler log. Those are what I was trying to show you. The only reason XSE was in the picture was so you could see how things lined up.
I think the offsets line up right, and im sure of the script. But the spriteface script doesn't work.
Spoiler:

Bolens

Soul Hacker

Age 29
Male
PA
Seen August 22nd, 2016
Posted March 28th, 2013
359 posts
13.4 Years
Game: Firered Type: Level Script Editor: XSE Script:
Spoiler:
#dynamic 0x745500

#org @start
lockall
msgbox @1 0x6
special 0x113
applymovement 0x7F @move
waitmovement 0x0
setvar 0x7002 0x1
msgbox @2 0x6
applymovement 0x2 @3
applymovement 0x3 @4
applymovement 0x5 @5
applymovement 0x7 @6
applymovement 0x8 @7
applymovement 0x9 @8
waitmovement 0x0
hidesprite 0x3
hidesprite 0x2
hidesprite 0x5
hidesprite 0x7
hidesprite 0x8
hidesprite 0x9
applymovement 0x7F @9
waitmovement 0x0
special 0x114
setflag 0x1005
releaseall
end

#org @1
= Mom: Help!!!!

#org @move
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE

#org @2
= Mom: Somebody please help me!\pGrunt 1: Stop screaming, we run\nthis city so no one can help\lyou.\pGrunt 2: Alright everyone,\nlet’s move out. The boss wants us\lto be in Yann Town in a couple of\lhours.\pGrunts: Yes sir!

#org @3
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @4
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @5
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @6
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @7
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @8
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @9
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE


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

~Bolens

Spherical Ice

Age 25
Leicester, UK
Seen 21 Hours Ago
Posted February 20th, 2022
5,251 posts
15.5 Years
Huh, I split up @2 into separate strings and now it compiles perfectly. I really dunno why, but here you go:

#dynamic 0x745500

#org @start
lockall
msgbox @1 0x6
special 0x113
applymovement 0x7F @move
waitmovement 0x0
setvar 0x7002 0x1
msgbox @2 0x6
msgbox @string1 0x6
msgbox @string3 0x6
applymovement 0x2 @3
applymovement 0x3 @4
applymovement 0x5 @5
applymovement 0x7 @6
applymovement 0x8 @7 
applymovement 0x9 @8
waitmovement 0x0
hidesprite 0x3
hidesprite 0x2 
hidesprite 0x5
hidesprite 0x7
hidesprite 0x8
hidesprite 0x9
applymovement 0x7F @9
waitmovement 0x0
special 0x114
setflag 0x1005
releaseall
end

#org @1
= Mom: Help!!!!

#org @move
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE

#org @2
= Mom: Somebody please help me!

#org @string1
= Grunt 1: Stop screaming, we run\nthis city so no one can help you.

#org @string3
= Grunt 2: Alright everyone, let's\nmove out.\pThe boss wants us to be in Yann\nTown in a couple of hours.\pGrunts: Yes sir!

#org @3
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @4
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @5
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @6
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @7
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @8
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @9
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

Bolens

Soul Hacker

Age 29
Male
PA
Seen August 22nd, 2016
Posted March 28th, 2013
359 posts
13.4 Years
Huh, I split up @2 into separate strings and now it compiles perfectly. I really dunno why, but here you go:

#dynamic 0x745500

#org @start
lockall
msgbox @1 0x6
special 0x113
applymovement 0x7F @move
waitmovement 0x0
setvar 0x7002 0x1
msgbox @2 0x6
msgbox @string1 0x6
msgbox @string3 0x6
applymovement 0x2 @3
applymovement 0x3 @4
applymovement 0x5 @5
applymovement 0x7 @6
applymovement 0x8 @7 
applymovement 0x9 @8
waitmovement 0x0
hidesprite 0x3
hidesprite 0x2 
hidesprite 0x5
hidesprite 0x7
hidesprite 0x8
hidesprite 0x9
applymovement 0x7F @9
waitmovement 0x0
special 0x114
setflag 0x1005
releaseall
end

#org @1
= Mom: Help!!!!

#org @move
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE

#org @2
= Mom: Somebody please help me!

#org @string1
= Grunt 1: Stop screaming, we run\nthis city so no one can help you.

#org @string3
= Grunt 2: Alright everyone, let's\nmove out.\pThe boss wants us to be in Yann\nTown in a couple of hours.\pGrunts: Yes sir!

#org @3
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @4
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @5
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @6
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @7
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @8
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @9
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE
Thanks so much! :) It is weird why XSE can be stubborn sometimes, many thanks.
Seen July 23rd, 2020
Posted June 24th, 2019
97 posts
14.2 Years
I wanted to add headbutt trees to my hack, and I found this script by google. It works until after you use headbutt, then the game just doesn't allow you to move, like it's missing somthing. How can this be fixed and actually produce a headbutt encounter?

Spoiler:
#dynamic 0x800000

#org @headbutt
checkattack 0x1D
compare 0x800D 0x06
if 0x1 jump @could
setanimation 0x00 0x800D
bufferpartypokemon 0x00 0x800D
bufferattack 0x01 0x1D
message @question MSG_YESNO
compare 0x800D 0x00
if 0x1 jump @end
message @used MSG_NORMAL
closeonkeypress
doanimation 0x25
waitstate
goto 0x1Be06F

#org @could
message @you MSG_NORMAL
release
end

#org @end
release
end

#org @question
= This tree could have a Pokemon\nin it. Use HEADBUTT?

#org @used
= [buffer1] used [buffer2]!

#org @you
= This tree could be HEADBUTTed!

karatekid552

What happens if I push it?....

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.5 Years
I think the offsets line up right, and im sure of the script. But the spriteface script doesn't work.
Spoiler:
It is perfect (except the image looks like it is setting flag 0x001 on the last line instead of 0x801, just an image problem I hope.) The only thing I can think of is you are not starting a new game when you test your script. This script will only run on a completely brand new game start because the variable is changed as soon as the game starts preventing the map script from running again.

Paired with Simba

Spherical Ice

Age 25
Leicester, UK
Seen 21 Hours Ago
Posted February 20th, 2022
5,251 posts
15.5 Years
I wanted to add headbutt trees to my hack, and I found this script by google. It works until after you use headbutt, then the game just doesn't allow you to move, like it's missing somthing. How can this be fixed and actually produce a headbutt encounter?

Spoiler:
#dynamic 0x800000

#org @headbutt
checkattack 0x1D
compare 0x800D 0x06
if 0x1 jump @could
setanimation 0x00 0x800D
bufferpartypokemon 0x00 0x800D
bufferattack 0x01 0x1D
message @question MSG_YESNO
compare 0x800D 0x00
if 0x1 jump @end
message @used MSG_NORMAL
closeonkeypress
doanimation 0x25
waitstate
goto 0x1Be06F

#org @could
message @you MSG_NORMAL
release
end

#org @end
release
end

#org @question
= This tree could have a Pokemon\nin it. Use HEADBUTT?

#org @used
= [buffer1] used [buffer2]!

#org @you
= This tree could be HEADBUTTed!
It says to go to 0x1be06f, but that might be corrupt in you ROM. Here's what the script meant to say:

#dynamic 0x800000

#org @headbutt
checkattack 0x1D
compare 0x800D 0x06
if 0x1 jump @could
setanimation 0x00 0x800D
bufferpartypokemon 0x00 0x800D
bufferattack 0x01 0x1D
message @question MSG_YESNO
compare 0x800D 0x00
if 0x1 jump @end
message @used MSG_NORMAL
closeonkeypress
doanimation 0x25
waitstate
goto @snippet2

#org @could
message @you MSG_NORMAL
release
end

#org @end
release
end

#org @question
= This tree could have a Pokemon\nin it. Use HEADBUTT?

#org @used
= [buffer1] used [buffer2]!

#org @you
= This tree could be HEADBUTTed!

#org @snippet2
applymovement LASTTALKED @move1
waitmovement 0x0
hidesprite LASTTALKED
special 0xAB
compare LASTRESULT 0x0
if 0x1 goto @snippet2
waitstate
releaseall
end

//---------------
#org @snippet2
releaseall
end


//-----------
// Movements
//-----------
#org @move1
#raw 0x68 //mov68
#raw 0xFE //End of Movements

karatekid552

What happens if I push it?....

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.5 Years
Spoiler:
I wanted to add headbutt trees to my hack, and I found this script by google. It works until after you use headbutt, then the game just doesn't allow you to move, like it's missing somthing. How can this be fixed and actually produce a headbutt encounter?

Spoiler:
#dynamic 0x800000

#org @headbutt
checkattack 0x1D
compare 0x800D 0x06
if 0x1 jump @could
setanimation 0x00 0x800D
bufferpartypokemon 0x00 0x800D
bufferattack 0x01 0x1D
message @question MSG_YESNO
compare 0x800D 0x00
if 0x1 jump @end
message @used MSG_NORMAL
closeonkeypress
doanimation 0x25
waitstate
goto 0x1Be06F

#org @could
message @you MSG_NORMAL
release
end

#org @end
release
end

#org @question
= This tree could have a Pokemon\nin it. Use HEADBUTT?

#org @used
= [buffer1] used [buffer2]!

#org @you
= This tree could be HEADBUTTed!
Animation 0x25 is the rock smash animation.... Oh, that is how it calls the pokemon. Does it freeze after or before you call the pokemon?

Also, could you post the script that is at 0x1Be06F? I have a feeling that is where your problem lies.


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

Paired with Simba
Seen July 23rd, 2020
Posted June 24th, 2019
97 posts
14.2 Years
Spoiler:


Animation 0x25 is the rock smash animation.... Oh, that is how it calls the pokemon. Does it freeze after or before you call the pokemon?

Also, could you post the script that is at 0x1Be06F? I have a feeling that is where your problem lies.


Spherical Ice, why do you have to be so fast?:p
@Spherical Ice, i',m getting a duplicate dynamic label in XSE.

@karatekid552
Spoiler:
'---------------
#org 0x1BE06F
applymovement LASTTALKED 0x81BE08F
waitmovement 0x0
hidesprite LASTTALKED
special 0xAB
compare LASTRESULT 0x0
if 0x1 goto 0x81BE08D
waitstate
releaseall
end

'---------------
#org 0x1BE08D
releaseall
end


'-----------
' Movements
'-----------
#org 0x1BE08F
#raw 0x68 'mov68
#raw 0xFE 'End of Movements

karatekid552

What happens if I push it?....

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.5 Years
@Spherical Ice, i',m getting a duplicate dynamic label in XSE.

@karatekid552
Spoiler:
'---------------
#org 0x1BE06F
applymovement LASTTALKED 0x81BE08F
waitmovement 0x0
hidesprite LASTTALKED
special 0xAB
compare LASTRESULT 0x0
if 0x1 goto 0x81BE08D
waitstate
releaseall
end

'---------------
#org 0x1BE08D
releaseall
end


'-----------
' Movements
'-----------
#org 0x1BE08F
#raw 0x68 'mov68
#raw 0xFE 'End of Movements
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?

Paired with Simba
Seen July 23rd, 2020
Posted June 24th, 2019
97 posts
14.2 Years
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?....

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.5 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.

Paired with Simba
Male
Seen March 29th, 2013
Posted March 25th, 2013
8 posts
10.5 Years
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...

Age 32
Male
Seen 3 Days Ago
Posted March 24th, 2023
8,579 posts
16 Years
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

Age 29
Male
PA
Seen August 22nd, 2016
Posted March 28th, 2013
359 posts
13.4 Years
Game: Firered Type: Level Script Editor: XSE Script:
Spoiler:
#dynamic 0x745800

#org @start
lockall
applymovement 0xFF @4
waitmovement 0x0
applymovement 0x9 @1
applymovement 0xA @2
waitmovement 0x0
msgbox @3 0x6
msgbox @string1 0x6
applymovement 0x9 @5
waitmovement 0x0
trainerbattle 0x0 0x5C 0x0 @6 @7
applymovement 0xA @8
waitmovement 0x0
trainerbattle 0x0 0x5D 0x0 @9 @10
msgbox @string2 0x6
giveitem 0x44 0x2 MSG_OBTAIN
msgbox @12 0x6
applymovement 0x9 @13
waitmovement 0x0
applymovement 0xA @14
waitmovement 0x0
hidesprite 0x9
hidesprite 0xA
setflag 0x1006
setvar 0x7003 0x1
releaseall
end

#org @1
#raw 0x62
#raw 0x3
#raw 0xFE

#org @2
#raw 0x62
#raw 0x3
#raw 0xFE

#org @3
= Grunt 1: Well look what we have\nhere, a nosy boy in our affairs.

#org @string1
= Grunt 2: Let’s teach him a\nlesson.

#org @4
#raw 0x11
#raw 0x11
#raw 0x2
#raw 0xFE

#org @5
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x3
#raw 0xFE

#org @6
= Prepare to lose!

#org @7
= How could you possibly defeat\nme!!!!

#org @8
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x0
#raw 0xFE

#org @9
= I won't be easily beaten unlike\nmy team mate!

#org @10
= Me too!! ugh!!

#org @string2
= Grunt 1: You beat us fair and\nsquare. Take these Rare Candies\lthey’ll help your Pokemon get\lstronger.

#org @12
= Grunt 2: Alright, we’ll be on\nour way, let’s go.

#org @13
#raw 0x10
#raw 0x13
#raw 0x10
#raw 0xFE

#org @14
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x0
#raw 0xFE

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

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.5 Years
Game: Firered Type: Level Script Editor: XSE Script:
Spoiler:
#dynamic 0x745800

#org @start
lockall
applymovement 0xFF @4
waitmovement 0x0
applymovement 0x9 @1
applymovement 0xA @2
waitmovement 0x0
msgbox @3 0x6
msgbox @string1 0x6
applymovement 0x9 @5
waitmovement 0x0
trainerbattle 0x0 0x5C 0x0 @6 @7
applymovement 0xA @8
waitmovement 0x0
trainerbattle 0x0 0x5D 0x0 @9 @10
msgbox @string2 0x6
giveitem 0x44 0x2 MSG_OBTAIN
msgbox @12 0x6
applymovement 0x9 @13
waitmovement 0x0
applymovement 0xA @14
waitmovement 0x0
hidesprite 0x9
hidesprite 0xA
setflag 0x1006
setvar 0x7003 0x1
releaseall
end

#org @1
#raw 0x62
#raw 0x3
#raw 0xFE

#org @2
#raw 0x62
#raw 0x3
#raw 0xFE

#org @3
= Grunt 1: Well look what we have\nhere, a nosy boy in our affairs.

#org @string1
= Grunt 2: Let’s teach him a\nlesson.

#org @4
#raw 0x11
#raw 0x11
#raw 0x2
#raw 0xFE

#org @5
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x3
#raw 0xFE

#org @6
= Prepare to lose!

#org @7
= How could you possibly defeat\nme!!!!

#org @8
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x0
#raw 0xFE

#org @9
= I won't be easily beaten unlike\nmy team mate!

#org @10
= Me too!! ugh!!

#org @string2
= Grunt 1: You beat us fair and\nsquare. Take these Rare Candies\lthey’ll help your Pokemon get\lstronger.

#org @12
= Grunt 2: Alright, we’ll be on\nour way, let’s go.

#org @13
#raw 0x10
#raw 0x13
#raw 0x10
#raw 0xFE

#org @14
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x0
#raw 0xFE

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.

Paired with Simba

tajaros

Hi I'm dawg

Age 24
Male
Philippines
Seen August 7th, 2015
Posted April 15th, 2013
855 posts
11.1 Years
Game: Firered Type: Level Script Editor: XSE Script:
Spoiler:
#dynamic 0x745800

#org @start
lockall
applymovement 0xFF @4
waitmovement 0x0
applymovement 0x9 @1
applymovement 0xA @2
waitmovement 0x0
msgbox @3 0x6
msgbox @string1 0x6
applymovement 0x9 @5
waitmovement 0x0
trainerbattle 0x0 0x5C 0x0 @6 @7
applymovement 0xA @8
waitmovement 0x0
trainerbattle 0x0 0x5D 0x0 @9 @10
msgbox @string2 0x6
giveitem 0x44 0x2 MSG_OBTAIN
msgbox @12 0x6
applymovement 0x9 @13
waitmovement 0x0
applymovement 0xA @14
waitmovement 0x0
hidesprite 0x9
hidesprite 0xA
setflag 0x1006
setvar 0x7003 0x1
releaseall
end

#org @1
#raw 0x62
#raw 0x3
#raw 0xFE

#org @2
#raw 0x62
#raw 0x3
#raw 0xFE

#org @3
= Grunt 1: Well look what we have\nhere, a nosy boy in our affairs.

#org @string1
= Grunt 2: Let’s teach him a\nlesson.

#org @4
#raw 0x11
#raw 0x11
#raw 0x2
#raw 0xFE

#org @5
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x3
#raw 0xFE

#org @6
= Prepare to lose!

#org @7
= How could you possibly defeat\nme!!!!

#org @8
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x0
#raw 0xFE

#org @9
= I won't be easily beaten unlike\nmy team mate!

#org @10
= Me too!! ugh!!

#org @string2
= Grunt 1: You beat us fair and\nsquare. Take these Rare Candies\lthey’ll help your Pokemon get\lstronger.

#org @12
= Grunt 2: Alright, we’ll be on\nour way, let’s go.

#org @13
#raw 0x10
#raw 0x13
#raw 0x10
#raw 0xFE

#org @14
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x0
#raw 0xFE

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

Male
United States
Seen January 8th, 2015
Posted December 31st, 2014
995 posts
11.5 Years
Hello, PokeCommunity. I am having some trouble with this script:

#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?....

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.5 Years
Hello, PokeCommunity. I am having some trouble with this script:

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

Paired with Simba

Renegade

Time for real life...

Male
United States
Seen January 8th, 2015
Posted December 31st, 2014
995 posts
11.5 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.