Mueez
Currently Working on "" POKEMON :MYSTERIES OF LEGE
- 42
- Posts
- 10
- Years
- Seen Jan 20, 2023
First of All.
I SUCK at scripting
So i made a script that would give your player a pokemon and move the(giver).
Everything went fine
But one problem.
When i exit the house and revisit it again the (Pokemon Giver) is at the same place from where the script started NOT at the place I assigned him to be thorough the APPLYMOVEMENT
Here's the script
'---------------
#org 0xC1205C
faceplayer
checkflag 0x860
if 0x1 goto 0x8C1209B
applymovement 0xC 0x8C30219
msgbox 0x8C2FFA0 MSG_NORMAL '"Ah [player]!\nHad a good long slee..."
givepokemon 0x85 0x5 0xB6 0x0 0x0 0x0
closeonkeypress
fanfare 0x13E
msgbox 0x8C30181 MSG_NORMAL '"Good.\nThe Aide also said to visit..."
setflag 0x860
applymovement LASTTALKED 0x8C3020E
end
'---------------
#org 0xC1209B
msgbox 0x8C301E9 MSG_NORMAL '"[player] you look tired.\nBetter r..."
special 0x0
fanfare 0x100
end
'---------
' Strings
'---------
#org 0xC2FFA0
= Ah [player]!\nHad a good long sleep?\lProffesor Hawthorn's Aide came by\land told me to give you this\lPokemon!
#org 0xC30181
= Good.\nThe Aide also said to visit the\lProfessor.\pThe Professor lives in the\noutskirts of Beryl Woods.
#org 0xC301E9
= [player] you look tired.\nBetter rest no?
'-----------
' Movements
'-----------
#org 0xC30219
#raw 0x56 'Exclamation Mark (!)
#raw 0xFE 'End of Movements
#org 0xC3020E
#raw 0x8 'Step Down (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x28 'Step on the Spot Right (Fastest)
#raw 0xFE 'End of Movements
I SUCK at scripting
So i made a script that would give your player a pokemon and move the(giver).
Everything went fine
But one problem.
When i exit the house and revisit it again the (Pokemon Giver) is at the same place from where the script started NOT at the place I assigned him to be thorough the APPLYMOVEMENT
Here's the script
Spoiler:
'---------------
#org 0xC1205C
faceplayer
checkflag 0x860
if 0x1 goto 0x8C1209B
applymovement 0xC 0x8C30219
msgbox 0x8C2FFA0 MSG_NORMAL '"Ah [player]!\nHad a good long slee..."
givepokemon 0x85 0x5 0xB6 0x0 0x0 0x0
closeonkeypress
fanfare 0x13E
msgbox 0x8C30181 MSG_NORMAL '"Good.\nThe Aide also said to visit..."
setflag 0x860
applymovement LASTTALKED 0x8C3020E
end
'---------------
#org 0xC1209B
msgbox 0x8C301E9 MSG_NORMAL '"[player] you look tired.\nBetter r..."
special 0x0
fanfare 0x100
end
'---------
' Strings
'---------
#org 0xC2FFA0
= Ah [player]!\nHad a good long sleep?\lProffesor Hawthorn's Aide came by\land told me to give you this\lPokemon!
#org 0xC30181
= Good.\nThe Aide also said to visit the\lProfessor.\pThe Professor lives in the\noutskirts of Beryl Woods.
#org 0xC301E9
= [player] you look tired.\nBetter rest no?
'-----------
' Movements
'-----------
#org 0xC30219
#raw 0x56 'Exclamation Mark (!)
#raw 0xFE 'End of Movements
#org 0xC3020E
#raw 0x8 'Step Down (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x28 'Step on the Spot Right (Fastest)
#raw 0xFE 'End of Movements