View Single Post
  #427    
Old July 24th, 2009 (07:52 AM).
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
Nothing (that i see) is wrong with your script, i'm guessing that you are doing a Green 'S" script? this is easy.
I'm going to assume your using FR
on the green 'S' in A-Map assign a variable, the upper unknown value needs to be set to three,assign a value to that var (through a-map),and then compile this script
changes to your script nescesary to work with my methods are in bold
Spoiler:

#org 0x8167F6E
'-----------------------------------
lock
msgbox 0x8183482 ' Help help a theif from team rocket[.]\nStole a pokedex from the shop.
callstd MSG_NORMAL
applymovement 0x3 0x816F727
applymovement 0x1 0x819D8D0
pauseevent 0x0

message 0x819D81E '
callstd MSG_NORMAL
applymovement 0x1 0x816F714
pauseevent 0x0

message 0x819D52C '
callstd MSG_NORMAL
setflag 0x'Flag to be set when this happens
release
end


#org 0x8183482
= Help help a theif from team rocket[.]\nStole a pokedex from the shop.

#org 0x816F727
m walk_down walk_down walk_right walk_down walk_right walk_down walk_right walk_right walk_right walk_right walk_right walk_right walk_up walk_right walk_up walk_up walk_up walk_up walk_up walk_up walk_up walk_left walk_left walk_up walk_up walk_up walk_up walk_up walk_up walk_up walk_up walk_up walk_up walk_up walk_up end

#org 0x819D8D0
m walk_down walk_down walk_right walk_down walk_right walk_down walk_right walk_right walk_right say_! end

#org 0x819D81E
= huf huf

#org 0x816F714
m walk_down walk_down say_! end

#org 0x819D52C
= can you please catch that theif\and retrieve the pokedex before he gets away.

Spoiler:

#dyn 0x800000

#org @begin
lock
checkflag 0x'Flagnumber set when the player does the above script
if 0x1 jump @movept1
if 0x0 jump 0x8167F6F

#org @movept1
checkflag 0x'Flagnumber to be set when pokedex is obtained
if 0x1 jump @end
message @wait
callstd MSG_NOCLOSE
applymovement MOVE_PLAYER @move
closemsg

'-------------------------------------------------------------------
'If i remember right no release and end are nescesary with closemsg 'because it has release and end built in. I would check just to be safe 'though.
'-------------------------------------------------------------------

#org @end
relese
end

#org @move
m 'Insert movement here to make the player go back and
'retrieve the pokedex and make sure they can't escape.

Take the script offset of the script you just compiled and set that to be your script offset. OR you can add a setvar in the script either will work, i tend to use the second method though, even though it doesn't stop the script from executing (there isn't a var set to stop it) it makes things less confusing for me. If you need help doing the above please ask and post screenies.
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.