droomph
weeb
- 4,285
- Posts
- 13
- Years
- Age 27
- nowhere spectacular
- Seen Feb 2, 2017
Try removing the lock part. Here's an example ground script from the actual game:I AM USING XSE AS MY SCRIPT EDITOR!
So, I'm trying to create just a regular script block in Advanced map.
Like this:
___
| S |
(Pretend it's green and NOT a signpost block)
All I want it to do is say simple text, here is my XSE script:
Spoiler:#dynamic 0xoffset
#org @start
lock
msgbox @hey 0x6
release
end
#org @hey
= hey
But whenever I step on that block in the game, everything freezes. Only the music keeps playing...
Any idea on how to fix this? Is it my rom? My script?
Spoiler:
Code:
#org 0x81E81F9
'-----------------------------------
lockall
setvar 0x8008 0x4
jump 0x81E8211
#org 0x81E8211
'-----------------------------------
checkgender
compare LASTRESULT BOY
if == call 0x81E8297 ' Equal To
compare LASTRESULT 0x1
if == call 0x81E82A2 ' Equal To
checkgender
compare LASTRESULT BOY
if == call 0x81E8281 ' Equal To
compare LASTRESULT 0x1
if == call 0x81E828C ' Equal To
msgbox 0x81E87E1 ' MOM: Wait, \v\h01!
callstd MSG_NOCLOSE ' Non-closing message
closemsg
checkgender
compare LASTRESULT BOY
if == call 0x81E82AD ' Equal To
compare LASTRESULT 0x1
if == call 0x81E82F0 ' Equal To
call 0x81E8693
checkgender
compare LASTRESULT BOY
if == call 0x81E8405 ' Equal To
compare LASTRESULT 0x1
if == call 0x81E8448 ' Equal To
jump 0x81E8686
#org 0x81E8297
'-----------------------------------
applymovement 0x4 0x82725A8 ' onspot_right end
pauseevent 0x0
return
#org 0x81E82A2
'-----------------------------------
applymovement 0x4 0x82725A4 ' onspot_left end
pauseevent 0x0
return
#org 0x81E8281
'-----------------------------------
setvar 0x8009 0x5
setvar 0x800A 0x8
return
#org 0x81E828C
'-----------------------------------
setvar 0x8009 0xE
setvar 0x800A 0x8
return
#org 0x81E82AD
'-----------------------------------
compare 0x8008 0x0
if == call 0x81E8333 ' Equal To
compare 0x8008 0x1
if == call 0x81E8348 ' Equal To
compare 0x8008 0x2
if == call 0x81E835D ' Equal To
compare 0x8008 0x3
if == call 0x81E8372 ' Equal To
compare 0x8008 0x4
if == call 0x81E8387 ' Equal To
compare 0x8008 0x5
if == call 0x81E839C ' Equal To
return
#org 0x81E8333
'-----------------------------------
applymovement PLAYER 0x82725AA ' onspot_down end
pauseevent 0x0
applymovement 0x4 0x81E85D1 ' walk_up_vslow walk_u...
pauseevent 0x0
return
#org 0x81E8348
'-----------------------------------
applymovement PLAYER 0x82725AA ' onspot_down end
pauseevent 0x0
applymovement 0x4 0x81E85D8 ' walk_up_vslow walk_u...
pauseevent 0x0
return
#org 0x81E835D
'-----------------------------------
applymovement PLAYER 0x82725A4 ' onspot_left end
pauseevent 0x0
applymovement 0x4 0x81E85DF ' walk_right_vslow wal...
pauseevent 0x0
return
#org 0x81E8372
'-----------------------------------
applymovement PLAYER 0x82725A4 ' onspot_left end
pauseevent 0x0
applymovement 0x4 0x81E85E4 ' walk_right_vslow wal...
pauseevent 0x0
return
#org 0x81E8387
'-----------------------------------
applymovement PLAYER 0x82725A4 ' onspot_left end
pauseevent 0x0
applymovement 0x4 0x81E85EA ' walk_right_vslow wal...
pauseevent 0x0
return
#org 0x81E82F0
'-----------------------------------
compare 0x8008 0x0
if == call 0x81E8333 ' Equal To
compare 0x8008 0x1
if == call 0x81E8348 ' Equal To
compare 0x8008 0x2
if == call 0x81E83B1 ' Equal To
compare 0x8008 0x3
if == call 0x81E83C6 ' Equal To
compare 0x8008 0x4
if == call 0x81E83DB ' Equal To
compare 0x8008 0x5
if == call 0x81E83F0 ' Equal To
return
#org 0x81E83B1
'-----------------------------------
applymovement PLAYER 0x82725A8 ' onspot_right end
pauseevent 0x0
applymovement 0x4 0x81E85F1 ' walk_left_vslow walk...
pauseevent 0x0
return
#org 0x81E83C6
'-----------------------------------
applymovement PLAYER 0x82725A8 ' onspot_right end
pauseevent 0x0
applymovement 0x4 0x81E85F5 ' walk_left_vslow walk...
pauseevent 0x0
return
#org 0x81E83DB
'-----------------------------------
applymovement PLAYER 0x82725A8 ' onspot_right end
pauseevent 0x0
applymovement 0x4 0x81E85F8 ' walk_left_vslow walk...
pauseevent 0x0
return
#org 0x81E83F0
'-----------------------------------
applymovement PLAYER 0x82725A8 ' onspot_right end
pauseevent 0x0
applymovement 0x4 0x81E85FE ' walk_left_vslow walk...
pauseevent 0x0
return
#org 0x81E8693
'-----------------------------------
msgbox 0x81E87F0 ' MOM: \v\h01! \v\h01!...
callstd MSG_NOCLOSE ' Non-closing message
fanfare 0x172
message 0x81E8925 ' \v\h01 switched shoe...
waitfanfare
setflag 0x112
msgbox 0x81E894F ' MOM: \v\h01, those s...
callstd MSG_NOCLOSE ' Non-closing message
msgbox 0x81E8A03 ' [.] [.] [.] [.] [.] ...
callstd MSG_NOCLOSE ' Non-closing message
closemsg
pause 0x1E
return
#org 0x81E8405
'-----------------------------------
compare 0x8008 0x0
if == call 0x81E848B ' Equal To
compare 0x8008 0x1
if == call 0x81E8496 ' Equal To
compare 0x8008 0x2
if == call 0x81E84A1 ' Equal To
compare 0x8008 0x3
if == call 0x81E84C7 ' Equal To
compare 0x8008 0x4
if == call 0x81E84ED ' Equal To
compare 0x8008 0x5
if == call 0x81E8513 ' Equal To
return
#org 0x81E848B
'-----------------------------------
applymovement 0x4 0x81E8603 ' walk_down_vslow walk...
pauseevent 0x0
return
#org 0x81E8496
'-----------------------------------
applymovement 0x4 0x81E8609 ' walk_down_vslow walk...
pauseevent 0x0
return
#org 0x81E84A1
'-----------------------------------
applymovement 0x4 0x81E860F ' walk_left_vslow walk...
pauseevent 0x0
setdooropened 0x8009 0x800A
doorchange
applymovement 0x4 0x81E863B ' walk_up_vslow end
pauseevent 0x0
fardisappear 0x4 0x0 0x9
setdoorclosed 0x8009 0x800A
doorchange
return
#org 0x81E84C7
'-----------------------------------
applymovement 0x4 0x81E8615 ' walk_left_vslow walk...
pauseevent 0x0
setdooropened 0x8009 0x800A
doorchange
applymovement 0x4 0x81E863B ' walk_up_vslow end
pauseevent 0x0
fardisappear 0x4 0x0 0x9
setdoorclosed 0x8009 0x800A
doorchange
return
#org 0x81E84ED
'-----------------------------------
applymovement 0x4 0x81E861C ' walk_left_vslow walk...
pauseevent 0x0
setdooropened 0x8009 0x800A
doorchange
applymovement 0x4 0x81E863B ' walk_up_vslow end
pauseevent 0x0
fardisappear 0x4 0x0 0x9
setdoorclosed 0x8009 0x800A
doorchange
return
#org 0x81E8513
'-----------------------------------
applymovement 0x4 0x81E8620 ' walk_left_vslow walk...
pauseevent 0x0
setdooropened 0x8009 0x800A
doorchange
applymovement 0x4 0x81E863B ' walk_up_vslow end
pauseevent 0x0
fardisappear 0x4 0x0 0x9
setdoorclosed 0x8009 0x800A
doorchange
return
#org 0x81E8448
'-----------------------------------
compare 0x8008 0x0
if == call 0x81E848B ' Equal To
compare 0x8008 0x1
if == call 0x81E8496 ' Equal To
compare 0x8008 0x2
if == call 0x81E8539 ' Equal To
compare 0x8008 0x3
if == call 0x81E855F ' Equal To
compare 0x8008 0x4
if == call 0x81E8585 ' Equal To
compare 0x8008 0x5
if == call 0x81E85AB ' Equal To
return
#org 0x81E8539
'-----------------------------------
applymovement 0x4 0x81E8625 ' walk_right_vslow wal...
pauseevent 0x0
setdooropened 0x8009 0x800A
doorchange
applymovement 0x4 0x81E863B ' walk_up_vslow end
pauseevent 0x0
fardisappear 0x4 0x0 0x9
setdoorclosed 0x8009 0x800A
doorchange
return
#org 0x81E855F
'-----------------------------------
applymovement 0x4 0x81E862A ' walk_right_vslow wal...
pauseevent 0x0
setdooropened 0x8009 0x800A
doorchange
applymovement 0x4 0x81E863B ' walk_up_vslow end
pauseevent 0x0
fardisappear 0x4 0x0 0x9
setdoorclosed 0x8009 0x800A
doorchange
return
#org 0x81E8585
'-----------------------------------
applymovement 0x4 0x81E862E ' walk_right_vslow wal...
pauseevent 0x0
setdooropened 0x8009 0x800A
doorchange
applymovement 0x4 0x81E863B ' walk_up_vslow end
pauseevent 0x0
fardisappear 0x4 0x0 0x9
setdoorclosed 0x8009 0x800A
doorchange
return
#org 0x81E85AB
'-----------------------------------
applymovement 0x4 0x81E8635 ' walk_right_vslow wal...
pauseevent 0x0
setdooropened 0x8009 0x800A
doorchange
applymovement 0x4 0x81E863B ' walk_up_vslow end
pauseevent 0x0
fardisappear 0x4 0x0 0x9
setdoorclosed 0x8009 0x800A
doorchange
return
#org 0x81E8686
'-----------------------------------
disappear 0x4
setflag 0x8C0
setvar 0x4050 0x4
release
end
#org 0x81E839C
'-----------------------------------
applymovement PLAYER 0x82725A4 ' onspot_left end
pauseevent 0x0
applymovement 0x4 0x81E85ED ' walk_right_vslow wal...
pauseevent 0x0
return
#org 0x81E87E1
= MOM: Wait, \v\h01!
#org 0x81E87F0
= MOM: \v\h01! \v\h01! Did you\nintroduce yourself to PROF. BIRCH?\pOh! What an adorable POK\eMON!\nYou got it from PROF. BIRCH. How nice!\pYou're your father's child, all right.\nYou look good together with POK\eMON!\pHere, honey! If you're going out on an\nadventure, wear these RUNNING SHOES.\pThey'll put a zip in your step!
#org 0x81E8925
= \v\h01 switched shoes with the\nRUNNING SHOES.
#org 0x81E894F
= MOM: \v\h01, those shoes came with\ninstructions.\p"Press the B Button while wearing these\nRUNNING SHOES to run extra-fast!\p"Slip on these RUNNING SHOES and race\nin the great outdoors!["]
#org 0x81E8A03
= [.] [.] [.] [.] [.] [.] [.] [.]\n[.] [.] [.] [.] [.] [.] [.] [.]\pTo think that you have your very own\nPOK\eMON now[.]\lYour father will be overjoyed.\p[.]But please be careful.\nIf anything happens, you can come home.\pGo on, go get them, honey!
#org 0x82725A8
M onspot_right end
#org 0x82725A4
M onspot_left end
#org 0x82725AA
M onspot_down end
#org 0x81E85D1
M walk_up_vslow walk_up_vslow walk_up_vslow walk_up_vslow walk_up_vslow walk_up_vslow end
#org 0x81E85D8
M walk_up_vslow walk_up_vslow walk_up_vslow walk_up_vslow walk_up_vslow walk_up_vslow end
#org 0x81E85DF
M walk_right_vslow walk_right_vslow walk_right_vslow walk_right_vslow end
#org 0x81E85E4
M walk_right_vslow walk_right_vslow walk_right_vslow walk_right_vslow walk_right_vslow end
#org 0x81E85EA
M walk_right_vslow walk_right_vslow end
#org 0x81E85F1
M walk_left_vslow walk_left_vslow walk_left_vslow end
#org 0x81E85F5
M walk_left_vslow walk_left_vslow end
#org 0x81E85F8
M walk_left_vslow walk_left_vslow walk_left_vslow walk_left_vslow walk_left_vslow end
#org 0x81E85FE
M walk_left_vslow walk_left_vslow walk_left_vslow walk_left_vslow end
#org 0x81E8603
M walk_down_vslow walk_down_vslow walk_down_vslow walk_down_vslow walk_down_vslow end
#org 0x81E8609
M walk_down_vslow walk_down_vslow walk_down_vslow walk_down_vslow walk_down_vslow end
#org 0x81E860F
M walk_left_vslow walk_left_vslow walk_left_vslow walk_left_vslow onspot_up end
#org 0x81E863B
M walk_up_vslow end
#org 0x81E8615
M walk_left_vslow walk_left_vslow walk_left_vslow walk_left_vslow walk_left_vslow onspot_up end
#org 0x81E861C
M walk_left_vslow walk_left_vslow onspot_up end
#org 0x81E8620
M walk_left_vslow walk_left_vslow walk_left_vslow onspot_up end
#org 0x81E8625
M walk_right_vslow walk_right_vslow walk_right_vslow onspot_up end
#org 0x81E862A
M walk_right_vslow walk_right_vslow onspot_up end
#org 0x81E862E
M walk_right_vslow walk_right_vslow walk_right_vslow walk_right_vslow walk_right_vslow onspot_up end
#org 0x81E8635
M walk_right_vslow walk_right_vslow walk_right_vslow walk_right_vslow onspot_up end
#org 0x81E85ED
M walk_right_vslow walk_right_vslow walk_right_vslow end
Basically, what you need to do is add this:
Code:
#org @start
'-----------------------------------
lockall
setvar variable number 'if this script is meant to happen over and over you can just skip this part
jump @beginningOfScript
Here's a nice tutorial.Hey, how do you create a custom item?
If you want to sacrifice any chance of using anything other than FireRed, here's a tutorial. Otherwise, we don't know yet, you could search it up.Also how can I insert a charmander/squirtle/bulbasaur sprite onto a map, like a legendary battle?
Good luck!
Last edited: