Script Help Thread (DO NOT REQUEST SCRIPTS) Page 380

Started by HackMew December 20th, 2008 5:10 AM
  • 625717 views
  • 9682 replies
Male
Seen March 26th, 2015
Posted March 13th, 2014
1 posts
10.8 Years
i keep run into this every time i compile a script/change (oak's script).

#org 0x818E116
= Kelart: Now, \v\h01.\pInside those three POK\e BALLS are\nPOK\eMON.\pWhich one will you choose for\nyourself?

#org 0x81A72AD
= Thank you, \v\h01!\nSincerely, thank you!\lYou've made my dream a reality!

#org 0x81A7291
= What!!!

#org 0x818E871
= POK\eMON around the world wait for\nyou, \v\h01!

#org 0x818EDF5
= Ah, now this is excellent!\p\v\h01, I have another important\nfavor to ask of you.\pI need you to listen closely.

#org 0x818EE60
= Recently, there have been sightings\nof many rare POK\eMON species.\pI'm talking about POK\eMON that\nhave never been seen in KANTO.\pI would love to go see things for\nmyself, but I'm much too old.\pSince I can't do it, \v\h01, I'd\nlike you to go in my place.

#org 0x818EF59
= \v\h06: Hey, I heard that!\pProfessor, what's with favoring\n\v\h01 over me all the time?\pI went and collected more POK\eMON,\nand faster, too.\pYou should just let me handle\neverythinKelart: I know, I know.\nOf course I need your help, too.\pNow, I need to see both your\nPOK\eDEXEPROF. Kelart took both POK\eDEX\nunit[.] [.] [.]  [.] [.] [.]\p[.] [.] [.]  [.] [.] [.]\p[.]And that's done!\pNow these units can record data on\na lot more POK\eMON.

#org 0x818F004
= Kelart: I know, I know.\nOf course I need your help, too.\pNow, I need to see both your\nPOK\eDEXEPROF. Kelart took both POK\eDEX\nunit[.] [.] [.]  [.] [.] [.]\p[.] [.] [.]  [.] [.] [.]\p[.]And that's done!\pNow these units can record data on\na lot more POK\eMON.

#org 0x818F062
= PROF. Kelart took both POK\eDEX\nunit[.] [.] [.]  [.] [.] [.]\p[.] [.] [.]  [.] [.] [.]\p[.]And that's done!\pNow these units can record data on\na lot more POK\eMON.

#org 0x818F085
= [.] [.] [.]  [.] [.] [.]\p[.] [.] [.]  [.] [.] [.]\p[.]And that's done!\pNow these units can record data on\na lot more POK\eMON.

#org 0x818F0E8
= \v\h01's POK\eDEX was upgraded!

#org 0x818F103
= Now, \v\h01 and \v\h06!\pThis time, you really must work\ntowards filling your POK\eDEXES.\pI urge you to make them the best\nand the most complete of all time!\pTruly, this is a monumentally great\nundertaking in POK\eMON history!

#org 0x818F1DB
= \v\h06: Professor, calm down.\nDon't get so excited.\pI'll get the POK\eDEX completed,\ndon't you worry about a thing.\pI think I'll try looking around\nONE ISLAND first[.]\pAnyways, I'm outta here!

#org 0x818E98E
= Kelart: Come see me sometime.\pAfter all, I want to know how your\nPOK\eDEX is coming along.

#org 0x818E89C
= Ah, \v\h01!\nHow is your POK\eDEX shaping up?\p\v\h06 has already caught some\nPOK\eMON and added to the data.\pSo, \v\h01, let's have a look at\nyour POK\eDEX.\p[.]What's the matter?\nYou've added no new data at all.\pI'll give you these, so do try a\nlittle harder.

#org 0x818E6B3
= N.

#org 0x818E405
= When.

#org 0x818E4AF
= \v\h01 delivered Kelart'S PARCEAh! \nIt's the custom POK\e BALL!\pI had it on order.\nThank you!

#org 0x818E4CA
= Ah! \nIt's the custom POK\e BALL!\pI had it on order.\nThank you!

#org 0x818DE8D
= \v\h06: Professo\v\h06: I almost forgot!\nWhat did you call me for?

#org 0x818DE99
= \v\h06: I almost forgot!\nWhat did you call me for?

#org 0x818E508
= Kelart: Oh, right!\nI have a request for you twOn the desk there is my invention,\nthe POK\eDEX!\pIt automatically records data on\nPOK\eMON you've seen or caught.\pIt's a high-tech encyclopedia!

#org 0x818E536
= On the desk there is my invention,\nthe POK\eDEX!\pIt automatically records data on\nPOK\eMON you've seen or caught.\pIt's a high-tech encyclopedia!

#org 0x818E5C5
= Kelart: \v\h01 and \v\h06.\nTake these with yo\v\h01 received the POK\eDEX\nfrom PROF. KelarKelart: You can't get detailed data\non POK\eMON by just seeing them.\pYou must catch them to obtain\ncomplete data.\pSo, here are some tools for\ncatching wild POK\eMON.

#org 0x818E5EA
= \v\h01 received the POK\eDEX\nfrom PROF. KelarKelart: You can't get detailed data\non POK\eMON by just seeing them.\pYou must catch them to obtain\ncomplete data.\pSo, here are some tools for\ncatching wild POK\eMON.

#org 0x818E612
= Kelart: You can't get detailed data\non POK\eMON by just seeing them.\pYou must catch them to obtain\ncomplete data.\pSo, here are some tools for\ncatching wild POK\eMON.

#org 0x818E6D0
= When a wild POK\eMON appears,\nit's fair game.\pJust throw a POK\e BALL at it and\ntry to catch it!\pThis won't always work, however.\pA healthy POK\eMON can escape.\nYou have to be lucky!

#org 0x818E784
= To make a complete guide on all\nthe POK\eMON in the world[.]\pThat was my dream!\pBut, I'm too old.\nI can't get the job done.\pSo, I want you two to fulfill my\ndream for me.\pGet moving, you two.\pThis is a great undertaking in\nPOK\eMON history!

#org 0x818DEC8
= \v\h06: All right, Professor!\nLeave it all to m\v\h01, I hate to say it, but you\nwon't be necessary for this.\pI know! \pDon't bother coming around to\nmy place!

#org 0x818DEF3
= \v\h01, I hate to say it, but you\nwon't be necessary for this.\pI know! \pDon't bother coming around to\nmy place!

#org 0x818E3AD
= no.

#org 0x818E330
= t!

#org 0x81A75E1
M faceplayer end

#org 0x8169990
M onspot_down onspot_down_fast onspot_down onspot_down onspot_down_fast onspot_down end

#org 0x8169997
M onspot_up onspot_up_fast onspot_up onspot_up onspot_up_fast onspot_up end

#org 0x8169B94
M look_down_delayed pause_long pause_long pause_long pause_long pause_long pause look_left_delayed end

#org 0x8169B9D
M walk_up walk_up walk_up walk_up walk_up walk_up end

#org 0x81A75ED
M look_down_delayed end

#org 0x8169B91
M pause_short look_down_delayed end

#org 0x81A75DB
M say_! end

#org 0x81A75DD
M pause_long pause_long pause_long end

#org 0x81A75E9
M look_up_delayed end

#org 0x816999E
M onspot_left onspot_left_fast onspot_left onspot_left onspot_left_fast onspot_left end

#org 0x81699A5
M onspot_right onspot_right_fast onspot_right onspot_right onspot_right_fast onspot_right end

#org 0x81A75E7
M look_left_delayed end

#org 0x8169232
M walk_up walk_left look_up_delayed pause_long pause_short end

#org 0x8169238
M walk_left walk_left walk_up pause_long pause_short end

#org 0x81698C7
M pause_long pause look_left_delayed end

#org 0x81698C3
M pause_long pause look_up_delayed end

#org 0x816987C
M walk_right walk_down end

#org 0x816987F
M walk_down walk_right end

#org 0x8169878
M pause_long pause look_right_delayed end

#org 0x8169BA4
M walk_down walk_down walk_down walk_down walk_down walk_down end

#org 0x81A75EB
M look_right_delayed end

#org 0x81698CB
M walk_up walk_left pause_long look_down_delayed end

#org 0x81698D0
M walk_left walk_left walk_up pause_long look_right_delayed end

Joexv

ManMadeOfGouda
joexv.github.io

Age 25
Male
Oregon
Seen January 26th, 2023
Posted April 8th, 2022
1,035 posts
10.6 Years
i keep run into this every time i compile a script/change (oak's script).
Spoiler:
#org 0x818E116
= Kelart: Now, \v\h01.\pInside those three POK\e BALLS are\nPOK\eMON.\pWhich one will you choose for\nyourself?

#org 0x81A72AD
= Thank you, \v\h01!\nSincerely, thank you!\lYou've made my dream a reality!

#org 0x81A7291
= What!!!

#org 0x818E871
= POK\eMON around the world wait for\nyou, \v\h01!

#org 0x818EDF5
= Ah, now this is excellent!\p\v\h01, I have another important\nfavor to ask of you.\pI need you to listen closely.

#org 0x818EE60
= Recently, there have been sightings\nof many rare POK\eMON species.\pI'm talking about POK\eMON that\nhave never been seen in KANTO.\pI would love to go see things for\nmyself, but I'm much too old.\pSince I can't do it, \v\h01, I'd\nlike you to go in my place.

#org 0x818EF59
= \v\h06: Hey, I heard that!\pProfessor, what's with favoring\n\v\h01 over me all the time?\pI went and collected more POK\eMON,\nand faster, too.\pYou should just let me handle\neverythinKelart: I know, I know.\nOf course I need your help, too.\pNow, I need to see both your\nPOK\eDEXEPROF. Kelart took both POK\eDEX\nunit[.] [.] [.] [.] [.] [.]\p[.] [.] [.] [.] [.] [.]\p[.]And that's done!\pNow these units can record data on\na lot more POK\eMON.

#org 0x818F004
= Kelart: I know, I know.\nOf course I need your help, too.\pNow, I need to see both your\nPOK\eDEXEPROF. Kelart took both POK\eDEX\nunit[.] [.] [.] [.] [.] [.]\p[.] [.] [.] [.] [.] [.]\p[.]And that's done!\pNow these units can record data on\na lot more POK\eMON.

#org 0x818F062
= PROF. Kelart took both POK\eDEX\nunit[.] [.] [.] [.] [.] [.]\p[.] [.] [.] [.] [.] [.]\p[.]And that's done!\pNow these units can record data on\na lot more POK\eMON.

#org 0x818F085
= [.] [.] [.] [.] [.] [.]\p[.] [.] [.] [.] [.] [.]\p[.]And that's done!\pNow these units can record data on\na lot more POK\eMON.

#org 0x818F0E8
= \v\h01's POK\eDEX was upgraded!

#org 0x818F103
= Now, \v\h01 and \v\h06!\pThis time, you really must work\ntowards filling your POK\eDEXES.\pI urge you to make them the best\nand the most complete of all time!\pTruly, this is a monumentally great\nundertaking in POK\eMON history!

#org 0x818F1DB
= \v\h06: Professor, calm down.\nDon't get so excited.\pI'll get the POK\eDEX completed,\ndon't you worry about a thing.\pI think I'll try looking around\nONE ISLAND first[.]\pAnyways, I'm outta here!

#org 0x818E98E
= Kelart: Come see me sometime.\pAfter all, I want to know how your\nPOK\eDEX is coming along.

#org 0x818E89C
= Ah, \v\h01!\nHow is your POK\eDEX shaping up?\p\v\h06 has already caught some\nPOK\eMON and added to the data.\pSo, \v\h01, let's have a look at\nyour POK\eDEX.\p[.]What's the matter?\nYou've added no new data at all.\pI'll give you these, so do try a\nlittle harder.

#org 0x818E6B3
= N.

#org 0x818E405
= When.

#org 0x818E4AF
= \v\h01 delivered Kelart'S PARCEAh! \nIt's the custom POK\e BALL!\pI had it on order.\nThank you!

#org 0x818E4CA
= Ah! \nIt's the custom POK\e BALL!\pI had it on order.\nThank you!

#org 0x818DE8D
= \v\h06: Professo\v\h06: I almost forgot!\nWhat did you call me for?

#org 0x818DE99
= \v\h06: I almost forgot!\nWhat did you call me for?

#org 0x818E508
= Kelart: Oh, right!\nI have a request for you twOn the desk there is my invention,\nthe POK\eDEX!\pIt automatically records data on\nPOK\eMON you've seen or caught.\pIt's a high-tech encyclopedia!

#org 0x818E536
= On the desk there is my invention,\nthe POK\eDEX!\pIt automatically records data on\nPOK\eMON you've seen or caught.\pIt's a high-tech encyclopedia!

#org 0x818E5C5
= Kelart: \v\h01 and \v\h06.\nTake these with yo\v\h01 received the POK\eDEX\nfrom PROF. KelarKelart: You can't get detailed data\non POK\eMON by just seeing them.\pYou must catch them to obtain\ncomplete data.\pSo, here are some tools for\ncatching wild POK\eMON.

#org 0x818E5EA
= \v\h01 received the POK\eDEX\nfrom PROF. KelarKelart: You can't get detailed data\non POK\eMON by just seeing them.\pYou must catch them to obtain\ncomplete data.\pSo, here are some tools for\ncatching wild POK\eMON.

#org 0x818E612
= Kelart: You can't get detailed data\non POK\eMON by just seeing them.\pYou must catch them to obtain\ncomplete data.\pSo, here are some tools for\ncatching wild POK\eMON.

#org 0x818E6D0
= When a wild POK\eMON appears,\nit's fair game.\pJust throw a POK\e BALL at it and\ntry to catch it!\pThis won't always work, however.\pA healthy POK\eMON can escape.\nYou have to be lucky!

#org 0x818E784
= To make a complete guide on all\nthe POK\eMON in the world[.]\pThat was my dream!\pBut, I'm too old.\nI can't get the job done.\pSo, I want you two to fulfill my\ndream for me.\pGet moving, you two.\pThis is a great undertaking in\nPOK\eMON history!

#org 0x818DEC8
= \v\h06: All right, Professor!\nLeave it all to m\v\h01, I hate to say it, but you\nwon't be necessary for this.\pI know! \pDon't bother coming around to\nmy place!

#org 0x818DEF3
= \v\h01, I hate to say it, but you\nwon't be necessary for this.\pI know! \pDon't bother coming around to\nmy place!

#org 0x818E3AD
= no.

#org 0x818E330
= t!

#org 0x81A75E1
M faceplayer end

#org 0x8169990
M onspot_down onspot_down_fast onspot_down onspot_down onspot_down_fast onspot_down end

#org 0x8169997
M onspot_up onspot_up_fast onspot_up onspot_up onspot_up_fast onspot_up end

#org 0x8169B94
M look_down_delayed pause_long pause_long pause_long pause_long pause_long pause look_left_delayed end

#org 0x8169B9D
M walk_up walk_up walk_up walk_up walk_up walk_up end

#org 0x81A75ED
M look_down_delayed end

#org 0x8169B91
M pause_short look_down_delayed end

#org 0x81A75DB
M say_! end

#org 0x81A75DD
M pause_long pause_long pause_long end

#org 0x81A75E9
M look_up_delayed end

#org 0x816999E
M onspot_left onspot_left_fast onspot_left onspot_left onspot_left_fast onspot_left end

#org 0x81699A5
M onspot_right onspot_right_fast onspot_right onspot_right onspot_right_fast onspot_right end

#org 0x81A75E7
M look_left_delayed end

#org 0x8169232
M walk_up walk_left look_up_delayed pause_long pause_short end

#org 0x8169238
M walk_left walk_left walk_up pause_long pause_short end

#org 0x81698C7
M pause_long pause look_left_delayed end

#org 0x81698C3
M pause_long pause look_up_delayed end

#org 0x816987C
M walk_right walk_down end

#org 0x816987F
M walk_down walk_right end

#org 0x8169878
M pause_long pause look_right_delayed end

#org 0x8169BA4
M walk_down walk_down walk_down walk_down walk_down walk_down end

#org 0x81A75EB
M look_right_delayed end

#org 0x81698CB
M walk_up walk_left pause_long look_down_delayed end

#org 0x81698D0
M walk_left walk_left walk_up pause_long look_right_delayed end
so whats the issue youre having?
New living flesh vessel who dis?
Male
Netherlands
Seen February 5th, 2015
Posted March 14th, 2014
9 posts
9.2 Years
LASTRESULT is not defined, which means you are missing the key std.rbc file that comes with XSE. You can manually define it like I did in your spoiler above.
Thnx adding it manually did the trick. I seem to have a problem with msgbox 4 and 5. The error I get is : Type mismatch. No dynamic lable. I dont know whats wrong but I think its my xse? But I wanted to ask before I would try to reinstal xse in case its something stupid I'm doing.

Here is a script that gives me the error.
Spoiler:
#dynamic 0x801105
#org @start
lock
faceplayer
fanfare 0x13E
msgbox @1 0x4
waitfanfare
closeonkeypress
setflag 0x828
release
end
Male
Seen July 18th, 2016
Posted January 14th, 2016
199 posts
11.7 Years


Thnx adding it manually did the trick. I seem to have a problem with msgbox 4 and 5. The error I get is : Type mismatch. No dynamic lable. I dont know whats wrong but I think its my xse? But I wanted to ask before I would try to reinstal xse in case its something stupid I'm doing.

Here is a script that gives me the error.
Spoiler:
#dynamic 0x801105
#org @start
lock
faceplayer
fanfare 0x13E
msgbox @1 0x4
waitfanfare
closeonkeypress
setflag 0x828
release
end

Spoiler:
#dynamic 0x801105
#org @start
lock
faceplayer
fanfare 0x13E
msgbox @1 0x4
waitfanfare
closeonkeypress
setflag 0x828
release
end

#org @1
= INSERT MESSAGE HERE


Replace the bold part with whatever you want.

Herpahermaderp

I liek Mudkipz

Age 25
Male
USA
Seen January 3rd, 2017
Posted July 27th, 2016
66 posts
10.9 Years
Which XSE special causes an earthquake in Emerald? I've tried all of the ones listed in diegoisawesome's tutorial, but they all just freeze the game. Here's an example of what I'm using:
Spoiler:
#dynamic 0x800000
#org @start
lock
setvar 0x8004 0xF
setvar 0x8005 0xF
setvar 0x8006 0xF
setvar 0x8007 0xF
special 0x136
release
end
Y: Roak || 1177-8023-4387

ShyRayq

Unprofessional Unprofessional

Male
Seen 4 Days Ago
Posted March 2nd, 2023
1,855 posts
15.7 Years
Which XSE special causes an earthquake in Emerald? I've tried all of the ones listed in diegoisawesome's tutorial, but they all just freeze the game. Here's an example of what I'm using:
Spoiler:
#dynamic 0x800000
#org @start
lock
setvar 0x8004 0xF
setvar 0x8005 0xF
setvar 0x8006 0xF
setvar 0x8007 0xF
special 0x136
release
end
One problem, the vars thing you're doing, that's for Ruby/Sapphire. I don't believe FR HAS an Earthquake special, I mean think, did an Earthquake EVER happen in FR/LG? Also, if you check Jpan's study on the Special and Special2, he doesn't mention any specials that execute an Earthquake effect.
So, you could either, not have an earthquake event(?) in your hack, or, ASM hack one of the specials. The former is much easier.
3DS Friend Code: 5069-3944-3902
IGN: Peter; (X, Y, OR, AS, S, M, US, UM)
Friend Safari: (Fighting) Throh, Meditite, Breloom
Living Pokedex Complete: Y, C, R, LG, E, D, Pl, HG, B, B2, X, Y, OR, AS, M, UM, LGP, Sw, LA
Big thanks especially to DestinedJagold, Xerneas_X, Elements1, ~RNC~ and ThePoke Man

PM me if you want to trade, or add my FC.
Male
Seen October 21st, 2015
Posted May 10th, 2015
4 posts
10.2 Years
Hi. Just wondering if anyone could help me with a small issue that I'm having. Not sure if it's related to the script that I'm trying to put in, or if the program is just trying to make my life hell.

I've created an event where a player gives you a Treecko, which is at Level 15. I typed all of this code, hit debug, hit compile, saved it, and then went into the game to test it, but the character didn't do anything when I tried to talk with it. Upon further investigation, I found out that the script had somehow reverted back from a 175 line script to 3 lines that do nothing. Could someone please explain to me what is going on?

Here is the script that I'm using. Most of the bits of the script are based off the event where you purchase a Magikarp.

Spoiler:
'---------------
#org 0x3AE340
lock
faceplayer
checkflag 0x8C3
if 0x1 goto 0x83AE341
msgbox 0x83AE342 0x5
goto 0x83AE343

'---------------
#org 0x3AE341
msgbox 0x83AE344 0x4
release
end

'---------------
#org 0x3AE343
compare 0x800D 0x0
if 0x1 goto 0x83AE345
setvar 0x4001 0xFC
givepokemon 0xFC 0x15 0x0 0x0 0x0 0x0
compare 0x800D 0x0
if 0x1 goto 0x83AE358
compare 0x800D 0x1
if 0x1 goto 0x83AE359
compare 0x800D 0x2
if 0x1 goto 0x816F8AC
end

'---------------
#org 0x3AE345
msgbox 0x83AE35B 0x4
release
end

'---------------
#org 0x3AE358
call 0x83AE35D
msgbox 0x81A56A7 0x5
compare 0x800D 0x0
if 0x1 call 0x81A8C27
fadescreen 0x1
special 0x9E
waitstate
goto 0x83AE35C

'---------------
#org 0x3AE359
call 0x83AE35D
msgbox 0x81A56A7 0x5
compare 0x800D 0x0
if 0x1 goto 0x816F84B
fadescreen 0x1
special 0x166
waitstate
lock
faceplayer
goto 0x816F856

'---------------
#org 0x16F8AC
textcolor 0x0
msgbox 0x819DC3E 0x4
release
end

'---------------
#org 0x3AE35D
fanfare 0x101
preparemsg 0x83AE35E
waitmsg
waitfanfare
bufferpokemon 0x0 0xFC
return

'---------------
#org 0x1A8C27
countpokemon
subvar 0x800D 0x1
copyvar 0x8004 0x800D
return

'---------------
#org 0x3AE35C
setflag 0x8C3
release
end

'---------------
#org 0x16F84B
call 0x81A8C3C
goto 0x816F861

'---------------
#org 0x16F856
call 0x81A8C3C
goto 0x816F86A

'---------------
#org 0x1A8C3C
bufferboxname 0x0 0x4037
bufferpokemon 0x1 0x4001
checkflag 0x834
if 0x0 call 0x81A8C57
checkflag 0x834
if 0x1 call 0x81A8C82
return

'---------------
#org 0x1A8C57
special2 0x800D 0x165
compare 0x800D 0x1
if 0x1 goto 0x81A8C70
msgbox 0x81A5CF1 0x4 '"[buffer2] was transferred to\nSome..."
return

'---------------
#org 0x1A8C82
special2 0x800D 0x165
compare 0x800D 0x1
if 0x1 goto 0x81A8C9B
msgbox 0x81A5D31 0x4 '"[buffer2] was transferred to\nBill..."
return

'---------------
#org 0x1A8C70
special2 0x800D 0x18A
bufferboxname 0x2 0x800D
msgbox 0x81A5D6E 0x4 '"Box ["][buffer3]" on\nSomeone's PC..."
return

'---------------
#org 0x1A8C9B
special2 0x800D 0x18A
bufferboxname 0x2 0x800D
msgbox 0x81A5DB1 0x4 '"Box ["][buffer3]" on\nBill'S PC wa..."
return

'---------
' Strings
'---------

#org 0x3AE344
= How is Treecko going?

#org 0x3AE342
= Hi! You look reliable.\nI have this Treecko here that\lseems to have been abandoned. I\lknow that I can't take care of it,\lso could you?

#org 0x3AE35B
= Oh. Such a shame. Poor Treecko.

#org 0x1A56A7
= Do you want to give a nickname to\nthis [buffer1]?

#org 0x19DC3E
= There's no more room for any more\nPokémon, it looks like.

#org 0x3AE35E
= [player] received Treecko!

#org 0x1A5CF1
= [buffer2] was transferred to\nSomeone's PC.\pIt was placed in \nBox ["][buffer1]."

#org 0x1A5D31
= [buffer2] was transferred to\nBill'S PC.\pIt was placed in \nBox ["][buffer1]."

#org 0x1A5D6E
= Box ["][buffer3]" on\nSomeone's PC was full.\p[buffer2] was transferred to\nBox ["][buffer1]."

#org 0x1A5DB1
= Box ["][buffer3]" on\nBill'S PC was full.\p[buffer2] was transferred to\nBox ["][buffer1]."

Danny0317

Fluorite's back, brah

Age 23
Male
Seen February 19th, 2021
Posted March 11th, 2017
1,067 posts
9.9 Years
So I wanna make a script that the outcome changes if you lose the battle. Sort of like if you win, the guy says "aww man" and runs away, and if you lose he says "you suck" and walks away. I know its something to do with trainerbattle 0x9 but that one has the proffesor Oak text, is there a way to take that out or have the outcome of the script change depending if you win or lose the battle. And also, does anyone know how mulitchoice in a script works. I know how to change the multichoice boxes, I just don't understand what to write if the player chooses one. Thanks :)

Herpahermaderp

I liek Mudkipz

Age 25
Male
USA
Seen January 3rd, 2017
Posted July 27th, 2016
66 posts
10.9 Years
One problem, the vars thing you're doing, that's for Ruby/Sapphire. I don't believe FR HAS an Earthquake special, I mean think, did an Earthquake EVER happen in FR/LG? Also, if you check Jpan's study on the Special and Special2, he doesn't mention any specials that execute an Earthquake effect.
So, you could either, not have an earthquake event(?) in your hack, or, ASM hack one of the specials. The former is much easier.
FireRed does in fact have an earthquake event, when you push all the stones in place at Sevault Canyon. But this is Emerald I'm talking about. I'm pretty sure there were some earthquake events in that game as well, though :P
Y: Roak || 1177-8023-4387
Age 26
Male
Seen July 6th, 2019
Posted October 26th, 2016
252 posts
10.1 Years
FireRed does in fact have an earthquake event, when you push all the stones in place at Sevault Canyon. But this is Emerald I'm talking about. I'm pretty sure there were some earthquake events in that game as well, though :P
I found this in one of the level scripts in Sky Pillar. I think this is what you want:
setvar 0x8004 0x1
setvar 0x8005 0x1
setvar 0x8006 0x8
setvar 0x8007 0x3
special 0x138
waitstate
Does anybody know what script I have to call on Emerald when giving a pokemon to run the nickname giving process?
I would open the script for the Beldum gift event after the Elite Four and look at that. There should be a nickname giving process in there.

M0ZEPH

Formally 'Resultz' - Returned!

Male
Seen March 30th, 2014
Posted March 21st, 2014
76 posts
9.3 Years
Okay great thanks I'll have a look!

Okay something abit tougher.

Is there a section of the Wildbattle command which toggles if the pokemon is shiny or not?
CURRENTLY LOOKING FOR HELP WITH MY ROMHACK! HELPERS WILL BE GIVEN JOINT CREDIT

PLEASE PM ME FOR INFO!

Avara

She/Her
Seen 6 Days Ago
Posted April 10th, 2022
1,305 posts
11.5 Years
Back with what could possibly be a stupid question, but if I install Day and Night/RTC from DNS, is there any way I could use a script to check which time it is?
And, would different Day/Night Pokémon require ASM?

Joexv

ManMadeOfGouda
joexv.github.io

Age 25
Male
Oregon
Seen January 26th, 2023
Posted April 8th, 2022
1,035 posts
10.6 Years
Back with what could possibly be a stupid question, but if I install Day and Night/RTC from DNS, is there any way I could use a script to check which time it is?
And, would different Day/Night Pokémon require ASM?
http://www.pokecommunity.com/showthread.php?t=299436 hers a tut on using time based scripts.

And a question of me own:
Whenever i use this script it gets to the yes/no and then no matter what i choose it freezes. Whats wrong? the asm offset if the shinyizer one.
Spoiler:
'---------------
#org 0x804EFA
checkflag 0x206
if 0x1 goto 0x8804F93
showmoney 0x0 0x0 0x0
waitkeypress
msgbox 0x8804F9E MSG_YESNO '"I've got a Magikarp.\pIt's not rea..."
compare LASTRESULT 0x1
if 0x1 goto 0x8804F21
loadpointer 0x0 0x880502C '"That's okay.\pI'm sure someone els..."
checkmoney 0x1F4 0x0
compare LASTRESULT 0x0
if 0x1 goto 0x880510F
paymoney 0x1F4 0x0
updatemoney 0x0 0x0 0x0
waitkeypress
hidemoney 0x0 0x0
callasm 0x826D428
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
callasm 0x826D428
fanfare 0x13E
msgbox 0x880505F MSG_KEEPOPEN '"[black_fr]You received a Magikarp!"
waitfanfare
closeonkeypress
setflag 0x206
msgbox 0x880507D MSG_YESNO '"[black_fr]Would you like to give a..."
compare LASTRESULT 0x1
if 0x1 call 0x8804F8C
msgbox 0x88050B1 MSG_NORMAL '"I hope you enjoy it....\n(wink win..."
release
end

'---------------
#org 0x804F93
msgbox 0x88050D7 MSG_NORMAL '"Don't tell a soul where you got\nt..."
release
end

'---------------
#org 0x804F21
checkmoney 0x1F4 0x0
compare LASTRESULT 0x0
if 0x1 goto 0x880510F
paymoney 0x1F4 0x0
updatemoney 0x0 0x0 0x0
waitkeypress
hidemoney 0x0 0x0
callasm 0x826D428
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
callasm 0x826D428
fanfare 0x13E
msgbox 0x880505F MSG_KEEPOPEN '"[black_fr]You received a Magikarp!"
waitfanfare
closeonkeypress
setflag 0x206
msgbox 0x880507D MSG_YESNO '"[black_fr]Would you like to give a..."
compare LASTRESULT 0x1
if 0x1 call 0x8804F8C
msgbox 0x88050B1 MSG_NORMAL '"I hope you enjoy it....\n(wink win..."
release
end

'---------------
#org 0x80510F
msgbox 0x880511A MSG_NORMAL '"You don't have enough money"
release
end

'---------------
#org 0x804F8C
call 0x81A74EB
return

'---------------
#org 0x1A74EB
fadescreen 0x1
special 0x9E
waitstate
return


'---------
' Strings
'---------
#org 0x804F9E
= I've got a Magikarp.\pIt's not really my favorite thing\nbut I think that you would be able\lto train this thing well.\pBut for a price of 500

#org 0x80502C
= That's okay.\pI'm sure someone else will\ntake it.

#org 0x80505F
= [black_fr]You received a Magikarp!

#org 0x80507D
= [black_fr]Would you like to give a\nnickname to Magikarp?

#org 0x8050B1
= I hope you enjoy it....\n(wink wink)

#org 0x8050D7
= Don't tell a soul where you got\nthat little mirical..

#org 0x80511A
= You don't have enough money
New living flesh vessel who dis?

ShyRayq

Unprofessional Unprofessional

Male
Seen 4 Days Ago
Posted March 2nd, 2023
1,855 posts
15.7 Years
http://www.pokecommunity.com/showthread.php?t=299436 hers a tut on using time based scripts.

And a question of me own:
Whenever i use this script it gets to the yes/no and then no matter what i choose it freezes. Whats wrong? the asm offset if the shinyizer one.
Spoiler:
'---------------
#org 0x804EFA
checkflag 0x206
if 0x1 goto 0x8804F93
showmoney 0x0 0x0 0x0
waitkeypress
msgbox 0x8804F9E MSG_YESNO '"I've got a Magikarp.\pIt's not rea..."
compare LASTRESULT 0x1
if 0x1 goto 0x8804F21
loadpointer 0x0 0x880502C '"That's okay.\pI'm sure someone els..."
checkmoney 0x1F4 0x0
compare LASTRESULT 0x0
if 0x1 goto 0x880510F
paymoney 0x1F4 0x0
updatemoney 0x0 0x0 0x0
waitkeypress
hidemoney 0x0 0x0
callasm 0x826D428
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
callasm 0x826D428
fanfare 0x13E
msgbox 0x880505F MSG_KEEPOPEN '"[black_fr]You received a Magikarp!"
waitfanfare
closeonkeypress
setflag 0x206
msgbox 0x880507D MSG_YESNO '"[black_fr]Would you like to give a..."
compare LASTRESULT 0x1
if 0x1 call 0x8804F8C
msgbox 0x88050B1 MSG_NORMAL '"I hope you enjoy it....\n(wink win..."
release
end

'---------------
#org 0x804F93
msgbox 0x88050D7 MSG_NORMAL '"Don't tell a soul where you got\nt..."
release
end

'---------------
#org 0x804F21
checkmoney 0x1F4 0x0
compare LASTRESULT 0x0
if 0x1 goto 0x880510F
paymoney 0x1F4 0x0
updatemoney 0x0 0x0 0x0
waitkeypress
hidemoney 0x0 0x0
callasm 0x826D428
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
callasm 0x826D428
fanfare 0x13E
msgbox 0x880505F MSG_KEEPOPEN '"[black_fr]You received a Magikarp!"
waitfanfare
closeonkeypress
setflag 0x206
msgbox 0x880507D MSG_YESNO '"[black_fr]Would you like to give a..."
compare LASTRESULT 0x1
if 0x1 call 0x8804F8C
msgbox 0x88050B1 MSG_NORMAL '"I hope you enjoy it....\n(wink win..."
release
end

'---------------
#org 0x80510F
msgbox 0x880511A MSG_NORMAL '"You don't have enough money"
release
end

'---------------
#org 0x804F8C
call 0x81A74EB
return

'---------------
#org 0x1A74EB
fadescreen 0x1
special 0x9E
waitstate
return


'---------
' Strings
'---------
#org 0x804F9E
= I've got a Magikarp.\pIt's not really my favorite thing\nbut I think that you would be able\lto train this thing well.\pBut for a price of 500

#org 0x80502C
= That's okay.\pI'm sure someone else will\ntake it.

#org 0x80505F
= [black_fr]You received a Magikarp!

#org 0x80507D
= [black_fr]Would you like to give a\nnickname to Magikarp?

#org 0x8050B1
= I hope you enjoy it....\n(wink wink)

#org 0x8050D7
= Don't tell a soul where you got\nthat little mirical..

#org 0x80511A
= You don't have enough money
Uh, I can't REALLY see anything wrong, from a quick glance. One things for certain though:
It should be "callasm 0x826D429" No 0x826D428.
This is because when you callasm, you add 1 to the offset because its in Thumb.
Other than that, I'm not that sure. Maybe write the script again and debug?
3DS Friend Code: 5069-3944-3902
IGN: Peter; (X, Y, OR, AS, S, M, US, UM)
Friend Safari: (Fighting) Throh, Meditite, Breloom
Living Pokedex Complete: Y, C, R, LG, E, D, Pl, HG, B, B2, X, Y, OR, AS, M, UM, LGP, Sw, LA
Big thanks especially to DestinedJagold, Xerneas_X, Elements1, ~RNC~ and ThePoke Man

PM me if you want to trade, or add my FC.

Joexv

ManMadeOfGouda
joexv.github.io

Age 25
Male
Oregon
Seen January 26th, 2023
Posted April 8th, 2022
1,035 posts
10.6 Years
Uh, I can't REALLY see anything wrong, from a quick glance. One things for certain though:
It should be "callasm 0x826D429" No 0x826D428.
This is because when you callasm, you add 1 to the offset because its in Thumb.
Other than that, I'm not that sure. Maybe write the script again and debug?
Well i changed it like you said and that stoped it from freezing but it then did an infinate loop of asking if you wanted to buy it or not. SO i used the buy magikarp script thats already in the game and tweaked it to mah needs.
New living flesh vessel who dis?

M0ZEPH

Formally 'Resultz' - Returned!

Male
Seen March 30th, 2014
Posted March 21st, 2014
76 posts
9.3 Years
#dynamic 0xE3CF64

#org @start
checkflag 0x860
if 0x1 goto @done
msgbox @1 0x4
closeonkeypress
checkflag 0x861
if 0x1 goto @pokemon
msgbox @2 0x2
end

#org @pokemon
msgbox @3 0x4
closeonkeypress
applymovement 0x00 @move
waitmovement @move
msgbox @6 0x4
closeonkeypress
givepokemon 0x89 0x7 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @4 0x4
waitfanfare
closeonkeypress
setflag 0x860
msgbox @5 0x2
release
end

#org @done
msgbox @5 0x2
release
end

#org @1
= \v\h01, we're going nowhere! \n The van's still broken, \l you should go and find my \l Pokedex and meet back here.

#org @2
= You not found it yet?

#org @3
= Ah there it is!, you should \n keep it, it's probably more use \lto you than me! \p Hmmm.... \p I have an idea. \pYou go into Mariniesco City and \llook for help, I'll give you \lmy Pokemon, let me find it...

#org @4
= [blue_em] You received Porygon!

#org @5
= There you go! I'll be here \l trying to fix the van!

#org @6
= Take care of it please.

#org @move
#raw 0x03
#raw 0x14
#raw 0x02
#raw 0x14
#raw 0x0A
#raw 0x01
#raw 0x14
#raw 0x15
#raw 0x15
#raw 0x01
#raw 0x14
#raw 0x56
#raw 0x0B
#raw 0x3E
#raw 0xFE
I keep getting a missing #define on Line 18 'waitmovement' line, I know it's a stupid mistake but I can't think what I could be missing!

EDIT: I tried removing the wait movement line and it worked, however in game I get the neverending weird character loop so SOMETHING's wrong.
CURRENTLY LOOKING FOR HELP WITH MY ROMHACK! HELPERS WILL BE GIVEN JOINT CREDIT

PLEASE PM ME FOR INFO!
Age 26
Male
Seen July 6th, 2019
Posted October 26th, 2016
252 posts
10.1 Years
#dynamic 0xE3CF64

#org @start
checkflag 0x860
if 0x1 goto @done
msgbox @1 0x4
closeonkeypress
checkflag 0x861
if 0x1 goto @pokemon
msgbox @2 0x2
end

#org @pokemon
msgbox @3 0x4
closeonkeypress
applymovement 0x00 @move
waitmovement @move
msgbox @6 0x4
closeonkeypress
givepokemon 0x89 0x7 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @4 0x4
waitfanfare
closeonkeypress
setflag 0x860
msgbox @5 0x2
release
end

#org @done
msgbox @5 0x2
release
end

#org @1
= \v\h01, we're going nowhere! \n The van's still broken, \l you should go and find my \l Pokedex and meet back here.

#org @2
= You not found it yet?

#org @3
= Ah there it is!, you should \n keep it, it's probably more use \lto you than me! \p Hmmm.... \p I have an idea. \pYou go into Mariniesco City and \llook for help, I'll give you \lmy Pokemon, let me find it...

#org @4
= [blue_em] You received Porygon!

#org @5
= There you go! I'll be here \l trying to fix the van!

#org @6
= Take care of it please.

#org @move
#raw 0x03
#raw 0x14
#raw 0x02
#raw 0x14
#raw 0x0A
#raw 0x01
#raw 0x14
#raw 0x15
#raw 0x15
#raw 0x01
#raw 0x14
#raw 0x56
#raw 0x0B
#raw 0x3E
#raw 0xFE
I keep getting a missing #define on Line 18 'waitmovement' line, I know it's a stupid mistake but I can't think what I could be missing!

EDIT: I tried removing the wait movement line and it worked, however in game I get the neverending weird character loop so SOMETHING's wrong.
Ok first of all, you're using the waitmovement command wrong. You want to use waitmovement 0x0. Look at diegoisawesome's xse tutorial for more info. And second, you do NOT want to remove waitmovement after applymovement.

M0ZEPH

Formally 'Resultz' - Returned!

Male
Seen March 30th, 2014
Posted March 21st, 2014
76 posts
9.3 Years
Ok first of all, you're using the waitmovement command wrong. You want to use waitmovement 0x0. Look at diegoisawesome's xse tutorial for more info. And second, you do NOT want to remove waitmovement after applymovement.
Thankyou So much! Compiled perfectly,

HOWEVER, I worked out that the reason for the weird characters is the Offset XSE is giving me (10002F4) is replaced by 0002F4 whenever I leave the map, replacing the script with an entirely different one!

I mean wtf.
CURRENTLY LOOKING FOR HELP WITH MY ROMHACK! HELPERS WILL BE GIVEN JOINT CREDIT

PLEASE PM ME FOR INFO!
Age 26
Male
Seen July 6th, 2019
Posted October 26th, 2016
252 posts
10.1 Years
Thankyou So much! Compiled perfectly,

HOWEVER, I worked out that the reason for the weird characters is the Offset XSE is giving me (10002F4) is replaced by 0002F4 whenever I leave the map, replacing the script with an entirely different one!

I mean wtf.
I'm guessing you're using an expanded rom? From what I've heard, Advance Map 1.92 doesn't support offsets with 7 digits, and idk if there's a way around this. I'm pretty sure MEH will support expanded roms though, so just be a bit patient lol. And if you're using Emerald (you were hacking Emerald, if I recall correctly), there's a tutorial somewhere I found that gives you more free space. I'll see if I can find it.
EDIT: Yep, found it: http://pokemonhackersonline.com/showthread.php?t=5742

M0ZEPH

Formally 'Resultz' - Returned!

Male
Seen March 30th, 2014
Posted March 21st, 2014
76 posts
9.3 Years
Yeah I expanded it under recommendation with the corruption risks and things. I could live with having to open up MEH to insert all my scripts haha,(Actually just realised MEH only supports warps currently) but I'll look at following the tutorial!

(I'm new to hacking, really, Scripting i'm beginning to understand but Hex editing is still uncharted territory for me)

thanks a lot for putting up with me, means a lot!
CURRENTLY LOOKING FOR HELP WITH MY ROMHACK! HELPERS WILL BE GIVEN JOINT CREDIT

PLEASE PM ME FOR INFO!
Age 26
Male
Seen July 6th, 2019
Posted October 26th, 2016
252 posts
10.1 Years
Yeah I expanded it under recommendation with the corruption risks and things. I could live with having to open up MEH to insert all my scripts haha,(Actually just realised MEH only supports warps currently) but I'll look at following the tutorial!

(I'm new to hacking, really, Scripting i'm beginning to understand but Hex editing is still uncharted territory for me)

thanks a lot for putting up with me, means a lot!
There's no corruption risks with making more free space, the corruption thing is actually talking about the mistake people made years ago when they thought Emerald used 00 bytes instead of FF bytes for free space, which caused sound glitches if people used Advance Map with Emerald. The tutorial I gave you fixes that and gives you more free space. And once you create more free space, you could use Advance Map with the freed offsets for a while, until MEH becomes beta status lol. And I haven't been hacking that long either, I struggle to make really big scripts sometimes haha.