View Single Post
  #7    
Old December 20th, 2008 (04:00 PM).
HackMew's Avatar
HackMew
Mewtwo Strikes Back
 
Join Date: Jun 2006
Quote originally posted by Mac_Mini:
Ok i'll put th wrong things in bold
Spoiler:
#dynamic 0x800000
#org @start
checkflag 0x900
if 0x0 goto @go
end


#org @go
lockapplymovement 0x1 @move
waitmovement 0x0
msgbox @talk'"Hey [player] how are you ? yes i kn..."
callstd 0x6
setflag 0x900
release
end



#org @move
#raw 13 'Step Right (Normal)
#raw 11 'Step Up (Normal)
#raw 3 'Face Right
#raw FE 'End of Movements


#org @talk
[I]= Hey [player] how are you ? yes i know\nit's cold in the dempsi region.\poh yeah pro.oak wants to see you\n about something.

That should work as you want it to and it should save bytes
also if your mums not giving you a pokemo you shouldn't use flag 828
Nothing is wrong there but it's always safer to use flags from 0x1000 onwards.
Also, usually flags are used to skip something that got executed already, like you can see in the script below:

Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x1000
if 0x1 goto @nothing
lock
applymovement 0x1 @move
waitmovement 0x0
msgbox @talk
callstd 0x6
setflag 0x1000
release
end

#org @nothing
release
end

#org @move
#raw 13 'Step Right (Normal)
#raw 11 'Step Up (Normal)
#raw 3 'Face Right
#raw FE 'End of Movements

#org @talk
= Hey [player] how are you ? yes i know\nit's cold in the dempsi region.\poh yeah pro.oak wants to see you\n about something.
__________________