View Single Post
  #54    
Old December 24th, 2008, 02:00 AM
Hiche..'s Avatar
Hiche..
 
 
Join Date: Apr 2008
Quote:
Originally Posted by wolverfrog View Post
Hi, i'm not sure if this is scripting, but how on earth do you make a trainer battle you, from a sprite you have made from the ground up.
You should use trainerbattle. trainerbattle 0x0 is for normal battles. trainerbattle 0x1 is for like gym leader, or rival battles. Look around some tutorials.

Quote:
Originally Posted by Ninja Caterpie View Post
Help meh!

And another one:
Script type: Trigger script
ROM: FR
Script Editor: XSE

Spoiler:
'---------------
#org 0x2E63E2
checkflag 0x1002
if 0x1 goto 0x82E64B0
setflag 0x1002
lockall
applymovement MOVE_PLAYER 0x82E64B2
waitmovement 0x0
special 0x113
applymovement MOVE_CAMERA 0x82E64B8
waitmovement 0x0
msgbox 0x82FC750 MSG_NORMAL '"Come on!\pHow long does it take yo..."
applymovement 0x14 0x82FC793
applymovement 0x16 0x82FC797
waitmovement 0x0
msgbox 0x82FC79D MSG_NORMAL '"Okay, all done sir!\p???: Hurry up..."
applymovement 0x15 0x82FC7E3
applymovement 0x14 0x82FC7FB
applymovement 0x16 0x82FC813
applymovement MOVE_CAMERA 0x82FC82B
applymovement MOVE_PLAYER 0x82FC844
waitmovement 0x0
msgbox 0x82FC85C MSG_NORMAL '"???: What is it?\pHENCHMAN: I thin..."
applymovement 0x14 0x82FC8C7
applymovement 0x15 0x82FC8CF
applymovement 0x16 0x82FC8CF
applymovement MOVE_CAMERA 0x82FC8D5
applymovement MOVE_PLAYER 0x82FC8DE
waitmovement 0x0
trainerbattle 0x1 0x1 0x0 0x82FC8E4 0x82FC9E3 0x82E648F
end

'---------------
#org 0x2E64B0
end

'---------------
#org 0x2E648F
msgbox 0x82FC943 MSG_NORMAL '"What?!\pI lost to a kid?\pI'm gonn..."
applymovement 0x14 0x82FC9ED
waitmovement 0x0
special 0x114
releaseall
hidesprite 0x14
hidesprite 0x15
hidesprite 0x16
end


'---------
' Strings
'---------
#org 0x2FC750
= Come on!\pHow long does it take you buffoons\nto pick some herbs?!

#org 0x2FC79D
= Okay, all done sir!\p???: Hurry up then! We don't want\nto be caught!

#org 0x2FC85C
= ???: What is it?\pHENCHMAN: I think I saw somebody,\nsir!\p???: Then pass me the berries. You\ntake him out!

#org 0x2FC8E4
= Ah! I gotcha now, kiddo!\pOh, you think you're tough with\nyour Pokémon?\pI'll prove you wrong!

#org 0x2FC9E3
= Waaah?!

#org 0x2FC943
= What?!\pI lost to a kid?\pI'm gonna bash you to...ah...your\nPokémon looks angry...\pBOSS: Forget it! Just run!\pHENCHMAN: Yessir!\pYou! I'll get you another time!


'-----------
' Movements
'-----------
#org 0x2E64B2
#raw C 'Step Down (Slow)
#raw E 'Step Left (Slow)
#raw E 'Step Left (Slow)
#raw 0 'Face Down
#raw FE 'End of Movements

#org 0x2E64B8
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw FE 'End of Movements

#org 0x2FC793
#raw 11 'Step Up (Normal)
#raw 13 'Step Right (Normal)
#raw FE 'End of Movements

#org 0x2FC797
#raw 11 'Step Up (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw FE 'End of Movements

#org 0x2FC7E3
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 11 'Step Up (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 17 'Jump2 Right
#raw 13 'Step Right (Normal)
#raw 2 'Face Left
#raw 63 'Question Mark (?)
#raw FE 'End of Movements

#org 0x2FC7FB
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 11 'Step Up (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 17 'Jump2 Right
#raw 11 'Step Up (Normal)
#raw 62 'Exclamation Mark (!)
#raw FE 'End of Movements

#org 0x2FC813
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 11 'Step Up (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 17 'Jump2 Right
#raw 1 'Face Up
#raw 63 'Question Mark (?)
#raw FE 'End of Movements

#org 0x2FC82B
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 11 'Step Up (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 1C 'Delay5
#raw 11 'Step Up (Normal)
#raw FE 'End of Movements

#org 0x2FC844
#raw 62 'Exclamation Mark (!)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 10 'Step Down (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 0 'Face Down
#raw FE 'End of Movements

#org 0x2FC8C7
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 20 'Step Right (Fast)
#raw 20 'Step Right (Fast)
#raw 20 'Step Right (Fast)
#raw FE 'End of Movements

#org 0x2FC8CF
#raw 20 'Step Right (Fast)
#raw 20 'Step Right (Fast)
#raw 20 'Step Right (Fast)
#raw 20 'Step Right (Fast)
#raw FE 'End of Movements

#org 0x2FC8D5
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1E 'Step Up (Fast)
#raw 1F 'Step Left (Fast)
#raw 1F 'Step Left (Fast)
#raw 1F 'Step Left (Fast)
#raw 1F 'Step Left (Fast)
#raw FE 'End of Movements

#org 0x2FC8DE
#raw 65 'Double Exclamation Mark (!!)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 3 'Face Right
#raw FE 'End of Movements

#org 0x2FC9ED
#raw 20 'Step Right (Fast)
#raw 20 'Step Right (Fast)
#raw 20 'Step Right (Fast)
#raw 1D 'Step Down (Fast)
#raw 1D 'Step Down (Fast)
#raw 1D 'Step Down (Fast)
#raw 20 'Step Right (Fast)
#raw 20 'Step Right (Fast)
#raw 20 'Step Right (Fast)
#raw FE 'End of Movements

I move and the camera moves, but nothing else.

I need help on these BADLY! My beta is due tomorrow and these are the final scripts I need!
All that I can think of that the person event numbers are not used properly :\ You changed them to HEX? Like, 10 to A?

Edit: I have a question, suppose I want the player to surf, but not use surf. Just the animation. How do I do it? I remember there's a special for it. Thanks.

Last edited by Hiche..; December 24th, 2008 at 09:20 AM.