- 26
- Posts
- 17
- Years
- Seen Oct 22, 2013
Okay, I have two major script problems. (well, major as in, "my hack NEEDS it")
Before I post it, keep in mind I use Diamond Cutter because nothing else works for me =/ (also, I'm using Fire Red)
Okay, here's my script
#org 0x900000
lock
faceplayer
trainerbattle 3 0x019
release
end
#org 0x900100
lock
faceplayer
trainerbattle 3 0x01A
release
end
#org 0x900200
lock
faceplayer
trainerbattle 3 0x057
release
end
#org 0x900300
lock
faceplayer
trainerbattle 3 0x058
release
end
#org 0x900400
lock
faceplayer
trainerbattle 3 0x01D
release
end
#org 0x900500
lock
faceplayer
trainerbattle 3 0x04E
release
end
I'm trying to make offsets which when given to a person will instantly go into a trainer battle. (not text box or anything, just jump into the fight)
Diamond Cutter won't apply this to the game and I assume it's the script because other scripts have been accepted. What's wrong with this script?
Now, my 2nd scripting question. The following is a script for an Elite 4 member I got directly off of PKSV
#org 0x1625DC
'-----------------------------------
lock
faceplayer
setvar 0x8004 0x9
setvar 0x8005 0x2
special 0x174
checkflag 0x4B8
if 0x1 jump 0x8162669
setvar 0x8004 0x9
setvar 0x8005 0x0
special 0x173
setvar 0x8004 0x9
setvar 0x8005 0x1
special 0x173
checkflag 0x844
if 0x0 call 0x8162641
checkflag 0x844
if 0x1 call 0x816264A
setflag 0x3
setflag 0x5
checkflag 0x844
if 0x0 call 0x8162653
checkflag 0x844
if 0x1 call 0x816265E
clearflag 0x5
jump 0x8162673
#org 0x8162669
'-----------------------------------
msgbox 0x81781B0 ' You're better than I thought.\nGo on ahead.\pYou only got a t
aste of the\nPOKΘMON LEAGUE's power.
callstd MSG_NOCLOSE ' Non-closing msg
release
end
#org 0x8162641
'-----------------------------------
msgbox 0x8177FA4 ' Welcome to the POKΘMON LEAGUE.\pI am LORELEI of the ELITE FOU
R.\pNo one can best me when it comes\nto icy POKΘMON.\pFreezing moves are powerf
ul.\pYour POKΘMON will be at my mercy\nwhen they are frozen solid.\pHahaha!\nAre
you ready?\hFC\h0B\h56\h01
callstd MSG_NOCLOSE ' Non-closing msg
return
#org 0x816264A
'-----------------------------------
msgbox 0x8178089 ' Welcome to the POKΘMON LEAGUE.\pI, LORELEI of the ELITE FOUR,
\nhave returned!\pYou know how it goes.\nNo one can best me when it comes\lto ic
y POKΘMON.\pFreezing moves are powerful.\pYour POKΘMON will be at my mercy\nwhen
they are frozen solid.\pHahaha!\nAre you ready?\hFC\h0B\h56\h01
callstd MSG_NOCLOSE ' Non-closing msg
return
#org 0x8162653
'-----------------------------------
trainerbattle 0x3 0x19A 0x0 0x8178191 0xDF035C03
end
#org 0x816265E
'-----------------------------------
trainerbattle 0x3 0x2DF 0x0 0x8178191 0xB0000F03
#raw 0x81
#raw 0x17
jumpstd 0x9
#org 0x8162673
'-----------------------------------
setflag 0x4B8
call 0x81A7506
msgbox 0x81781B0 ' You're better than I thought.\nGo on ahead.\pYou only got a t
aste of the\nPOKΘMON LEAGUE's power.
callstd MSG_NOCLOSE ' Non-closing msg
release
end
#org 0x81A7506
'-----------------------------------
applymovement PLAYER 0x81A75FE ' raw_1C raw_1C end
pauseevent 0x0
CMD_2F 0x8 0x75380400
copyvarifnotzero 0x2508 0x8E
setflag 0x4
return
#org 0x81781B0
= You're better than I thought.\nGo on ahead.\pYou only got a taste of the\nPOKΘ
MON LEAGUE's power.
#org 0x8177FA4
= Welcome to the POKΘMON LEAGUE.\pI am LORELEI of the ELITE FOUR.\pNo one can be
st me when it comes\nto icy POKΘMON.\pFreezing moves are powerful.\pYour POKΘMON
will be at my mercy\nwhen they are frozen solid.\pHahaha!\nAre you ready?\hFC\h
0B\h56\h01
#org 0x8178089
= Welcome to the POKΘMON LEAGUE.\pI, LORELEI of the ELITE FOUR,\nhave returned!\
pYou know how it goes.\nNo one can best me when it comes\lto icy POKΘMON.\pFreez
ing moves are powerful.\pYour POKΘMON will be at my mercy\nwhen they are frozen
solid.\pHahaha!\nAre you ready?\hFC\h0B\h56\h01
#org 0x8178191
= [.]Things shouldn't be this way!
#org 0xDF035C03
= \h06 \h0E
#org 0x81A75FE
M raw_1C raw_1C end
I simply want to edit ONE value in the script, but I have no idea how to re-install this script after it's edited. Whenever I save this as a .rbc file, I get this message
This file contains Unicode format which will be lost if you save this file as an ANSI encoded text file. To keep the Unicode information, Click Cancel below and then select one of the Encoding drop down list.
I do what it says but Diamond Cutter still refuses to apply it to the game.
Does this script need to be translated into a certain format? If so, what parts need to be changed into what?
*is a scripting n00b who read tutorials but still doesn't know about translation from one format to another*
Before I post it, keep in mind I use Diamond Cutter because nothing else works for me =/ (also, I'm using Fire Red)
Okay, here's my script
Spoiler:
#org 0x900000
lock
faceplayer
trainerbattle 3 0x019
release
end
#org 0x900100
lock
faceplayer
trainerbattle 3 0x01A
release
end
#org 0x900200
lock
faceplayer
trainerbattle 3 0x057
release
end
#org 0x900300
lock
faceplayer
trainerbattle 3 0x058
release
end
#org 0x900400
lock
faceplayer
trainerbattle 3 0x01D
release
end
#org 0x900500
lock
faceplayer
trainerbattle 3 0x04E
release
end
I'm trying to make offsets which when given to a person will instantly go into a trainer battle. (not text box or anything, just jump into the fight)
Diamond Cutter won't apply this to the game and I assume it's the script because other scripts have been accepted. What's wrong with this script?
Now, my 2nd scripting question. The following is a script for an Elite 4 member I got directly off of PKSV
Spoiler:
#org 0x1625DC
'-----------------------------------
lock
faceplayer
setvar 0x8004 0x9
setvar 0x8005 0x2
special 0x174
checkflag 0x4B8
if 0x1 jump 0x8162669
setvar 0x8004 0x9
setvar 0x8005 0x0
special 0x173
setvar 0x8004 0x9
setvar 0x8005 0x1
special 0x173
checkflag 0x844
if 0x0 call 0x8162641
checkflag 0x844
if 0x1 call 0x816264A
setflag 0x3
setflag 0x5
checkflag 0x844
if 0x0 call 0x8162653
checkflag 0x844
if 0x1 call 0x816265E
clearflag 0x5
jump 0x8162673
#org 0x8162669
'-----------------------------------
msgbox 0x81781B0 ' You're better than I thought.\nGo on ahead.\pYou only got a t
aste of the\nPOKΘMON LEAGUE's power.
callstd MSG_NOCLOSE ' Non-closing msg
release
end
#org 0x8162641
'-----------------------------------
msgbox 0x8177FA4 ' Welcome to the POKΘMON LEAGUE.\pI am LORELEI of the ELITE FOU
R.\pNo one can best me when it comes\nto icy POKΘMON.\pFreezing moves are powerf
ul.\pYour POKΘMON will be at my mercy\nwhen they are frozen solid.\pHahaha!\nAre
you ready?\hFC\h0B\h56\h01
callstd MSG_NOCLOSE ' Non-closing msg
return
#org 0x816264A
'-----------------------------------
msgbox 0x8178089 ' Welcome to the POKΘMON LEAGUE.\pI, LORELEI of the ELITE FOUR,
\nhave returned!\pYou know how it goes.\nNo one can best me when it comes\lto ic
y POKΘMON.\pFreezing moves are powerful.\pYour POKΘMON will be at my mercy\nwhen
they are frozen solid.\pHahaha!\nAre you ready?\hFC\h0B\h56\h01
callstd MSG_NOCLOSE ' Non-closing msg
return
#org 0x8162653
'-----------------------------------
trainerbattle 0x3 0x19A 0x0 0x8178191 0xDF035C03
end
#org 0x816265E
'-----------------------------------
trainerbattle 0x3 0x2DF 0x0 0x8178191 0xB0000F03
#raw 0x81
#raw 0x17
jumpstd 0x9
#org 0x8162673
'-----------------------------------
setflag 0x4B8
call 0x81A7506
msgbox 0x81781B0 ' You're better than I thought.\nGo on ahead.\pYou only got a t
aste of the\nPOKΘMON LEAGUE's power.
callstd MSG_NOCLOSE ' Non-closing msg
release
end
#org 0x81A7506
'-----------------------------------
applymovement PLAYER 0x81A75FE ' raw_1C raw_1C end
pauseevent 0x0
CMD_2F 0x8 0x75380400
copyvarifnotzero 0x2508 0x8E
setflag 0x4
return
#org 0x81781B0
= You're better than I thought.\nGo on ahead.\pYou only got a taste of the\nPOKΘ
MON LEAGUE's power.
#org 0x8177FA4
= Welcome to the POKΘMON LEAGUE.\pI am LORELEI of the ELITE FOUR.\pNo one can be
st me when it comes\nto icy POKΘMON.\pFreezing moves are powerful.\pYour POKΘMON
will be at my mercy\nwhen they are frozen solid.\pHahaha!\nAre you ready?\hFC\h
0B\h56\h01
#org 0x8178089
= Welcome to the POKΘMON LEAGUE.\pI, LORELEI of the ELITE FOUR,\nhave returned!\
pYou know how it goes.\nNo one can best me when it comes\lto icy POKΘMON.\pFreez
ing moves are powerful.\pYour POKΘMON will be at my mercy\nwhen they are frozen
solid.\pHahaha!\nAre you ready?\hFC\h0B\h56\h01
#org 0x8178191
= [.]Things shouldn't be this way!
#org 0xDF035C03
= \h06 \h0E
#org 0x81A75FE
M raw_1C raw_1C end
I simply want to edit ONE value in the script, but I have no idea how to re-install this script after it's edited. Whenever I save this as a .rbc file, I get this message
Spoiler:
This file contains Unicode format which will be lost if you save this file as an ANSI encoded text file. To keep the Unicode information, Click Cancel below and then select one of the Encoding drop down list.
I do what it says but Diamond Cutter still refuses to apply it to the game.
Does this script need to be translated into a certain format? If so, what parts need to be changed into what?
*is a scripting n00b who read tutorials but still doesn't know about translation from one format to another*