View Single Post
  #282    
Old January 18th, 2009 (6:51 AM).
Andryandrew Andryandrew is offline
Italian Asm Hacker
 
Join Date: Mar 2007
Age: 22
Gender:
Nature: Timid
Posts: 117
Quote:
Originally Posted by пзо View Post
I have this Script. And it stuffs up at the last Move camera.
It don't go all the way back to the Player.
Its kinda Weird. This is a Level Script.

Compiled.
Spoiler:
'---------------
#org 0x71ABB4
#raw 0x2
#raw pointer 0x871ABBA
#raw 0x0

'---------------
#org 0x71ABBA
#raw word 0x8000
#raw word 0x0
#raw pointer 0x8800F41
#raw word 0x0

'---------------
#org 0x800F41
checkflag 0x200
if 0x1 goto 0x8801072
lockall
special 0x113
applymovement MOVE_CAMERA 0x8800FA5
waitmovement 0x0
special 0x114
msgbox 0x8800FB0 MSG_FACE '"[black_fr]???: Stupid Pokémon. Why..."
playsong 0x153 0x0
special 0x113
applymovement 0x1 0x8801003
applymovement MOVE_CAMERA 0x8801014
waitmovement 0x1
special 0x114
applymovement MOVE_PLAYER 0x880101F
waitmovement 0x0
msgbox 0x8801022 MSG_FACE '"[green_fr][player]:What was that a..."
fadesong 0x12C
hidesprite 0x1
setvar 0x8000 0x1
setflag 0x200
releaseall
goto 0x8801072

'---------------
#org 0x801072
end


'---------
' Strings
'---------
#org 0x800FB0
= [black_fr]???: Stupid Pokémon. Why can't you\njust win for a change.\lGet out of my face!

#org 0x801022
= [green_fr][player]:What was that all about. Huh?!\nThat Pokémon is hurt! I have to\lhelp it.


'-----------
' Movements
'-----------
#org 0x800FA5
#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 0x20 'Step Right (Fast)
#raw 0xFE 'End of Movements

#org 0x801003
#raw 0x65 'Double Exclamation Mark (!!)
#raw 0x1 'Face Up
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0xFE 'End of Movements

#org 0x801014
#raw 0x1F 'Step Left (Fast)
#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 0x80101F
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements


Non-compiled.
Spoiler:
#dynamic 0x800000

#org @begin
Checkflag 0x200
if 0x1 goto @end
lockall
special 0x113
applymovement 0x7F @movecamera1
waitmovement 0x0
special 0x114
msgbox @wheresplayer 0x2
playsong 0x153 0x0
special 0x113
applymovement 0x01 @thereyouare
applymovement 0x7F @movecamera2
waitmovement 0x01
special 0x114
applymovement 0xFF @theresrival
waitmovement 0x0
msgbox @hello 0x02
fadesong 0x12C
hidesprite 0x01
setvar 0x8000 0x1
setflag 0x200
Releaseall
goto @end

#org @movecamera1
#raw 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x20 0xFE

#org @wheresplayer
= [Black_fr]???: Stupid Pokémon. Why can't you just\nwin for a change. Get out of my\lface!

#org @thereyouare
#raw 0x65 0x01 0x1D 0x1D 0x1D 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1D 0x1D 0x1D 0x1D 0xFE

#org @movecamera2
#raw 0x1F 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE

#org @theresrival
#raw 0x62 0xFE

#org @hello
= [green_fr][player]:What was that all about. Huh?!\nThat Pokémon is hurt! I have to\lhelp it.

#org @end
end


Please Help.
the scrips seems correct, but i made some modify... maybe it run:
Spoiler:
#dynamic 0x800000

#org @begin
Checkflag 0x200
if 0x1 goto @end
lockall
special 0x113
applymovement 0x7F @movecamera1
waitmovement 0x0
msgbox @wheresplayer 0x2
playsong 0x153 0x0
applymovement 0x01 @thereyouare
applymovement 0x7F @movecamera2
waitmovement 0x01
special 0x114
applymovement 0xFF @theresrival
waitmovement 0x0
msgbox @hello 0x02
fadesong 0x12C
hidesprite 0x01
setvar 0x8000 0x1
setflag 0x200
Releaseall
goto @end

#org @movecamera1
#raw 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x20 0xFE

#org @wheresplayer
= [Black_fr]???: Stupid Pokémon. Why can't you just\nwin for a change. Get out of my\lface!

#org @thereyouare
#raw 0x65 0x01 0x1D 0x1D 0x1D 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1D 0x1D 0x1D 0x1D 0xFE

#org @movecamera2
#raw 0x1F 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE

#org @theresrival
#raw 0x62 0xFE

#org @hello
= [green_fr][player]:What was that all about. Huh?!\nThat Pokémon is hurt! I have to\lhelp it.

#org @end
end

(i cancelled the first special 0x114 and the second special 0x113... you usually have to return at normal position before doing special 0x114)

Sorry for my bad English... I'm Italian
Anybody that is a GBA ASM hacker is cool!
I'm a GBA ASM hacker --> I'm cool :D

Made Day-Night Routine! You can find the thread HERE