Script Help Thread (DO NOT REQUEST SCRIPTS) Page 110

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

NarutoActor

The rocks cry out to me

Age 29
Female
Brooklyn/Marlboro
Seen April 2nd, 2016
Posted March 22nd, 2016
1,974 posts
14.4 Years
mmm.. thats odd try this script
#dynamic 0x700000

#org @start
lock
msgbox @mes MSG_FACE
release
end

#org @mes
= Hi! Welcome to Pallet Town!
~There are those people who understand hex, F the rest

TB Pro

Old-timer

Age 28
Male
Midwestern USA
Seen March 6th, 2016
Posted October 4th, 2012
2,707 posts
18.5 Years
mmm.. thats odd try this script
#dynamic 0x700000

#org @start
lock
msgbox @mes MSG_FACE
release
end

#org @mes
= Hi! Welcome to Pallet Town!
or just

#dynamic 0x800000

#org @begin
msgbox @talk 0x2
end

#org @talk
= words
--I'm a creepin'..

TB Pro

Old-timer

Age 28
Male
Midwestern USA
Seen March 6th, 2016
Posted October 4th, 2012
2,707 posts
18.5 Years
Where do I place the offset to activate the Pokemon Menu option?
Add-on- NarutoActor, the offset is 0x828, for your information.
Spoiler:
#org $start
lock
faceplayer
checkflag 0x200
if b_true goto $done
message $1
boxset 5
compare LASTRESULT 0x1
if b_true goto $take
message $2
boxset 6
release
end

#org $take
givepokemon 155 5 139
fanfare 0x13E
message $3
boxset 4
waitfanfare
#raw 0x68
setflag 0x200
message $4
boxset 5
compare LASTRESULT 0x1
if b_true gosub $name
message $5
boxset 6
release
end

#org $name
call 0x1A74EB
return

#org $done
message $6
boxset 6
release
end

#org $1
$1 1 =You need Pokémon to go to Slowpoke\nWell. You want one?

#org $2
$2 1 =You'll be back! I'm certain of it!

#org $3
$3 1 =\c\h01\h02You received a CYNDAQUIL!

#org $4
$4 1 =\c\h01\h02Would you like to give a nickname to\nCYNDAQUIL?

#org $5
$5 1 =You made the right choice.

#org $6
$6 1 =Take good care of that CYNDAQUIL.\nYou hear me?


I have no clue where it goes. Thanks in advance.
Basically anywhere before the givepokemon, though it's usually one line before it.

EDIT ======================>

Okay my headbutt tree script isnt working. Everything works, but there is no Pokemon battle, even if I set the encounter rate to 100% halpz?

#dynamic 0x800000

#org @begin
checkattack 0x1D
compare 0x800D 0x6
if 0x1 goto @[couldbeheadbutted]
setanimation 0x0 0x800D
bufferpartypokemon 0x00 0x800D
bufferattack 0x1 0x1D
msgbox @[question] 0x5
compare 0x800D 0x0
if 0x1 goto @end
msgbox @[usedheadbutt] 0x6
closeonkeypress
doanimation 0x25
waitstate
goto @[pointertocontinuefrom]

#org @[couldbeheadbutted]
msgbox @[headbutttree] 0x6
release
end

#org @[question]
= A Pokémon could be hiding in this\ntree.\pShould [buffer1] use [buffer2]?

#org @end
release
end

#org @[usedheadbutt]
= [buffer1] used [buffer2].

#org @[headbutttree]
= This tree could be headbutted.

#org @[pointertocontinuefrom]
applymovement 0x800F @[pointer]
waitmovement 0
special 0xAB
releaseall
end

#org @[pointer]
#raw 0x0 0xFE
--I'm a creepin'..
Female
bungalow
Seen December 11th, 2010
Posted July 24th, 2010
8 posts
13.7 Years
I'm using JPAN's hacked Fire Red engine for my hack and scripting has been going well until I realized that due to my remapping that it has glitched up where the player goes when they "blackout/whiteout". I was wondering how I change this...it seems to be a scripting issue so I thought I'd ask it here. Is this just a matter of setting flags somewhere...?

0m3GA ARS3NAL

Im comin' home...

Age 30
Male
Superjail Penitentiary
Seen February 25th, 2023
Posted September 12th, 2013
1,816 posts
15.3 Years
I'm using JPAN's hacked Fire Red engine for my hack and scripting has been going well until I realized that due to my remapping that it has glitched up where the player goes when they "blackout/whiteout". I was wondering how I change this...it seems to be a scripting issue so I thought I'd ask it here. Is this just a matter of setting flags somewhere...?
You have to have a level script in your Pokemon Centers (And Other healing locations)
that include the "sethealingplace" command.
An easy way you could do this is just remove the level script from a clean Fire Red rom, and insert it directly into your hacked one.
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
Seen October 17th, 2011
Posted April 21st, 2010
109 posts
14.6 Years
Whats wrong with this script?

oncompilde:
Spoiler:
#dynamic 0x800000

#org @main
lock
faceplayer
checkflag 0x828
if 0x1 goto @nopokémon
message @pokémon 0x6
release
end

#org @pokémon
message @yespokémon 0x6
fadescreen 0x1
hidesprite 0x800F
setflag 0x1000
fadescreen 0x0
release
end

#org @nopokémon
= Isn't the nature wonderfull? Maby\nyou like to take a look at the\lbreeding farm

#org @yespokémon
= You have get a Gligar at the\nBreedig farm I see?



Compild

Spoiler:
'---------------
#org 0x800749
lock
faceplayer
checkflag 0x828
if 0x1 goto 0x8800774
msgbox 0x880075F MSG_NORMAL '"Ô KÊ\h80ËÌÉ\h97À[PK]Ô\h80ñ Œ\h97 \..."
release
end

'---------------
#org 0x800774
cmdc3 0xE7

'---------
' Strings
'---------
#org 0x80075F
= Ô KÊ\h80ËÌÉ\h97À[PK]Ô\h80ñ Œ\h97 \h6CÁ


Can some buddy help me?
Seen December 25th, 2009
Posted December 25th, 2009
3 posts
13.5 Years
Can someone help me? I'm having trouble with warp scripts. Here's one that I recently put together.

'---------------
#org 0x801240
lock
faceplayer
countpokemon
compare LASTRESULT 0x1
if 0x1 goto 0x880125C
release
end
'---------------
#org 0x80125C
lock
faceplayer
warp 0x18 0x58 0x0 0x0 0x0
release
end
Basically, if the player has 1 pokemon in his party, he warps, if he has more or less, he doesn't warp. I want the player to warp to (24,88) or (18,58) in hex. Unfortunately, when I use this script, the game just freezes.

Sierraffinity

Retiring from Pokémon ROM hacking

Age 26
she/her
Somewhere the rains of Africa can be blessed
Seen January 8th, 2023
Posted December 26th, 2022
1,071 posts
15.4 Years
I'm using JPAN's hacked Fire Red engine for my hack and scripting has been going well until I realized that due to my remapping that it has glitched up where the player goes when they "blackout/whiteout". I was wondering how I change this...it seems to be a scripting issue so I thought I'd ask it here. Is this just a matter of setting flags somewhere...?
You have to have a level script in your Pokemon Centers (And Other healing locations)
that include the "sethealingplace" command.
An easy way you could do this is just remove the level script from a clean Fire Red rom, and insert it directly into your hacked one.
Actually, using JPAN's hacked engine mans that only using sethealingplace no longer works. You need to set a few variables to the map bank, X, and Y positions of your healing place. Look at the documentation and search for "sethealingplace" in it.
Restarted and revamped.

Public alpha out now!

Darthatron

巨大なトロール。

Age 31
Male
Melbourne, Australia
Seen February 2nd, 2015
Posted October 28th, 2014
1,152 posts
17.4 Years
Whats wrong with this script?

oncompilde:
Spoiler:
#dynamic 0x800000

#org @main
lock
faceplayer
checkflag 0x828
if 0x0 goto @pokémon
message @yespokémon 0x6
fadescreen 0x1
hidesprite 0x800F
setflag 0x1000
fadescreen 0x0

release
end

#org @pokémon
message @nopokémon 0x6
release
end

#org @nopokémon
= Isn't the nature wonderfull? Maby\nyou like to take a look at the\lbreeding farm

#org @yespokémon
= You have get a Gligar at the\nBreedig farm I see?



Can some buddy help me?
Simply put, your msgbox function points to something that isn't text, and your goto function points to text. I attempted to fix your script, though I'm not really sure what it was meant to do... Fixes are in bold.

Can someone help me? I'm having trouble with warp scripts. Here's one that I recently put together.

'---------------
#org 0x801240
lock
faceplayer
countpokemon
compare LASTRESULT 0x1
if 0x1 goto 0x880125C
release
end
'---------------
#org 0x80125C
warpmuted 0x18 0x58 0x0 0x0 0x0
release
end
Basically, if the player has 1 pokemon in his party, he warps, if he has more or less, he doesn't warp. I want the player to warp to (24,88) or (18,58) in hex. Unfortunately, when I use this script, the game just freezes.
Try that, it seemed to fix the problem when I had a similar one. Also, you didn't need a second 'lock' and 'faceplayer' after your 'goto'.

EDIT: Also, make sure you have a warp on the map you are warping to. ;)
あなた は しきしゃ です
わたし は ばか です
Age 27
Male
Slovenia
Seen March 30th, 2015
Posted July 24th, 2013
3,475 posts
15.2 Years
ROM: FireRed
Scripted in: XSE
Script: Person
Actual script:
Spoiler:
#dynamic 0x000000

#org @start
lock
faceplayer
checkflag 0x1581
compare LASTRESULT 0x1
if 0x1 goto @1581set
checkflag 0x1580
compare LASTRESULT 0x1
if 0x1 goto @1580set
checkitem ITEM_MOOMOOMILK 2
compare LASTRESULT 0x1
if 0x1 goto @havethemilk
checkflag 0x1582
compare LASTRESULT 0x1
if 0x1 goto @1582set
msgbox @wygb MSG_NORMAL
setflag 0x1582
release
end

#org @1581set
msgbox @sell MSG_NORMAL
pokemart @pokemart
release
end

#org @1582set
msgbox @getbusy MSG_NORMAL
release
end

#org @havethemilk
removeitem ITEM_MOOMOOMILK 2
msgbox @gimmethemilk MSG_NORMAL
setflag 0x1580
release
end

#org @1580set
checkitem ITEM_GREPABERRY 1
compare LASTRESULT 0x1
if 0x1 goto @havetheberry
msgbox @youonly MSG_NORMAL
release
end

#org @havetheberry
removeitem ITEM_LEEMONBERRY 1
msgbox @gimmetheberry MSG_NORMAL
applymovement LASTTALKED @moveup
pause 0x100
applymovement LASTTALKED @movedown
msgbox @deserve MSG_NORMAL
giveitem ITEM_GOLDTEETH 1 MSG_OBTAIN
setflag 0x1581
release
end

#org @gimmethemilk
= RYAN: You got the MOOMOO MILK!\nGive it to me now.

#org @wygb
= RYAN: Hey, [player]!\nSo you're here eh?\pRYAN: If I can recall, you need a\nPIKA-CHEW, correct?\pRYAN: Ah, I'm sorry to disappoint\nyou, but I've ran out of the basic\lingredients for it.\pRYAN: I need [fr_blue]2 bottles of MOOMOO\nMILK and a LEEMON BERRY[black_fr].\pRYAN: Bring me those and I'll make\nyou a PIKA-CHEW free of charge.

#org @youonly
= RYAN: I only need a LEEMON BERRY\nnow.

#org @gimmethemilk
= RYAN: You got the LEEMON BERRY!\nGive it to me now.

#org @getbusy
= RYAN: Chop-chop, get busy!\pRemember, I need [fr_blue]2 bottles of\nMOOMOO MILK and a LEEMON BERRY[black_fr].

#org @deserve
= RYAN: Here you go, buddy!\nYou deserve it! Use it wisely.

#org @sell
= RYAN: Hello, dear friend! I have a\nspecial discount just for you!\pNow, what can I do for you?

#org @pokemart
#raw word ITEM_BERRYJUICE
#raw word ITEM_RARECANDY
#raw word 0x0

#org @moveup
#raw 0x11 0x13 0x11 0x60 0xFE

#org @movedown
#raw 0x10 0x12 0x10 0x61 0xFE

Don't mind the offset.

Compiled:
Spoiler:
#include stditems.rbh

;---------------
#org 0x80F00B
lock
faceplayer
checkflag 0x1651
compare LASTRESULT 0x1
if 0x1 goto 0x880F055
checkflag 0x1580
compare LASTRESULT 0x1
if 0x1 goto 0x88104B8
checkitem ITEM_MOOMOOMILK 0x2
compare LASTRESULT 0x1
if 0x1 goto 0x880FFE0
checkflag 0x1852
compare LASTRESULT 0x1
if 0x1 goto 0x880F065
msgbox 0x8810CEC MSG_NORMAL ;"RYAN: Hey, [player]!\nSo you're he..."
setflag 0x1852
release
end

;---------------
#org 0x80F055
msgbox 0x8810F27 MSG_NORMAL ;"RYAN: Hello, dear friend! I have a..."
pokemart 0x8810F87
release
end

;---------------
#org 0x8104B8
checkitem ITEM_GREPABERRY 0x1
compare LASTRESULT 0x1
if 0x1 goto 0x88104D3
msgbox 0x8810E28 MSG_NORMAL ;"RYAN: I only need a LEEMON BERRY\n..."
release
end

;---------------
#org 0x80FFE0
removeitem ITEM_MOOMOOMILK 0x2
msgbox 0x881050B MSG_NORMAL ;"RYAN: You got the MOOMOO MILK!\nGi..."
setflag 0x1580
release
end

;---------------
#org 0x80F065
msgbox 0x8810E85 MSG_NORMAL ;"RYAN: Chop-chop, get busy!\pRememb..."
release
end

;---------------
#org 0x8104D3
removeitem ITEM_GREPABERRY 0x1
msgbox 0x8810E50 MSG_NORMAL ;"RYAN: You got the LEEMON BERRY!\nG..."
applymovement LASTTALKED 0x8810F8E
pause 0x100
applymovement LASTTALKED 0x8810F94
msgbox 0x8810EEC MSG_NORMAL ;"RYAN: Here you go, buddy!\nYou des..."
giveitem ITEM_GOLDTEETH 0x1 MSG_OBTAIN
setflag 0x1651
release
end

;---------
; Strings
;---------
#org 0x810CEC
= RYAN: Hey, [player]!\nSo you're here eh?\pRYAN: If I can recall, you need a\nPIKA-CHEW, correct?\pRYAN: Ah, I'm sorry to disappoint\nyou, but I've ran out of the basic\lingredients for it.\pRYAN: I need [blue_fr]2 bottles of MOOMOO\nMILK and a LEEMON BERRY[red_fr].\pRYAN: Bring me those and I'll make\nyou a PIKA-CHEW free of charge.

#org 0x810F27
= RYAN: Hello, dear friend! I have a\nspecial discount just for you!\pNow, what can I do for you?

#org 0x810E28
= RYAN: I only need a LEEMON BERRY\nnow.

#org 0x81050B
= RYAN: You got the MOOMOO MILK!\nGive it to me now.

#org 0x810E85
= RYAN: Chop-chop, get busy!\pRemember, I need fr blue 2 bottles of\nMOOMOO MILK and a LEEMON BERRY[black_fr].

#org 0x810E50
= RYAN: You got the LEEMON BERRY!\nGive it to me now.

#org 0x810EEC
= RYAN: Here you go, buddy!\nYou deserve it! Use it wisely.

;-----------
; Movements
;-----------
#org 0x810F8E
#raw 0x11 ;Step Up (Normal)
#raw 0x13 ;Step Right (Normal)
#raw 0x11 ;Step Up (Normal)
#raw 0x60 ;Hide
#raw 0xFE ;End of Movements
#org 0x810F94
#raw 0x10 ;Step Down (Normal)
#raw 0x12 ;Step Left (Normal)
#raw 0x10 ;Step Down (Normal)
#raw 0x61 ;Show
#raw 0xFE ;End of Movements

;-----------
; MartItems
;-----------
#org 0x810F87
#raw word ITEM_BERRYJUICE
#raw word ITEM_RARECANDY
#raw word ITEM_NONE

Pokepal17

More cowbell~

Age 28
Male
Steeltown
Seen July 7th, 2011
Posted May 22nd, 2011
1,517 posts
14.6 Years
ROM: FireRed
Scripted in: XSE
Script: Person
Actual script:
Spoiler:
#dynamic 0x000000

#org @start
lock
faceplayer
checkflag 0x1581
if 0x1 goto @1581set
checkflag 0x1580
if 0x1 goto @1580set
checkitem ITEM_MOOMOOMILK 2
compare LASTRESULT 0x1
if 0x1 goto @havethemilk
checkflag 0x1582
if 0x1 goto @1582set
msgbox @wygb MSG_NORMAL
setflag 0x1852
release
end

#org @1581set
msgbox @sell MSG_NORMAL
pokemart @pokemart
release
end

#org @1582set
msgbox @getbusy MSG_NORMAL
release
end

#org @havethemilk
removeitem ITEM_MOOMOOMILK 2
msgbox @gimmethemilk MSG_NORMAL
setflag 0x1580
release
end

#org @1580set
checkitem ITEM_GREPABERRY 1
compare LASTRESULT 0x1
if 0x1 goto @havetheberry
msgbox @youonly MSG_NORMAL
release
end

#org @havetheberry
removeitem ITEM_LEEMONBERRY 1
msgbox @gimmetheberry MSG_NORMAL
applymovement LASTTALKED @moveup
pause 0x100
applymovement LASTTALKED @movedown
msgbox @deserve MSG_NORMAL
giveitem ITEM_GOLDTEETH 1 MSG_OBTAIN
setflag 0x1581
release
end

#org @gimmethemilk
= RYAN: You got the MOOMOO MILK!\nGive it to me now.

#org @wygb
= RYAN: Hey, [player]!\nSo you're here eh?\pRYAN: If I can recall, you need a\nPIKA-CHEW, correct?\pRYAN: Ah, I'm sorry to disappoint\nyou, but I've ran out of the basic\lingredients for it.\pRYAN: I need [fr_blue]2 bottles of MOOMOO\nMILK and a LEEMON BERRY[black_fr].\pRYAN: Bring me those and I'll make\nyou a PIKA-CHEW free of charge.

#org @youonly
= RYAN: I only need a LEEMON BERRY\nnow.

#org @gimmethemilk
= RYAN: You got the LEEMON BERRY!\nGive it to me now.

#org @getbusy
= RYAN: Chop-chop, get busy!\pRemember, I need [fr_blue]2 bottles of\nMOOMOO MILK and a LEEMON BERRY[black_fr].

#org @deserve
= RYAN: Here you go, buddy!\nYou deserve it! Use it wisely.

#org @sell
= RYAN: Hello, dear friend! I have a\nspecial discount just for you!\pNow, what can I do for you?

#org @pokemart
#raw word ITEM_BERRYJUICE
#raw word ITEM_RARECANDY
#raw word 0x0

#org @moveup
#org 0x11 0x13 0x11 0x60 0xFE

#org @movedown
#org 0y10 0x12 0x10 0x61 0xFE

Don't mind the offset.
You didn't tell us the problem. :D

Anyway, I think I know.

Checkflag doesn't use a compare.

So it would be:

Checkflag 0xflag
if 0x1 goto @pointer.
Pokémon Stardrop
Age 27
Male
Slovenia
Seen March 30th, 2015
Posted July 24th, 2013
3,475 posts
15.2 Years
You didn't tell us the problem. :D

Anyway, I think I know.

Checkflag doesn't use a compare.

So it would be:

Checkflag 0xflag
if 0x1 goto @pointer.
I know, that's what I used.

Major flag problems. I set one, then another one sets itself...

NarutoActor

The rocks cry out to me

Age 29
Female
Brooklyn/Marlboro
Seen April 2nd, 2016
Posted March 22nd, 2016
1,974 posts
14.4 Years
Okay well I have a level script problem (again XD level scripts give me such headaches)

The Problem is the level script with Professor Oke Letting you pick you pokemon. Right when it starts the screen just goes black and stays black. The Other level scripts work but not this one. I tried re-pointing the offsets but no go.

Spoiler:

'---------------
#org 0x71ABE0
#raw 0x3
#raw pointer 0x8720D34
#raw 0x2
#raw pointer 0x871AE80
#raw 0x2
#raw pointer 0x8168FF0
#raw 0x0

'---------------
#org 0x71AE80
#raw word 0x5001
#raw word 0x0
#raw pointer 0x871C7F2
#raw word 0x0

'---------------
#org 0x168FF0
#raw word 0x4055
#raw word 0x1
#raw pointer 0x816923E
#raw word 0x0

'---------------
#org 0x720D34
setflag 0x2CF
compare 0x5001 0x1
if 0x1 goto 0x871DD9E
compare 0x4055 0x1
if 0x1 call 0x8168FC6
compare 0x4055 0x7
if 0x1 call 0x8168FD5
compare 0x4055 0x8
if 0x1 call 0x8168FC0
checkflag 0x247
if 0x1 call 0x8168FBC
end

'---------------
#org 0x71C7F2
lock
special 0x113
applymovement MOVE_CAMERA 0x871DA28
waitmovement 0x0
special 0x114
applymovement 0x8 0x872093E
waitmovement 0x0
msgbox 0x871CCDC MSG_NORMAL '"Wah, you scared me, haven't you\ne..."
special 0x113
applymovement MOVE_CAMERA 0x871DA35
waitmovement 0x0
special 0x114
applymovement MOVE_PLAYER 0x871DA3F
waitmovement 0x0
applymovement 0x8 0x871DA45
waitmovement 0x0
msgbox 0x871D3FC MSG_NORMAL '"Oh, your here for Professor Layton..."
applymovement 0x8 0x872093C
waitmovement 0x0
msgbox 0x871D9D4 MSG_NORMAL '"I got an idea you go look for him...."
applymovement MOVE_PLAYER 0x8720942
waitmovement 0x0
setvar 0x5001 0x0
warp 0x0 0x5 0x2 0x3C 0xA
end

'---------------
#org 0x16923E
lockall
textcolor 0x0
applymovement 0x4 0x81692B0
waitmovement 0x0
hidesprite 0x4
movesprite2 0x4 0x6 0x3
spritebehave 0x4 0x8
clearflag 0x2B
applymovement MOVE_PLAYER 0x81692B7
waitmovement 0x0
applymovement 0x8 0x81A75E9
waitmovement 0x0
clearflag 0x4001
playsong2 0x0
fadedefault
msgbox 0x818DC94 MSG_KEEPOPEN '"[rival]: Gramps!\nI'm fed up with ..."
closeonkeypress
pause 0x3C
msgbox 0x818DFBC MSG_KEEPOPEN '"OAK: [rival]?\nLet me think[.]\pOh..."
closeonkeypress
pause 0x1E
applymovement 0x8 0x81692C0
waitmovement 0x0
msgbox 0x818DCB9 MSG_KEEPOPEN '"[rival]: Hey! Gramps! No fair!\nWh..."
msgbox 0x818E0EA MSG_KEEPOPEN '"OAK: Be patient, [rival].\nYou can..."
setvar 0x4055 0x2
releaseall
end

'---------------
#org 0x71DD9E
lockall
textcolor 0x0
applymovement 0x4 0x872051E
waitmovement 0x0
hidesprite 0x4
movesprite2 0x4 0x6 0x3
spritebehave 0x4 0x8
clearflag 0x2B
applymovement MOVE_PLAYER 0x8720526
waitmovement 0x0
applymovement 0x8 0x8720530
waitmovement 0x0
clearflag 0x4001
playsong2 0x0
fadedefault
msgbox 0x871DE6F MSG_KEEPOPEN '"[rival]: Gramps!\nI'm fed up with ..."
closeonkeypress
pause 0x3C
msgbox 0x871FD9C MSG_KEEPOPEN '"OAK: [rival]?\nLet me think[.]\pOh..."
closeonkeypress
pause 0x1E
applymovement 0x8 0x8720533
waitmovement 0x0
msgbox 0x871FF10 MSG_KEEPOPEN '"[rival]: Hey! Gramps! No fair!\nWh..."
msgbox 0x87204F0 MSG_KEEPOPEN '"OAK: Be patient, [rival].\nYou can..."
setvar 0x4055 0x2
releaseall
end

'---------------
#org 0x168FC6
movesprite2 0x4 0x6 0xB
spritebehave 0x4 0x7
playsong2 0x12E
return

'---------------
#org 0x168FD5
movesprite2 0x4 0x6 0xB
spritebehave 0x4 0x7
return

'---------------
#org 0x168FC0
setvar 0x4055 0x9
return

'---------------
#org 0x168FBC
setflag 0x24F
return


'---------
' Strings
'---------
#org 0x71CCDC
= Wah, you scared me, haven't you\never herd of knocking?

#org 0x71D3FC
= Oh, your here for Professor Layton\ntoo?\pI talked with his secretary, and\nhe said that Professor Layton \ljust steped out for a short break.\pI wonder where he went.

#org 0x71D9D4
= I got an idea you go look for him.\p[green_fr]you have to get some groycers\nanyway right.

#org 0x18DC94
= [rival]: Gramps!\nI'm fed up with waiting!

#org 0x18DFBC
= OAK: [rival]?\nLet me think[.]\pOh, that's right, I told you to\ncome! Just wait!\pHere, [player].\pThere are three POKéMON here.\pHaha!\pThe POKéMON are held inside\nthese POKé BALLS.\pWhen I was young, I was a serious\nPOKéMON TRAINER.\pBut now, in my old age, I have\nonly these three left.\pYou can have one.\nGo on, choose!

#org 0x18DCB9
= [rival]: Hey! Gramps! No fair!\nWhat about me?

#org 0x18E0EA
= OAK: Be patient, [rival].\nYou can have one, too!

#org 0x71DE6F
= [rival]: Gramps!\nI'm fed up with waiting!

#org 0x71FD9C
= OAK: [rival]?\nLet me think[.]\pOh, that's right, I told you to\ncome! Just wait!\pHere, [player].\pThere are three POKéMON here.\pHaha!\pThe POKéMON are held inside\nthese POKé BALLS.\pWhen I was young, I was a serious\nPOKéMON TRAINER.\pBut now, in my old age, I have\nonly these three left.\pYou can have one.\nGo on, choose!

#org 0x71FF10
= [rival]: Hey! Gramps! No fair!\nWhat about me?

#org 0x7204F0
= OAK: Be patient, [rival].\nYou can have one, too!


'-----------
' Movements
'-----------
#org 0x71DA28
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x72093E
#raw 0x52 'Jump in Place (Facing Down)
#raw 0xFE 'End of Movements

#org 0x71DA35
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements

#org 0x71DA3F
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x71DA45
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements

#org 0x72093C
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements

#org 0x720942
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements

#org 0x1692B0
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x1692B7
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x1A75E9
#raw 0x2E 'Face Up (Delayed)
#raw 0xFE 'End of Movements

#org 0x1692C0
#raw 0x26 'Step on the Spot Up (Faster)
#raw 0x26 'Step on the Spot Up (Faster)
#raw 0xFE 'End of Movements

#org 0x72051E
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x720526
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x720530
#raw 0x2E 'Face Up (Delayed)
#raw 0xFE 'End of Movements

#org 0x720533
#raw 0x26 'Step on the Spot Up (Faster)
#raw 0x26 'Step on the Spot Up (Faster)
#raw 0xFE 'End of Movements
~There are those people who understand hex, F the rest

Sierraffinity

Retiring from Pokémon ROM hacking

Age 26
she/her
Somewhere the rains of Africa can be blessed
Seen January 8th, 2023
Posted December 26th, 2022
1,071 posts
15.4 Years
Okay well I have a level script problem (again XD level scripts give me such headaches)

The Problem is the level script with Professor Oke Letting you pick you pokemon. Right when it starts the screen just goes black and stays black. The Other level scripts work but not this one. I tried re-pointing the offsets but no go.

Spoiler:

'---------------
#org 0x71ABE0
#raw 0x3
#raw pointer 0x8720D34
#raw 0x2
#raw pointer 0x871AE80
#raw 0x2
#raw pointer 0x8168FF0
#raw 0x0

'---------------
#org 0x71AE80
#raw word 0x5001
#raw word 0x0
#raw pointer 0x871C7F2
#raw word 0x0

'---------------
#org 0x168FF0
#raw word 0x4055
#raw word 0x1
#raw pointer 0x816923E
#raw word 0x4055

'---------------
#org 0x720D34
setflag 0x2CF
compare 0x5001 0x1
if 0x1 goto 0x871DD9E
compare 0x4055 0x1
if 0x1 call 0x8168FC6
compare 0x4055 0x7
if 0x1 call 0x8168FD5
compare 0x4055 0x8
if 0x1 call 0x8168FC0
checkflag 0x247
if 0x1 call 0x8168FBC
end

'---------------
#org 0x71C7F2
lock
special 0x113
applymovement MOVE_CAMERA 0x871DA28
waitmovement 0x0
special 0x114
applymovement 0x8 0x872093E
waitmovement 0x0
msgbox 0x871CCDC MSG_NORMAL '"Wah, you scared me, haven't you\ne..."
special 0x113
applymovement MOVE_CAMERA 0x871DA35
waitmovement 0x0
special 0x114
applymovement MOVE_PLAYER 0x871DA3F
waitmovement 0x0
applymovement 0x8 0x871DA45
waitmovement 0x0
msgbox 0x871D3FC MSG_NORMAL '"Oh, your here for Professor Layton..."
applymovement 0x8 0x872093C
waitmovement 0x0
msgbox 0x871D9D4 MSG_NORMAL '"I got an idea you go look for him...."
applymovement MOVE_PLAYER 0x8720942
waitmovement 0x0
setvar 0x5001 0x0
warp 0x0 0x5 0x2 0x3C 0xA
end

'---------------
#org 0x16923E
lockall
textcolor 0x0
applymovement 0x4 0x81692B0
waitmovement 0x0
hidesprite 0x4
movesprite2 0x4 0x6 0x3
spritebehave 0x4 0x8
clearflag 0x2B
applymovement MOVE_PLAYER 0x81692B7
waitmovement 0x0
applymovement 0x8 0x81A75E9
waitmovement 0x0
clearflag 0x4001
playsong2 0x0
fadedefault
msgbox 0x818DC94 MSG_KEEPOPEN '"[rival]: Gramps!\nI'm fed up with ..."
closeonkeypress
pause 0x3C
msgbox 0x818DFBC MSG_KEEPOPEN '"OAK: [rival]?\nLet me think[.]\pOh..."
closeonkeypress
pause 0x1E
applymovement 0x8 0x81692C0
waitmovement 0x0
msgbox 0x818DCB9 MSG_KEEPOPEN '"[rival]: Hey! Gramps! No fair!\nWh..."
msgbox 0x818E0EA MSG_KEEPOPEN '"OAK: Be patient, [rival].\nYou can..."
setvar 0x4055 0x2
releaseall
end

'---------------
#org 0x71DD9E
lockall
textcolor 0x0
applymovement 0x4 0x872051E
waitmovement 0x0
hidesprite 0x4
movesprite2 0x4 0x6 0x3
spritebehave 0x4 0x8
clearflag 0x2B
applymovement MOVE_PLAYER 0x8720526
waitmovement 0x0
applymovement 0x8 0x8720530
waitmovement 0x0
clearflag 0x4001
playsong2 0x0
fadedefault
msgbox 0x871DE6F MSG_KEEPOPEN '"[rival]: Gramps!\nI'm fed up with ..."
closeonkeypress
pause 0x3C
msgbox 0x871FD9C MSG_KEEPOPEN '"OAK: [rival]?\nLet me think[.]\pOh..."
closeonkeypress
pause 0x1E
applymovement 0x8 0x8720533
waitmovement 0x0
msgbox 0x871FF10 MSG_KEEPOPEN '"[rival]: Hey! Gramps! No fair!\nWh..."
msgbox 0x87204F0 MSG_KEEPOPEN '"OAK: Be patient, [rival].\nYou can..."
setvar 0x4055 0x2
releaseall
end

'---------------
#org 0x168FC6
movesprite2 0x4 0x6 0xB
spritebehave 0x4 0x7
playsong2 0x12E
return

'---------------
#org 0x168FD5
movesprite2 0x4 0x6 0xB
spritebehave 0x4 0x7
return

'---------------
#org 0x168FC0
setvar 0x4055 0x9
return

'---------------
#org 0x168FBC
setflag 0x24F
return


'---------
' Strings
'---------
#org 0x71CCDC
= Wah, you scared me, haven't you\never herd of knocking?

#org 0x71D3FC
= Oh, your here for Professor Layton\ntoo?\pI talked with his secretary, and\nhe said that Professor Layton \ljust steped out for a short break.\pI wonder where he went.

#org 0x71D9D4
= I got an idea you go look for him.\p[green_fr]you have to get some groycers\nanyway right.

#org 0x18DC94
= [rival]: Gramps!\nI'm fed up with waiting!

#org 0x18DFBC
= OAK: [rival]?\nLet me think[.]\pOh, that's right, I told you to\ncome! Just wait!\pHere, [player].\pThere are three POKéMON here.\pHaha!\pThe POKéMON are held inside\nthese POKé BALLS.\pWhen I was young, I was a serious\nPOKéMON TRAINER.\pBut now, in my old age, I have\nonly these three left.\pYou can have one.\nGo on, choose!

#org 0x18DCB9
= [rival]: Hey! Gramps! No fair!\nWhat about me?

#org 0x18E0EA
= OAK: Be patient, [rival].\nYou can have one, too!

#org 0x71DE6F
= [rival]: Gramps!\nI'm fed up with waiting!

#org 0x71FD9C
= OAK: [rival]?\nLet me think[.]\pOh, that's right, I told you to\ncome! Just wait!\pHere, [player].\pThere are three POKéMON here.\pHaha!\pThe POKéMON are held inside\nthese POKé BALLS.\pWhen I was young, I was a serious\nPOKéMON TRAINER.\pBut now, in my old age, I have\nonly these three left.\pYou can have one.\nGo on, choose!

#org 0x71FF10
= [rival]: Hey! Gramps! No fair!\nWhat about me?

#org 0x7204F0
= OAK: Be patient, [rival].\nYou can have one, too!


'-----------
' Movements
'-----------
#org 0x71DA28
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x72093E
#raw 0x52 'Jump in Place (Facing Down)
#raw 0xFE 'End of Movements

#org 0x71DA35
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements

#org 0x71DA3F
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x71DA45
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements

#org 0x72093C
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements

#org 0x720942
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements

#org 0x1692B0
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x1692B7
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x1A75E9
#raw 0x2E 'Face Up (Delayed)
#raw 0xFE 'End of Movements

#org 0x1692C0
#raw 0x26 'Step on the Spot Up (Faster)
#raw 0x26 'Step on the Spot Up (Faster)
#raw 0xFE 'End of Movements

#org 0x72051E
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x720526
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x720530
#raw 0x2E 'Face Up (Delayed)
#raw 0xFE 'End of Movements

#org 0x720533
#raw 0x26 'Step on the Spot Up (Faster)
#raw 0x26 'Step on the Spot Up (Faster)
#raw 0xFE 'End of Movements
Most likely you've resized the map. In this case, in A-Map while the map you're having problems with is loaded, go to File>Map>Insert map and in the top row, select the same map bank and map number and insert it.
Restarted and revamped.

Public alpha out now!

NarutoActor

The rocks cry out to me

Age 29
Female
Brooklyn/Marlboro
Seen April 2nd, 2016
Posted March 22nd, 2016
1,974 posts
14.4 Years
Yeah I thought that was the problem at first, but like I said there is an other level script before that one which dose work. But I will try it any way.

EDIT: yeah I did that and still black screen. I think it has to do more with the script then the map.
~There are those people who understand hex, F the rest

Sierraffinity

Retiring from Pokémon ROM hacking

Age 26
she/her
Somewhere the rains of Africa can be blessed
Seen January 8th, 2023
Posted December 26th, 2022
1,071 posts
15.4 Years
Okay well I have a level script problem (again XD level scripts give me such headaches)

The Problem is the level script with Professor Oke Letting you pick you pokemon. Right when it starts the screen just goes black and stays black. The Other level scripts work but not this one. I tried re-pointing the offsets but no go.

Spoiler:

'---------------
#org 0x71ABE0
#raw 0x3
#raw pointer 0x8720D34
#raw 0x2
#raw pointer 0x871AE80
#raw 0x2
#raw pointer 0x8168FF0
#raw 0x0

'---------------
#org 0x71AE80
#raw word 0x5001
#raw word 0x0
#raw pointer 0x871C7F2
#raw word 0x0

'---------------
#org 0x168FF0
#raw word 0x4055
#raw word 0x1
#raw pointer 0x816923E
#raw word 0x4055

'---------------
#org 0x720D34
setflag 0x2CF
compare 0x5001 0x1
if 0x1 goto 0x871DD9E
compare 0x4055 0x1
if 0x1 call 0x8168FC6
compare 0x4055 0x7
if 0x1 call 0x8168FD5
compare 0x4055 0x8
if 0x1 call 0x8168FC0
checkflag 0x247
if 0x1 call 0x8168FBC
end

'---------------
#org 0x71C7F2
lock
special 0x113
applymovement MOVE_CAMERA 0x871DA28
waitmovement 0x0
special 0x114
applymovement 0x8 0x872093E
waitmovement 0x0
msgbox 0x871CCDC MSG_NORMAL '"Wah, you scared me, haven't you\ne..."
special 0x113
applymovement MOVE_CAMERA 0x871DA35
waitmovement 0x0
special 0x114
applymovement MOVE_PLAYER 0x871DA3F
waitmovement 0x0
applymovement 0x8 0x871DA45
waitmovement 0x0
msgbox 0x871D3FC MSG_NORMAL '"Oh, your here for Professor Layton..."
applymovement 0x8 0x872093C
waitmovement 0x0
msgbox 0x871D9D4 MSG_NORMAL '"I got an idea you go look for him...."
applymovement MOVE_PLAYER 0x8720942
waitmovement 0x0
setvar 0x5001 0x0
warp 0x0 0x5 0x2 0x3C 0xA
end

'---------------
#org 0x16923E
lockall
textcolor 0x0
applymovement 0x4 0x81692B0
waitmovement 0x0
hidesprite 0x4
movesprite2 0x4 0x6 0x3
spritebehave 0x4 0x8
clearflag 0x2B
applymovement MOVE_PLAYER 0x81692B7
waitmovement 0x0
applymovement 0x8 0x81A75E9
waitmovement 0x0
clearflag 0x4001
playsong2 0x0
fadedefault
msgbox 0x818DC94 MSG_KEEPOPEN '"[rival]: Gramps!\nI'm fed up with ..."
closeonkeypress
pause 0x3C
msgbox 0x818DFBC MSG_KEEPOPEN '"OAK: [rival]?\nLet me think[.]\pOh..."
closeonkeypress
pause 0x1E
applymovement 0x8 0x81692C0
waitmovement 0x0
msgbox 0x818DCB9 MSG_KEEPOPEN '"[rival]: Hey! Gramps! No fair!\nWh..."
msgbox 0x818E0EA MSG_KEEPOPEN '"OAK: Be patient, [rival].\nYou can..."
setvar 0x4055 0x2
releaseall
end

'---------------
#org 0x71DD9E
lockall
textcolor 0x0
applymovement 0x4 0x872051E
waitmovement 0x0
hidesprite 0x4
movesprite2 0x4 0x6 0x3
spritebehave 0x4 0x8
clearflag 0x2B
applymovement MOVE_PLAYER 0x8720526
waitmovement 0x0
applymovement 0x8 0x8720530
waitmovement 0x0
clearflag 0x4001
playsong2 0x0
fadedefault
msgbox 0x871DE6F MSG_KEEPOPEN '"[rival]: Gramps!\nI'm fed up with ..."
closeonkeypress
pause 0x3C
msgbox 0x871FD9C MSG_KEEPOPEN '"OAK: [rival]?\nLet me think[.]\pOh..."
closeonkeypress
pause 0x1E
applymovement 0x8 0x8720533
waitmovement 0x0
msgbox 0x871FF10 MSG_KEEPOPEN '"[rival]: Hey! Gramps! No fair!\nWh..."
msgbox 0x87204F0 MSG_KEEPOPEN '"OAK: Be patient, [rival].\nYou can..."
setvar 0x4055 0x2
releaseall
end

'---------------
#org 0x168FC6
movesprite2 0x4 0x6 0xB
spritebehave 0x4 0x7
playsong2 0x12E
return

'---------------
#org 0x168FD5
movesprite2 0x4 0x6 0xB
spritebehave 0x4 0x7
return

'---------------
#org 0x168FC0
setvar 0x4055 0x9
return

'---------------
#org 0x168FBC
setflag 0x24F
return


'---------
' Strings
'---------
#org 0x71CCDC
= Wah, you scared me, haven't you\never herd of knocking?

#org 0x71D3FC
= Oh, your here for Professor Layton\ntoo?\pI talked with his secretary, and\nhe said that Professor Layton \ljust steped out for a short break.\pI wonder where he went.

#org 0x71D9D4
= I got an idea you go look for him.\p[green_fr]you have to get some groycers\nanyway right.

#org 0x18DC94
= [rival]: Gramps!\nI'm fed up with waiting!

#org 0x18DFBC
= OAK: [rival]?\nLet me think[.]\pOh, that's right, I told you to\ncome! Just wait!\pHere, [player].\pThere are three POKéMON here.\pHaha!\pThe POKéMON are held inside\nthese POKé BALLS.\pWhen I was young, I was a serious\nPOKéMON TRAINER.\pBut now, in my old age, I have\nonly these three left.\pYou can have one.\nGo on, choose!

#org 0x18DCB9
= [rival]: Hey! Gramps! No fair!\nWhat about me?

#org 0x18E0EA
= OAK: Be patient, [rival].\nYou can have one, too!

#org 0x71DE6F
= [rival]: Gramps!\nI'm fed up with waiting!

#org 0x71FD9C
= OAK: [rival]?\nLet me think[.]\pOh, that's right, I told you to\ncome! Just wait!\pHere, [player].\pThere are three POKéMON here.\pHaha!\pThe POKéMON are held inside\nthese POKé BALLS.\pWhen I was young, I was a serious\nPOKéMON TRAINER.\pBut now, in my old age, I have\nonly these three left.\pYou can have one.\nGo on, choose!

#org 0x71FF10
= [rival]: Hey! Gramps! No fair!\nWhat about me?

#org 0x7204F0
= OAK: Be patient, [rival].\nYou can have one, too!


'-----------
' Movements
'-----------
#org 0x71DA28
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x72093E
#raw 0x52 'Jump in Place (Facing Down)
#raw 0xFE 'End of Movements

#org 0x71DA35
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements

#org 0x71DA3F
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x71DA45
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements

#org 0x72093C
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements

#org 0x720942
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements

#org 0x1692B0
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x1692B7
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x1A75E9
#raw 0x2E 'Face Up (Delayed)
#raw 0xFE 'End of Movements

#org 0x1692C0
#raw 0x26 'Step on the Spot Up (Faster)
#raw 0x26 'Step on the Spot Up (Faster)
#raw 0xFE 'End of Movements

#org 0x72051E
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x720526
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x720530
#raw 0x2E 'Face Up (Delayed)
#raw 0xFE 'End of Movements

#org 0x720533
#raw 0x26 'Step on the Spot Up (Faster)
#raw 0x26 'Step on the Spot Up (Faster)
#raw 0xFE 'End of Movements
*headsmack* I should have known.
The bolded part should be 0x0. If you'd followed mine or Cooley's level scripting tuts, they would have told you this.
Restarted and revamped.

Public alpha out now!

NarutoActor

The rocks cry out to me

Age 29
Female
Brooklyn/Marlboro
Seen April 2nd, 2016
Posted March 22nd, 2016
1,974 posts
14.4 Years
That was actually originally there XD but I changed it to 0x0 just like you said and I still get a black screen. (Weird uh?)
~There are those people who understand hex, F the rest

Sierraffinity

Retiring from Pokémon ROM hacking

Age 26
she/her
Somewhere the rains of Africa can be blessed
Seen January 8th, 2023
Posted December 26th, 2022
1,071 posts
15.4 Years
That was actually originally there XD but I changed it to 0x0 just like you said and I still get a black screen. (Weird uh?)
Hm, then I don't know. :/
Restarted and revamped.

Public alpha out now!
Seen December 25th, 2009
Posted December 25th, 2009
3 posts
13.5 Years
Simply put, your msgbox function points to something that isn't text, and your goto function points to text. I attempted to fix your script, though I'm not really sure what it was meant to do... Fixes are in bold.



Try that, it seemed to fix the problem when I had a similar one. Also, you didn't need a second 'lock' and 'faceplayer' after your 'goto'.

EDIT: Also, make sure you have a warp on the map you are warping to. ;)
Thanks for the advice, Darthatron. Unfortunately, it didn't do the trick, but I eventually got it to work. Apparently, the script only works when it's assigned to a person event, not a green S tile script event. Something is going on with my rom, I think, because now my applymovement script stopped working (and it used to work perfectly) when it was on a green S tile and I had to assign the script to a person to get it to work again.
Age 27
Male
Slovenia
Seen March 30th, 2015
Posted July 24th, 2013
3,475 posts
15.2 Years
ROM: FireRed
Scripted in: XSE
Script: Person
Actual script:
Spoiler:
#dynamic 0x000000

#org @start
lock
faceplayer
checkflag 0x1581
compare LASTRESULT 0x1
if 0x1 goto @1581set
checkflag 0x1580
compare LASTRESULT 0x1
if 0x1 goto @1580set
checkitem ITEM_MOOMOOMILK 2
compare LASTRESULT 0x1
if 0x1 goto @havethemilk
checkflag 0x1582
compare LASTRESULT 0x1
if 0x1 goto @1582set
msgbox @wygb MSG_NORMAL
setflag 0x1582
release
end

#org @1581set
msgbox @sell MSG_NORMAL
pokemart @pokemart
release
end

#org @1582set
msgbox @getbusy MSG_NORMAL
release
end

#org @havethemilk
removeitem ITEM_MOOMOOMILK 2
msgbox @gimmethemilk MSG_NORMAL
setflag 0x1580
release
end

#org @1580set
checkitem ITEM_GREPABERRY 1
compare LASTRESULT 0x1
if 0x1 goto @havetheberry
msgbox @youonly MSG_NORMAL
release
end

#org @havetheberry
removeitem ITEM_LEEMONBERRY 1
msgbox @gimmetheberry MSG_NORMAL
applymovement LASTTALKED @moveup
pause 0x100
applymovement LASTTALKED @movedown
msgbox @deserve MSG_NORMAL
giveitem ITEM_GOLDTEETH 1 MSG_OBTAIN
setflag 0x1581
release
end

#org @gimmethemilk
= RYAN: You got the MOOMOO MILK!\nGive it to me now.

#org @wygb
= RYAN: Hey, [player]!\nSo you're here eh?\pRYAN: If I can recall, you need a\nPIKA-CHEW, correct?\pRYAN: Ah, I'm sorry to disappoint\nyou, but I've ran out of the basic\lingredients for it.\pRYAN: I need [fr_blue]2 bottles of MOOMOO\nMILK and a LEEMON BERRY[black_fr].\pRYAN: Bring me those and I'll make\nyou a PIKA-CHEW free of charge.

#org @youonly
= RYAN: I only need a LEEMON BERRY\nnow.

#org @gimmethemilk
= RYAN: You got the LEEMON BERRY!\nGive it to me now.

#org @getbusy
= RYAN: Chop-chop, get busy!\pRemember, I need [fr_blue]2 bottles of\nMOOMOO MILK and a LEEMON BERRY[black_fr].

#org @deserve
= RYAN: Here you go, buddy!\nYou deserve it! Use it wisely.

#org @sell
= RYAN: Hello, dear friend! I have a\nspecial discount just for you!\pNow, what can I do for you?

#org @pokemart
#raw word ITEM_BERRYJUICE
#raw word ITEM_RARECANDY
#raw word 0x0

#org @moveup
#raw 0x11 0x13 0x11 0x60 0xFE

#org @movedown
#raw 0x10 0x12 0x10 0x61 0xFE

Don't mind the offset.

Compiled:
Spoiler:
#include stditems.rbh

;---------------
#org 0x80F00B
lock
faceplayer
checkflag 0x1651
compare LASTRESULT 0x1
if 0x1 goto 0x880F055
checkflag 0x1580
compare LASTRESULT 0x1
if 0x1 goto 0x88104B8
checkitem ITEM_MOOMOOMILK 0x2
compare LASTRESULT 0x1
if 0x1 goto 0x880FFE0
checkflag 0x1852
compare LASTRESULT 0x1
if 0x1 goto 0x880F065
msgbox 0x8810CEC MSG_NORMAL ;"RYAN: Hey, [player]!\nSo you're he..."
setflag 0x1852
release
end

;---------------
#org 0x80F055
msgbox 0x8810F27 MSG_NORMAL ;"RYAN: Hello, dear friend! I have a..."
pokemart 0x8810F87
release
end

;---------------
#org 0x8104B8
checkitem ITEM_GREPABERRY 0x1
compare LASTRESULT 0x1
if 0x1 goto 0x88104D3
msgbox 0x8810E28 MSG_NORMAL ;"RYAN: I only need a LEEMON BERRY\n..."
release
end

;---------------
#org 0x80FFE0
removeitem ITEM_MOOMOOMILK 0x2
msgbox 0x881050B MSG_NORMAL ;"RYAN: You got the MOOMOO MILK!\nGi..."
setflag 0x1580
release
end

;---------------
#org 0x80F065
msgbox 0x8810E85 MSG_NORMAL ;"RYAN: Chop-chop, get busy!\pRememb..."
release
end

;---------------
#org 0x8104D3
removeitem ITEM_GREPABERRY 0x1
msgbox 0x8810E50 MSG_NORMAL ;"RYAN: You got the LEEMON BERRY!\nG..."
applymovement LASTTALKED 0x8810F8E
pause 0x100
applymovement LASTTALKED 0x8810F94
msgbox 0x8810EEC MSG_NORMAL ;"RYAN: Here you go, buddy!\nYou des..."
giveitem ITEM_GOLDTEETH 0x1 MSG_OBTAIN
setflag 0x1651
release
end

;---------
; Strings
;---------
#org 0x810CEC
= RYAN: Hey, [player]!\nSo you're here eh?\pRYAN: If I can recall, you need a\nPIKA-CHEW, correct?\pRYAN: Ah, I'm sorry to disappoint\nyou, but I've ran out of the basic\lingredients for it.\pRYAN: I need [blue_fr]2 bottles of MOOMOO\nMILK and a LEEMON BERRY[red_fr].\pRYAN: Bring me those and I'll make\nyou a PIKA-CHEW free of charge.

#org 0x810F27
= RYAN: Hello, dear friend! I have a\nspecial discount just for you!\pNow, what can I do for you?

#org 0x810E28
= RYAN: I only need a LEEMON BERRY\nnow.

#org 0x81050B
= RYAN: You got the MOOMOO MILK!\nGive it to me now.

#org 0x810E85
= RYAN: Chop-chop, get busy!\pRemember, I need fr blue 2 bottles of\nMOOMOO MILK and a LEEMON BERRY[black_fr].

#org 0x810E50
= RYAN: You got the LEEMON BERRY!\nGive it to me now.

#org 0x810EEC
= RYAN: Here you go, buddy!\nYou deserve it! Use it wisely.

;-----------
; Movements
;-----------
#org 0x810F8E
#raw 0x11 ;Step Up (Normal)
#raw 0x13 ;Step Right (Normal)
#raw 0x11 ;Step Up (Normal)
#raw 0x60 ;Hide
#raw 0xFE ;End of Movements
#org 0x810F94
#raw 0x10 ;Step Down (Normal)
#raw 0x12 ;Step Left (Normal)
#raw 0x10 ;Step Down (Normal)
#raw 0x61 ;Show
#raw 0xFE ;End of Movements

;-----------
; MartItems
;-----------
#org 0x810F87
#raw word ITEM_BERRYJUICE
#raw word ITEM_RARECANDY
#raw word ITEM_NONE
Reposting... Doesn't anyone know how to fix it? Please?
Again, the flags set themselves incorrectly for example when I give RYAN his MooMoo Milk, the script goes to the Pokemart part.

Teh Blazer

Divider of Zero

Age 27
Male
'MERICA
Seen January 18th, 2019
Posted June 19th, 2018
776 posts
14.3 Years
I just can't get my script to work, maybe I'm doing something wrong...
Spoiler:

'---------------
#org 0x71C000
checkflag 0x11D6
if 0x1 call 0x871BFFC
call 0x8873890
end

'---------------
#org 0x71BFFC
release
end

'---------------
#org 0x873890
lockall
playsong 0x12E 0x0
applymovement 0x1 0x871C050
pause 0x20
textcolor 0x01
msgbox 0x817532D 0x2 '"Oh [player], you're final..."
call 0x88738B0
end

'---------------
#org 0x8738B0
givepokemon 0x116 0x5 0x0 0x0 0x0 0x0
setflag 0x828
setflag 0x829
special 0x16F
showpokepic 0x116 0x0A 0x03
msgbox 0x819110F 0x2 '"Here, take this POKéMON I..."
hidepokepic
fanfare 0x13E
applymovement 0x1 0x871C11A
setflag 0x11D6
release
end


'---------
' Strings
'---------
#org 0x17532D
= Oh [player], you're finally going /nto start your journey as a /pPOKéMON Trainer!I am just /pso proud of you! /pIf only you had a /pPOKéMON partner to help you...

#org 0x19110F
= Here, take this POKéMON I had /nsince I was a child and this /pPOKéDEX and explore this world! Oh, I'm also /pgiving you these /pspecial RUNNING SHOES which can/p give you that little extra boost.


'-----------
' Movements
'-----------
#org 0x71C050
#raw 0x62 'Exclamation Mark (!)
#raw 0xB 'Step Right (Very Slow)
#raw 0x9 'Step Up (Very Slow)
#raw 0x4A 'Face Player
#raw 0xFE 'End of Movements

#org 0x71C11A
#raw 0x8 'Step Down (Very Slow)
#raw 0xA 'Step Left (Very Slow)
#raw 0xFE 'End of Movements

What went wrong?
Being a hero is overrated anyways