... Dang...im not 100% about this but i think you need 6 values when you give a pokemon:
givepokemon 0x147 0x5 0x0 0x0 0x0 0x0
i have no idea about movement because i only started lurning this yesterday but im stuck on trying to make a give item pokeball that you would find on the ground in a normal map, using advance map i can get the pokeball on the ground as a person event and i tryed using this script to give be a item:
#dynamic 0x4567D6
#org @start
lock
faceplayer
giveitem 0x44 0x1
release
end
but it does nothing in the game and i also want to you how do i make it disaper after you get the item
ok i got it to give my the item but as soon as i move away it reapers
#dynamic 0x4567D6
#org @start
lock
faceplayer
giveitem 0x44 0x1
hidesprite 0x<pokeball event number>
setflag 0x<flag preferred>
release
end
#dynamic 0x300000
#org 0x3BB8A1
lock
faceplayer
checkflag 0x202
if 0x0 goto 0x83BB9B1
if 0x1 goto 0x83BB9D7
end
'-----------------------
#org 0x83BB9B1
msgbox 0x83BB8D0 '"OH MY GOD! I'M OUT OF COINS!\pAHHHH..."
applymovement 0x1 @move
end
#org @move
#raw 0x65 0x14 0x2B 0x2B 0x2B 0x2B 0x2B 0x2B 0x2B 0x29 0x60 0xFE
'-----------------------
#org 0x83BB9D7
msgbox 0x83BBA61 '"I'm okay now. I have COINS."
'---------
' Strings
'---------
#org 0x3BB8D0
= OH MY GOD! I'M OUT OF COINS!\pAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH\nHHHHHHHHHHHHHHHHHHHHHHHHH!!!!!!!!!!
#org 0x3BBA61
= I'm okay now. I have COINS.
#dynamic 0x300000
#org @start
lock
faceplayer
checkflag 0x202
if 0x0 goto @omg
if 0x1 goto @phew
end
'-----------------------
#org @omg
msgbox @ah '"OH MY GOD! I'M OUT OF COINS!\pAHHHH..."
boxset 6
applymovement 0x1 @moves
setflag 0x202
release
end
'-----------------------
#org @phew
msgbox @coin '"I'm okay now. I have COINS."
release
end
'-----------
' Movements
'-----------
#org @moves
#raw 63 'Question Mark (?)
#raw 62 'Exclamation Mark (!)
#raw 65 'Double Exclamation Mark (!!)
#raw 4A 'Face Player
#raw 16 'Jump2 Left
#raw 55 'Jump in Place (Facing Right)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2A 'Step on the Spot Up (Fastest)
#raw 2B 'Step on the Spot Left (Fastest)
#raw 2B 'Step on the Spot Left (Fastest)
#raw 2B 'Step on the Spot Left (Fastest)
#raw 2B 'Step on the Spot Left (Fastest)
#raw 2B 'Step on the Spot Left (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 29 'Step on the Spot Down (Fastest)
#raw 60 'Hide
#raw FE 'End of Movements
'---------
' Strings
'---------
#org @ah
= OH MY GOD! I'M OUT OF COINS!\pAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH\nHHHHHHHHHHHHHHHHHHHHHHHHH!!!!!!!!!!
#org @coin
= I'm okay now. I have COINS.
In after applymovement, did you put his event number and not his person number?It still doesn't work. When you talk to the guy he says the specified text, but doesn't move. What can I do?!
Code:#dynamic 0x300000 #org @start lock faceplayer checkflag 0x202 if 0x0 goto @omg if 0x1 goto @phew end '----------------------- #org @omg msgbox @ah '"OH MY GOD! I'M OUT OF COINS!\pAHHHH..." boxset 6 applymovement 0x1 @moves setflag 0x202 release end '----------------------- #org @phew msgbox @coin '"I'm okay now. I have COINS." release end '----------- ' Movements '----------- #org @moves #raw 63 'Question Mark (?) #raw 62 'Exclamation Mark (!) #raw 65 'Double Exclamation Mark (!!) #raw 4A 'Face Player #raw 16 'Jump2 Left #raw 55 'Jump in Place (Facing Right) #raw 2A 'Step on the Spot Up (Fastest) #raw 2A 'Step on the Spot Up (Fastest) #raw 2A 'Step on the Spot Up (Fastest) #raw 2A 'Step on the Spot Up (Fastest) #raw 2A 'Step on the Spot Up (Fastest) #raw 2A 'Step on the Spot Up (Fastest) #raw 2B 'Step on the Spot Left (Fastest) #raw 2B 'Step on the Spot Left (Fastest) #raw 2B 'Step on the Spot Left (Fastest) #raw 2B 'Step on the Spot Left (Fastest) #raw 2B 'Step on the Spot Left (Fastest) #raw 29 'Step on the Spot Down (Fastest) #raw 29 'Step on the Spot Down (Fastest) #raw 29 'Step on the Spot Down (Fastest) #raw 29 'Step on the Spot Down (Fastest) #raw 29 'Step on the Spot Down (Fastest) #raw 29 'Step on the Spot Down (Fastest) #raw 29 'Step on the Spot Down (Fastest) #raw 29 'Step on the Spot Down (Fastest) #raw 29 'Step on the Spot Down (Fastest) #raw 60 'Hide #raw FE 'End of Movements '--------- ' Strings '--------- #org @ah = OH MY GOD! I'M OUT OF COINS!\pAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH\nHHHHHHHHHHHHHHHHHHHHHHHHH!!!!!!!!!! #org @coin = I'm okay now. I have COINS.
It still doesn't work. When you talk to the guy he says the specified text, but doesn't move. What can I do?!
Code:#dynamic 0x300000 #org @start lock faceplayer checkflag 0x202 if 0x0 goto @omg if 0x1 goto @phew end '----------------------- #org @omg msgbox @ah '"OH MY GOD! I'M OUT OF COINS!\pAHHHH..." boxset 6 applymovement 0x1 @moves [B]waitmovement 0x0[/B] setflag 0x202 release end '----------------------- #org @phew msgbox @coin '"I'm okay now. I have COINS." [B]boxset 0x6[/B] release end '----------- ' Movements '----------- #org @moves #raw 63 'Question Mark (?) #raw 62 'Exclamation Mark (!) #raw 65 'Double Exclamation Mark (!!) #raw 4A 'Face Player #raw 16 'Jump2 Left #raw 55 'Jump in Place (Facing Right) #raw 2A 'Step on the Spot Up (Fastest) #raw 2A 'Step on the Spot Up (Fastest) #raw 2A 'Step on the Spot Up (Fastest) #raw 2A 'Step on the Spot Up (Fastest) #raw 2A 'Step on the Spot Up (Fastest) #raw 2A 'Step on the Spot Up (Fastest) #raw 2B 'Step on the Spot Left (Fastest) #raw 2B 'Step on the Spot Left (Fastest) #raw 2B 'Step on the Spot Left (Fastest) #raw 2B 'Step on the Spot Left (Fastest) #raw 2B 'Step on the Spot Left (Fastest) #raw 29 'Step on the Spot Down (Fastest) #raw 29 'Step on the Spot Down (Fastest) #raw 29 'Step on the Spot Down (Fastest) #raw 29 'Step on the Spot Down (Fastest) #raw 29 'Step on the Spot Down (Fastest) #raw 29 'Step on the Spot Down (Fastest) #raw 29 'Step on the Spot Down (Fastest) #raw 29 'Step on the Spot Down (Fastest) #raw 29 'Step on the Spot Down (Fastest) #raw 60 'Hide #raw FE 'End of Movements '--------- ' Strings '--------- #org @ah = OH MY GOD! I'M OUT OF COINS!\pAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH\nHHHHHHHHHHHHHHHHHHHHHHHHH!!!!!!!!!! #org @coin = I'm okay now. I have COINS.
Try this:
Code:#dynamic 0xoffset #org @start lock faceplayer msgbox @yesno callstd 0x5 if 0x1 goto @yes if 0x1 goto @no release end #org @yes msgbox @yes2 callstd 0x6 release end #org @no msgbox @no2 callstd 0x6 release end #org @yesno = Yes or no? #org @yes2 = You pressed Yes! #org @no2 = You pressed No!
No, your supposed to use the event number.It still doesn't work. Yes, I'm sure I put the person ID and not the event number. Yes, I did the waitmovement and the box stuff, and it still doesn't work. Why doesn't it work...?
Thanks for this tutorial..It is exactly what I needed to learn for pokescript!
Okay seriously wth.. >.>
This is gonna sound really nooby, but I'm tired so forgive me.
I open my rom (Pokemon Ruby) in Advance Map and made a new person event, used a Pokeball sprite and opened the script. I delete it all (It's like,
'-----------------------
#org 0x2089DC
nop
nop
nop
(It says nop a ton more times, then
compare 0x714E 0x8200
nop
msgbox4 0x5000CC00
nop
spriteinvisible 0x4001 0x1 0xAE
nop
callasm2 0xF600BB4E
nop
setanimation 0x0 0x2C)
And put in my script, which is:
#Dynamic 0x2089DC
#ORG @GivePokemon
Lock
FacePlayer
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
setflag 0x800
setflag 0x801
setflag 0x860
release
end
#ORG @RecievedPoke
= Hey! A Pokemon!/nAnd a Pokedex!/nAND running shoes!/nWow.. It's my lucky day!
What's going on..? It just keeps deleting my script..