View Single Post
  #40    
Old July 30th, 2008 (08:10 AM).
PsydORg PsydORg is offline
N00B Spriter
 
Join Date: Jul 2008
Location: How should i know?
Age: 20
Gender:
Posts: 9
Fixed the above problem, but now i got a new one. It´s in the same script. Every time i get near the sprite which contains this script, the game resets, can someone tell me why? It may be someting obvious, but here you go:

'-----------------------
#org 0x71A438
lock
faceplayer
checkflag 0x828
msgbox 0x871A34D
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x871A2FC
compare LASTRESULT 0x0
if 0x1 goto 0x871A342
release
end
'-----------------------
#org 0x71A2FC
givepokemon 0x5 0xF1 0x0 0x0 0x0 0x0
fanfare 0x13E
waitfanfare
message 0x871A39A
callstd 0x6
setflag 0x828
release
end
'-----------------------
#org 0x71A342
message 0x871A3AF
callstd 0x6
release
end

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



This is how it looks when compiled:

#org 0x71A438
lock
faceplayer
checkflag 0x1128
nop
writebytetooffset 0x0 0x90871A3
nop1
compare LASTRESULT 0xA438
multichoice3 0x8 0xFC 0xA2 0x71 0x8
compare LASTRESULT 0x0
if 0x1 goto 0x871A342
release
end
'-----------------------
#org 0x71A342
msgbox 0x871A3AF '"Okay.\nMen jeg er her\nHvis du skif..."
callstd 0x6
release
end

'---------
' Strings
'---------
#org 0x71A3AF
= Okay.\nMen jeg er her\nHvis du skifter mening.


Some of the lines gets erased when compiled, and new ones are added on.