The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page [Archive] Script help thread

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Closed Thread
 
Thread Tools
  #2601   Link to this post, but load the entire thread.  
Old December 13th, 2008 (3:14 PM).
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
 
Join Date: Jun 2006
Posts: 1,314
Quote:
Originally Posted by Shaded View Post
Script freezes the whole game up, its in XSE if you know what is wrong please tell me, and dont just post the revised correct script, tell me why it was wrong.

Spoiler:
Code:
#dynamic 0x16649A

#org @start
lock
faceplayer
checkflag 0x800
if b_true goto @hey
release
end

#org @hey
message @hey1
boxset 6
applymovement 0x06 @move
applymovement 0xFF @move1
waitmovement 0x0
goto @next
release
end

#org @next
message @buy
boxset 4
message @rollin
boxset 4 
goto @mist
release
end

#org @mist
setweather 0x06
message @fog
applymovement 0x06 @back
applymovement 0xFF @follow
waitmovement 0x0
goto @pop
release
end

#org @pop
applymovement 0x01 @Ahh
message @poke
boxset 6
cry 0xA1 88
nop
nop
wildbattle 0x88 0x02 0x8B 0x01
fadescreen 0
hidesprite 0x01
goto @handle
release 
end

#org @handle
message @give
givepokemon 0x252 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
waitfanfare
message @got
goto @end
release
end

#org @end
message @endo
fadescreen 0
hidesprite 0x06 0x00
release
end

#org @Ahh
#raw 0x62
#raw 0xFE

#org @move
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @move1
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0xFE

#org @back
#raw 0x14
#raw 0x17
#raw 0xFE

#org @follow
#raw 0x14
#raw 0x17
#raw 0xFE

#org @endo
= Captain:Well I better get going\n that was some fight,bye!

#org @got
= [player] recieved a Ghastly!

#org @give
= Captain:You handled yourself really\n well back there and I am proud\p to give you this as a token\n of my appreciation.

#org @poke
= Wild Ghastly Appeared!

#org @fog
= Captain:There's a fog rolling in we\nbetter get back to the ship.

#org @rollin
= Alright! \nThat was a lot faster than I\nthought it would be! \p We should get back so \nSteve can start his repairs.

#org @buy
= Hey! Glad you made it! \nSteve called ahead. \pI’ve got your part right here \nHere you are. \pTravel safely now! 

#org @hey1
= Alright lad! We’ve arrived in Eastport, \ntop shipping town in all of Trophil! \pAh, there’s the merchant now.

Thank you!
There's no need to split your script in all those parts, you're wasting all those goto. Also, after each applymovement(s) you need to put waitmovement.
After each setweather you need to use doweather, or it won't have any effect. After each msgbox/message you need to put callstd/boxset.
The cry command was wrong as well. Don't forget you must use setflag to hide a person permanently. In the fixed script I used flag 0x1001, don't forget to set the People ID accordingly.

Last, but not the lease... since I suppose it's a trigger script (those green "S" you can walk in), make sure you set the values like this:



Spoiler:

#dynamic 0x16649A

#org @start
lock
faceplayer
checkflag 0x1000
if b_true goto @hey
release
end

#org @hey
message @hey1
boxset 6
applymovement 0x06 @move
applymovement 0xFF @move1
waitmovement 0x0
message @buy
boxset 4
message @rollin
boxset 4
setweather 0x06
doweather
message @fog
boxset 6
applymovement 0x06 @back
applymovement 0xFF @follow
waitmovement 0x0
applymovement 0x01 @Ahh
waitmovement 0x0
message @poke
boxset 6
cry 0x88 0x0
wildbattle 0x88 0x02 0x8B 0x01
fadescreen 0
hidesprite 0x01
message @give
boxset 6
fanfare 0x13E
givepokemon 0x252 0x5 0x0 0x0 0x0 0x0
waitfanfare
message @got
boxset 6
message @endo
boxset 6
fadescreen 0
hidesprite 0x06 0x00
setflag 0x1001
release
end

#org @Ahh
#raw 0x62
#raw 0xFE

#org @move
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @move1
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0xFE

#org @back
#raw 0x14
#raw 0x17
#raw 0xFE

#org @follow
#raw 0x14
#raw 0x17
#raw 0xFE

#org @endo
= Captain:Well I better get going\n that was some fight,bye!

#org @got
= [player] recieved a Ghastly!

#org @give
= Captain:You handled yourself really\n well back there and I am proud\p to give you this as a token\n of my appreciation.

#org @poke
= Wild Ghastly Appeared!

#org @fog
= Captain:There's a fog rolling in we\nbetter get back to the ship.

#org @rollin
= Alright! \nThat was a lot faster than I\nthought it would be! \p We should get back so \nSteve can start his repairs.

#org @buy
= Hey! Glad you made it! \nSteve called ahead. \pI’ve got your part right here \nHere you are. \pTravel safely now!

#org @hey1
= Alright lad! We’ve arrived in Eastport, \ntop shipping town in all of Trophil! \pAh, there’s the merchant now.


Quote:
Originally Posted by lilfabbro View Post
ok i have a script that is supposed to alert someone make them walk to me say somthing then make me follow them then give me a pokemon, i use notepad and pokescript, whenever i put the script in my game all that happens is it puts a ? above hiros head and asks yes or no, either you hit the screen goes pink
WHAT IS WRONG WITH IT:

Spoiler:
#org $start
lock
checkflag 0x217
if b_true goto $released
applymovement 0x00 $moveexclam
pause 0x10
applymovement 0xFF $moveexclam
pause 0x10
applymovement 0x00 $walktome
pause 0x10
applymovemt 0x00 $finishwalk
pause 0x20
message $yourawake
boxset 6
applymovement 0x00 $computerroom
pause 0x10
applymovement 0xFF $computerroom
pause 0x50
message $pokemon
boxset 6
givepokemon 151 5 0
fanfare 0x13E
#raw 0x53 0x04 0x00
setflag 0x209
setflag 0x828
setflag 0x217
message $goodluck
boxset 6
release
end

#org $released
release
end

#org $moveexclam
#raw 0x63 0x62 0xFE

#org $walktome
#raw 0x1D 0x1F 0x1F 0x1F 0x1F 0x1F 0x1E 0x1E 0x1E
0x1E 0x1E 0xFE

#org $finishwalk
#raw 0x20 0x1E 0x13 0x13 0xFE

#org $computerroom
#raw 0x12 0x12 0x12 0x12 0x10 0x10 0x10 0x10 0x10 0x10 0x13 0x13 0x13 0xFE

#org $yourawake
$yourawake 1 =Oh! Hey, \v\h01! I see you finnally\ndecided to wake up your DAD\lbrought you something but you wouldnt\lwake up.

#org $pokemon
$pokemon 1 =Here \v\h01! this is your 1st POKEMON\nYour DAD wanted you to have it\lYou can start your journey now.

#org $goodluck
$goodluck 1 =Good Luck!!\nTo lilfabbro! Okay This should be working\lHowever I may have forgot to\lset some variables.\lI can fix those after a next patch\lOr you can tell me what\lyou think.
If you want you can use XSE, I'm pretty sure your fixed script will work fine:

Spoiler:

#dynamic 0x800000

#org @start
lock
checkflag 0x1000
if b_true goto @released
applymovement 0x00 @moveexclam
waitmovement 0x0
applymovement 0xFF @moveexclam
waitmovement 0x0
applymovement 0x00 @walktome
waitmovement 0x0
applymovement 0x00 @finishwalk
waitmovement 0x0
message @yourawake
boxset 6
applymovement 0x00 @computerroom
waitmovement 0x0
applymovement 0xFF @computerroom
waitmovement 0x0
message @pokemon
boxset 6
fanfare 0x13E
setflag 0x828
givepokemon 151 5 0 0 0 0
waitfanfare
hidesprite 0x04
setflag 0x1000
setflag 0x1001
message @goodluck
boxset 6
release
end

#org @released
release
end

#org @moveexclam
#raw 0x63 0x62 0xFE

#org @walktome
#raw 0x1D 0x1F 0x1F 0x1F 0x1F 0x1F 0x1E 0x1E 0x1E 0x1E 0x1E 0xFE

#org @finishwalk
#raw 0x20 0x1E 0x13 0x13 0xFE

#org @computerroom
#raw 0x12 0x12 0x12 0x12 0x10 0x10 0x10 0x10 0x10 0x10 0x13 0x13 0x13 0xFE

#org @yourawake
= Oh! Hey, \v\h01! I see you finnally\ndecided to wake up your DAD\lbrought you something but you wouldnt\lwake up.

#org @pokemon
= Here \v\h01! this is your 1st POKEMON\nYour DAD wanted you to have it\lYou can start your journey now.

#org @goodluck
= Good Luck!!\nTo lilfabbro! Okay This should be working\lHowever I may have forgot to\lset some variables.\lI can fix those after a next patch\lOr you can tell me what\lyou think.



Quote:
Originally Posted by KillerSnipe21 View Post
Hey I just started scripting and im trying to use a give pokemon script but its messed up when I talk to the guy it says "This tree looks like it can be cut down" heres the script.

Spoiler:
#org $begin
lock
faceplayer
checkflag 0x232
if b_true goto $gotit
message $q
boxset 6
givepokemon 410 40 0
setflag 0x232
release
end

#org $gotit
message $hi
boxset 6
release
end

#org $hi
$hi 1 = Keep it away from me!

#org $q
$q 1 = I can't control it anymore\ntake it and get rid of it.


Can anyone help me?
Why not trying XSE? I fixed and adjusted the script for you:

Spoiler:

#dynamic 0x800000

#org @begin
checkflag 0x1000
if b_true goto @gotit
message @q
boxset 2
givepokemon 410 40 0 0 0 0
setflag 0x1000
release
end

#org @gotit
message @hi
boxset 6
release
end

#org @hi
= Keep it away from me!

#org @q
= I can't control it anymore\ntake it and get rid of it.



Quote:
Originally Posted by Raizaiel View Post
Ugh. I am sorry for being such a total noob at this, but I cannot get this damned scripting to work for the life of me. I'm also entirely unsure if I'm using XSE correctly, so allow me to throw myself at your mercy and admit my own lack of competence :(

Okay. So I have this PART of a script I'm working with.

Spoiler:
'-----------------------
#dynamic 0x801020
#org @start
checkflag 0x4000
if b_true goto @oak1

#org @oak1
applymovement MOVE_PLAYER 0x801001

#org 801001
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 2E 'Face Up (Delayed)
#raw FE 'End of Movements
release
end


What I'm trying to do exactly is have this character walk into Oak's lab, walk up three spaces and over seven to the left, look up and then talk to him about whatever I choose. Then, select one of the three pokeballs between the two, with that nice little picture popping up and the "DO YOU CHOOSE SO AND SO TO BE YOUR LAWFULLY WEDDED WI--I MEAN POKEMON COMPANION" jazz to go on. However, I can't get the script to work and also, whenever I try to compile it I get two new numbers at the bottom, so I substitute those into the script and then I get two entirely new numbers.

Also, what would you suggest I should use to check for the unused flags? I don't really know what to use to do that.

As I said, I used to know what I was doing and now I do not. I've spent hours examining the scripts in the original game to do so, and I've confused myself into scripted oblivion. Help!
Your script is as confused as you, indeed.
See the fixed one, and hopefully you'll learn something new:

Spoiler:

#dynamic 0x801020

#org @start
checkflag 0x1000
if b_true goto @oak1
end

#org @oak1
applymovement MOVE_PLAYER @movements
waitmovement 0x0
end

#org @movements
#raw 11
#raw 11
#raw 11
#raw 12
#raw 12
#raw 12
#raw 12
#raw 12
#raw 12
#raw 12
#raw 2E
#raw FE



Quote:
Originally Posted by Juan View Post
English:
Exists some command that reads the byte ofrom a pointer in the RAM, and put in an variable to be able to use later (compare, addvar, subvar, …)?
I tried loadpointer (0F) and loadbytefrompointer (12) but they had not functioned.
No, there isn't. What are you trying to do?


Quote:
Originally Posted by ~element View Post
Spoiler:

#dynamic 0x71ACB8

#org @start
faceplayer
lock
checkflag 0x1001
if 0x1 goto @done
msgbox @text
boxset 0x6
fadescreen 0x1
msgbox @Huh?What?
boxset 0x5
if 0x1 goto @Huh?
if 0x0 goto @What?
msgbox @Huh?
boxset 0x5
if 0x1 goto @Inverse
if 0x0 goto @Blurry
msgbox @What?
boxset 0x5
if 0x1 goto @Inverse
if 0x0 goto @Blurry
msgbox @Inverse
boxset 0x6
msgbox @Blurry
boxset 0x6
fadescreen 0x0
release
end

#org @text
= ...............\n...............\lYnitsed on si ereht.

#org @Huh?What?
= You are not a hero nor a villian.\p\v\h01:Huh?\pThere is no fate for you nor is\n there ___ for others.

#org @Huh?
= You have lots to learn...\nTell me this how do you\l feel in this place?

#org @What?
= You have lots to learn...\nTell me this how do you\l feel in this place?

#org @Inverse
= I see..this is because that\n feeling is the entity that is me..\lI will see you when A dons stars.

#org @Blurry
= I see..this is because that\n feeling is the entity that is me..\lI will see you when A dons stars.

#org @done
release
end


It resets if the player picks Yes, and freezes if the player pick no, on the first question box.
Well, please take a really close look to the fixed script:

Spoiler:

#dynamic 0x71ACB8

#org @start
faceplayer
lock
checkflag 0x1001
if 0x1 goto @done
msgbox @text
boxset 0x6
fadescreen 0x1
msgbox @Huh?What?
boxset 0x5
compare LASTRESULT B_YES
if B_TRUE goto @firstyes
else call @firstno
end

#org @firstyes
msgbox @Huh?
boxset 0x6
call @second
end

#org @firstno
msgbox @What?
boxset 0x6
call @second
end

#org @second
msgbox @Huh?
boxset 0x5
compare LASTRESULT B_YES
if B_TRUE goto @secondyes
else call @secondno
end

#org @secondyes
msgbox @Inverse
boxset 0x6
call @third
end

#org @secondno
msgbox @Blurry
boxset 0x6
call @third
end

#org @third
msgbox @What?
boxset 0x5
compare LASTRESULT B_YES
if B_TRUE goto @thirdyes
else call @thirdno
end

#org @thirdyes
msgbox @Inverse
boxset 0x6
call @last
end

#org @thirdno
msgbox @Blurry
boxset 0x6
call @last
end

#org @last
msgbox @Inverse
boxset 0x6
msgbox @Blurry
boxset 0x6
fadescreen 0x0
release
end

#org @done
release
end

#org @text
= ...............\n...............\lYnitsed on si ereht.

#org @Huh?What?
= You are not a hero nor a villian.\p\v\h01:Huh?\pThere is no fate for you nor is\n there ___ for others.

#org @Huh?
= You have lots to learn...\nTell me this how do you\l feel in this place?

#org @What?
= You have lots to learn...\nTell me this how do you\l feel in this place?

#org @Inverse
= I see..this is because that\n feeling is the entity that is me..\lI will see you when A dons stars.

#org @Blurry
= I see..this is because that\n feeling is the entity that is me..\lI will see you when A dons stars.
__________________
  #2602   Link to this post, but load the entire thread.  
Old December 13th, 2008 (6:51 PM).
Ninja Caterpie's Avatar
Ninja Caterpie Ninja Caterpie is offline
AAAAAAAAAAAAA
 
Join Date: Mar 2008
Location: Best City OCE
Age: 27
Gender: Male
Nature: Relaxed
Posts: 5,978
Code:
#dynamic 0x211211

#org 0x2DD30A
lock
faceplayer
msgbox 0x82DD400 MSG_NORMAL '"Hah! Hah! Hey there, kid! People\n..."
trainerbattle 0x1 0xB7 0x0 0x82DD445 0x82DD4C5 0x82DD328
end

'---------------
#org 0x2DD328
msgbox 0x82DD69F MSG_NORMAL '"Haha...You got lucky kid. That was..."
release
compare PLAYERFACING 0x2
if 0x0 goto 0x82DD71E
goto 0x82DD727

'---------------
#org 0x2DD71E
applymovement 0x5 0x82DDCF2
end

'---------------
#org 0x2DD727
applymovement 0x5 0x82DDCE9
end


'---------
' Strings
'---------
#org 0x2DD400
= Hah! Hah! Hey there, kid! People\ncall me the King of the Mountain!

#org 0x2DD445
= So what do you want?\p...\pWhat? You want to pass? Hah.\nAlright then.\pIf you, puny little kid, can beat\nme, I'll let you pass!\l

#org 0x2DD4C5
= No way!

#org 0x2DD69F
= Haha...You got lucky kid. That was\nmy weak team.\pA deal's a deal, I'll let you\npass.\pThis won't be the last time you\nsee me!


'-----------
' Movements
'-----------
#org 0x2DDCF2
#raw 12 'Step Left (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 60 'Hide
#raw FE 'End of Movements

#org 0x2DDCE9
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 60 'Hide
#raw FE 'End of Movements
He doesn't move after the battle. Message, but no movement. :\
__________________
Everything ends,
and that's always sad.
But everything begins again, too,
and that's always happy.
  #2603   Link to this post, but load the entire thread.  
Old December 13th, 2008 (11:51 PM).
Hiche.. Hiche.. is offline
 
 
Join Date: Apr 2008
Posts: 979
Ninja Caterpie, I think he doesn't move, because there isn't any waitmovement 0x0 under the applymovement commands
  #2604   Link to this post, but load the entire thread.  
Old December 14th, 2008 (12:02 AM).
Raizaiel's Avatar
Raizaiel Raizaiel is offline
Well, I'll be conflabbed!
 
Join Date: Dec 2008
Location: Game Freak's outer space location.
Gender:
Nature: Impish
Posts: 16
I'm trying my damned hardest but I'm just not figuring this out somehow.

#dynamic 0x801111
#org @start
lock
faceplayer
checkflag 0x1000
if b_true goto @snorlax
message @bulbasaur
boxset 6

#org @bulbasaur
= You received a BULBASAUR!
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
setflag 0x1000
release
end

#org @snorlax
release
end

That should make a Snorlax give you a bulbasaur lv.5 (don't ask) and not give you one again when you talk to this person, but when I compile it I get a few numbers (one for snorlax, start and bulbasaur). I'm not sure what to do with them and I'm not really ever getting any answers that help me out since I'm at a total loss when I try to script. Help?
  #2605   Link to this post, but load the entire thread.  
Old December 14th, 2008 (12:09 AM).
Hiche.. Hiche.. is offline
 
 
Join Date: Apr 2008
Posts: 979
Quote:
Originally Posted by Raizaiel View Post
I'm trying my damned hardest but I'm just not figuring this out somehow.

#dynamic 0x801111

#org @start
checkflag 0x1000
if b_true goto @snorlax
message @bulbasaur
boxset 2
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
setflag 0x1000
release
end

#org @bulbasaur
= You received a BULBASAUR!


#org @snorlax
release
end


That should make a Snorlax give you a bulbasaur lv.5 (don't ask) and not give you one again when you talk to this person, but when I compile it I get a few numbers (one for snorlax, start and bulbasaur). I'm not sure what to do with them and I'm not really ever getting any answers that help me out since I'm at a total loss when I try to script. Help?
The fixes are in Bold. Try it, and I advise you to look around some tutorials.
  #2606   Link to this post, but load the entire thread.  
Old December 14th, 2008 (12:13 AM). Edited December 14th, 2008 by Ninja Caterpie.
Ninja Caterpie's Avatar
Ninja Caterpie Ninja Caterpie is offline
AAAAAAAAAAAAA
 
Join Date: Mar 2008
Location: Best City OCE
Age: 27
Gender: Male
Nature: Relaxed
Posts: 5,978
Code:
'---------------
#org 0x2DDCFC
faceplayer
msgbox 0x82DD400 MSG_NORMAL '"Hah! Hah! Hey there, kid! People\n..."
trainerbattle 0x1 0xB7 0x0 0x82DD445 0x82DD4C5 0x82DD328
end

'---------------
#org 0x2DD328
msgbox 0x82DD69F MSG_NORMAL '"Haha...You got lucky kid. That was..."
compare PLAYERFACING 0x2
if 0x0 goto 0x82DD9B5
goto 0x82DDB58

'---------------
#org 0x2DD9B5
applymovement 0x5 0x82DDD23
waitmovement 0x0
end

'---------------
#org 0x2DDB58
applymovement 0x5 0x82DDCE9
waitmovement 0x0
end


'---------
' Strings
'---------
#org 0x2DD400
= Hah! Hah! Hey there, kid! People\ncall me the King of the Mountain!

#org 0x2DD445
= So what do you want?\p...\pWhat? You want to pass? Hah.\nAlright then.\pIf you, puny little kid, can beat\nme, I'll let you pass!\l

#org 0x2DD4C5
= No way!

#org 0x2DD69F
= Haha...You got lucky kid. That was\nmy weak team.\pA deal's a deal, I'll let you\npass.\pThis won't be the last time you\nsee me!


'-----------
' Movements
'-----------
#org 0x2DDD23
#raw 12 'Step Left (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 60 'Hide
#raw FE 'End of Movements

#org 0x2DDCE9
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 60 'Hide
#raw FE 'End of Movements
Still not working. :\

Quote:
Originally Posted by Raizaiel View Post
but when I compile it I get a few numbers (one for snorlax, start and bulbasaur). I'm not sure what to do with them and I'm not really ever getting any answers that help me out since I'm at a total loss when I try to script. Help?
Copy the one for start and put it into the "script offset" slot for the person event in AM.
__________________
Everything ends,
and that's always sad.
But everything begins again, too,
and that's always happy.
  #2607   Link to this post, but load the entire thread.  
Old December 14th, 2008 (2:02 AM).
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
 
Join Date: Jun 2006
Posts: 1,314
Quote:
Originally Posted by Ninja Caterpie View Post
Spoiler:
Code:
'---------------
#org 0x2DDCFC
faceplayer
msgbox 0x82DD400 MSG_NORMAL '"Hah! Hah! Hey there, kid! People\n..."
trainerbattle 0x1 0xB7 0x0 0x82DD445 0x82DD4C5 0x82DD328
end

'---------------
#org 0x2DD328
msgbox 0x82DD69F MSG_NORMAL '"Haha...You got lucky kid. That was..."
compare PLAYERFACING 0x2
if 0x0 goto 0x82DD9B5
goto 0x82DDB58

'---------------
#org 0x2DD9B5
applymovement 0x5 0x82DDD23
waitmovement 0x0
end

'---------------
#org 0x2DDB58
applymovement 0x5 0x82DDCE9
waitmovement 0x0
end


'---------
' Strings
'---------
#org 0x2DD400
= Hah! Hah! Hey there, kid! People\ncall me the King of the Mountain!

#org 0x2DD445
= So what do you want?\p...\pWhat? You want to pass? Hah.\nAlright then.\pIf you, puny little kid, can beat\nme, I'll let you pass!\l

#org 0x2DD4C5
= No way!

#org 0x2DD69F
= Haha...You got lucky kid. That was\nmy weak team.\pA deal's a deal, I'll let you\npass.\pThis won't be the last time you\nsee me!


'-----------
' Movements
'-----------
#org 0x2DDD23
#raw 12 'Step Left (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 60 'Hide
#raw FE 'End of Movements

#org 0x2DDCE9
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 60 'Hide
#raw FE 'End of Movements


Still not working. :\
Indeed. You're not comparing the PLAYERFACING var correctly.

Code:
compare PLAYERFACING 0x2
if B_TRUE goto 0x82DD9B5
- or -

Code:
compare PLAYERFACING 0x2
if 0x1 goto 0x82DD9B5
__________________
  #2608   Link to this post, but load the entire thread.  
Old December 14th, 2008 (3:43 AM).
Juan Juan is offline
Brazilian with a bad English
 
Join Date: Jun 2007
Location: Pindamonhangaba - SP
Age: 32
Nature: Adamant
Posts: 92
Quote:
Originally Posted by HackMew View Post
No, there isn't. What are you trying to do?
English:
I want to read the current value of HP of pokémon team, and later being able to add/to sub some value from it.

Portuguse:
Eu quero ler o valor atual de HP dos pokémon da equipe, e depois poder adicionar/subtrair algum valor dele.
__________________
  #2609   Link to this post, but load the entire thread.  
Old December 14th, 2008 (4:08 AM).
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
 
Join Date: Jun 2006
Posts: 1,314
Quote:
Originally Posted by Juan View Post
English:
I want to read the current value of HP of pokémon team, and later being able to add/to sub some value from it.
Then you would definitely go ASM.
__________________
  #2610   Link to this post, but load the entire thread.  
Old December 14th, 2008 (7:28 AM).
Juan Juan is offline
Brazilian with a bad English
 
Join Date: Jun 2007
Location: Pindamonhangaba - SP
Age: 32
Nature: Adamant
Posts: 92
Quote:
Originally Posted by HackMew View Post
Then you would definitely go ASM.
Could inform which optimum interpreter to me assembly for format GBA?

PT:
Poderia me informar qual o melhor interpretador assembly para o formato GBA?
__________________
  #2611   Link to this post, but load the entire thread.  
Old December 14th, 2008 (9:13 PM).
Liquid Shadow Liquid Shadow is offline
xD
 
Join Date: Mar 2008
Gender:
Posts: 224
How would I go about making clock-based events and scripts in Ruby?
Is there a special or a command?
Also is there a command or way to make a script where the main player's OW changes? (Just like in CBM's Prism)
  #2612   Link to this post, but load the entire thread.  
Old December 14th, 2008 (11:15 PM).
Ninja Caterpie's Avatar
Ninja Caterpie Ninja Caterpie is offline
AAAAAAAAAAAAA
 
Join Date: Mar 2008
Location: Best City OCE
Age: 27
Gender: Male
Nature: Relaxed
Posts: 5,978
Quote:
Originally Posted by NeoNemesis View Post
Also is there a command or way to make a script where the main player's OW changes? (Just like in CBM's Prism)
Yah, there's a super-secret way to change the OW via a level script. :\ Ask Darthatron to explain it, as I'm not really any good at it. :-)
__________________
Everything ends,
and that's always sad.
But everything begins again, too,
and that's always happy.
  #2613   Link to this post, but load the entire thread.  
Old December 15th, 2008 (12:59 AM).
-GiЯ -GiЯ is offline
Banned
 
Join Date: Jun 2008
Location: Earth
Age: 31
Gender: Male
Nature: Bold
Posts: 119
whats wrong with this script? it is supposed to give me pokemon then activate both pokedex's, but it freezes, and yes i set the value to...
0003
4050
0000
0000



#org $start
lock
checkflag 0x217
if b_true goto $released
applymovement 0x04 $moveexclam
pause 0x7
applymovement 0xFF $moveexclam
pause 0x7
applymovement 0x04 $walktome
pausemove 0
applymovement 0x04 $finishwalk
pausemove 0
message $yourawake
boxset 6
applymovement 0x04 $computerroom
pausemove 0
applymovement 0xFF $computerroom
pausemove 0
message $pokemon
boxset 6
givepokemon 151 5 1
fanfare 0x13E
waitfanfare
message $11
boxset 2
fanfare 0x13E
message $22
boxset 6
setflag 0x829
special 0x16F
waitfanfare
setflag 0x209
setflag 0x828
setflag 0x217
message $goodluck
boxset 6
release
end

#org $released
release
end

#org $11
$11 1 = Oh, and he also left this for you.

#org $22
$22 1 = You received a PokeDex!
.
#org $moveexclam
#raw 0x63 0x62 0xFE

#org $walktome
#raw 0x1D 0x1F 0x1F 0x1F 0x1F 0x1F 0x1E 0x1E 0x1E
0x1E 0x1E 0xFE

#org $finishwalk
#raw 0x20 0x1E 0x13 0x13 0xFE

#org $computerroom
#raw 0x12 0x12 0x12 0x12 0x10 0x10 0x10
#raw 0x10 0x10 0x10 0x13 0x13 0x13 0xFE

#org $yourawake
$yourawake 1 =Oh! Hey, \v\h01! I see you finnally\ndecided to wake up your DAD\lbrought you something but you wouldnt\lwake up.

#org $pokemon
$pokemon 1 =Here \v\h01! this is your 1st POKEMON\nYour DAD wanted you to have it\lYou can start your journey now.

#org $goodluck
$goodluck 1 =Good Luck!!\nTo lilfabbro! Okay This should be working\lHowever I may have forgot to\lset some variables.\lI can fix those after a next patch\lOr you can tell me what\lyou think.
  #2614   Link to this post, but load the entire thread.  
Old December 15th, 2008 (1:06 AM).
Surf's Avatar
Surf Surf is offline
...
 
Join Date: Jul 2008
Location: Rust
Age: 28
Gender: Male
Nature: Relaxed
Posts: 1,196
Quote:
Originally Posted by lilfabbro View Post
whats wrong with this script? it is supposed to give me pokemon then activate both pokedex's, but it freezes, and yes i set the value to...
0003
4050
0000
0000



#org $start
lock
checkflag 0x828
if b_true goto $released
applymovement 0x04 $moveexclam
pause 0x7
applymovement 0xFF $moveexclam
pause 0x7
applymovement 0x04 $walktome
pausemove 0
applymovement 0x04 $finishwalk
pausemove 0
message $yourawake
boxset 6
applymovement 0x04 $computerroom
pausemove 0
applymovement 0xFF $computerroom
pausemove 0
message $pokemon
boxset 6
givepokemon 151 5 1
fanfare 0x13E
waitfanfare
message $11
boxset 2
fanfare 0x13E
message $22
boxset 6
setflag 0x829
special 0x16F
waitfanfare
setflag 0x828
message $goodluck
boxset 6
release
end

#org $released
release
end

#org $11
$11 1 = Oh, and he also left this for you.

#org $22
$22 1 = You received a PokeDex!
.
#org $moveexclam
#raw 0x63 0x62 0xFE

#org $walktome
#raw 0x1D 0x1F 0x1F 0x1F 0x1F 0x1F 0x1E 0x1E 0x1E
0x1E 0x1E 0xFE

#org $finishwalk
#raw 0x20 0x1E 0x13 0x13 0xFE

#org $computerroom
#raw 0x12 0x12 0x12 0x12 0x10 0x10 0x10
#raw 0x10 0x10 0x10 0x13 0x13 0x13 0xFE

#org $yourawake
$yourawake 1 =Oh! Hey, \v\h01! I see you finnally\ndecided to wake up your DAD\lbrought you something but you wouldnt\lwake up.

#org $pokemon
$pokemon 1 =Here \v\h01! this is your 1st POKEMON\nYour DAD wanted you to have it\lYou can start your journey now.

#org $goodluck
$goodluck 1 =Good Luck!!\nTo lilfabbro! Okay This should be working\lHowever I may have forgot to\lset some variables.\lI can fix those after a next patch\lOr you can tell me what\lyou think.
You can't use that many setflags in one script
so I got it to run off the opkemon script and pokedex script
__________________
I'm looking for some good (When I say good,
I mean you can hold your own by yourself)
N**i Zombies players, to form a team or even a
clan, to play with casually.
Send me a PM with your Highest Level and your PSN,
and I'll get back to you.
  #2615   Link to this post, but load the entire thread.  
Old December 15th, 2008 (1:53 AM).
Hiche.. Hiche.. is offline
 
 
Join Date: Apr 2008
Posts: 979
You can use a lot of flags. I used 20 flags in a script once.

>Lilfabro: I really can't think of anything wrong now, but check for any grammatical mistakes in the commands. Also, the applymovement 0x04, are you sure the person's event number is 4?
  #2616   Link to this post, but load the entire thread.  
Old December 15th, 2008 (1:55 AM).
Surf's Avatar
Surf Surf is offline
...
 
Join Date: Jul 2008
Location: Rust
Age: 28
Gender: Male
Nature: Relaxed
Posts: 1,196
Quote:
Originally Posted by Hiche View Post
You can use a lot of flags. I used 20 flags in a script once.

>Lilfabro: I really can't think of anything wrong now, but check for any grammatical mistakes in the commands. Also, the applymovement 0x04, are you sure the person's event number is 4?
The script wouldn't freeze if the people number was different anyway
__________________
I'm looking for some good (When I say good,
I mean you can hold your own by yourself)
N**i Zombies players, to form a team or even a
clan, to play with casually.
Send me a PM with your Highest Level and your PSN,
and I'll get back to you.
  #2617   Link to this post, but load the entire thread.  
Old December 15th, 2008 (2:17 AM).
Hiche.. Hiche.. is offline
 
 
Join Date: Apr 2008
Posts: 979
I didn't say that. I told him before to put it 0x01, and the person moved. I don't know why it's 0x04 now.

Lilfabro: Try recompiling the script, if not, then simple use XSE.
  #2618   Link to this post, but load the entire thread.  
Old December 15th, 2008 (5:41 AM). Edited December 15th, 2008 by -GiЯ.
-GiЯ -GiЯ is offline
Banned
 
Join Date: Jun 2008
Location: Earth
Age: 31
Gender: Male
Nature: Bold
Posts: 119
Mac- i know weve had our ups and downs but i appreciate the help, i am going to try doing changing the 0x04 to 0x01 tho or what ever the persons event no is thoe, because hiche is the one who made half of that script for me lol, so ill try it, and ill let you know if it worked so you dont have to do all that work if its not required

i dont know were i copied that script from above i think its one i was messing with but this is the script that doesnt work:
#org $start
lock
checkflag 0x217
if b_true goto $released
applymovement 0x01 $moveexclam
pause 0x7
applymovement 0xFF $moveexclam
pause 0x7
applymovement 0x01 $walktome
pausemove 0
applymovement 0x01 $finishwalk
pausemove 0
message $yourawake
boxset 6
applymovement 0x01 $computerroom
pausemove 0
applymovement 0xFF $computerroom
pausemove 0
message $pokemon
boxset 6
givepokemon 151 5 0
fanfare 0x13E
waitfanfare
message $11
boxset 2
fanfare 0x13E
message $22
boxset 6
setflag 0x829
special 0x16F
waitfanfare
setflag 0x209
setflag 0x828
setflag 0x217
message $goodluck
boxset 6
release
end

#org $released
release
end

#org $11
$11 1 = Oh, and he also left this for you.

#org $22
$22 1 = You received a PokeDex!
.
#org $moveexclam
#raw 0x63 0x62 0xFE

#org $walktome
#raw 0x1D 0x1F 0x1F 0x1F 0x1F 0x1F 0x1E 0x1E 0x1E
0x1E 0x1E 0xFE

#org $finishwalk
#raw 0x20 0x1E 0x13 0x13 0xFE

#org $computerroom
#raw 0x12 0x12 0x12 0x12 0x10 0x10 0x10
#raw 0x10 0x10 0x10 0x13 0x13 0x13 0xFE

#org $yourawake
$yourawake 1 =Oh! Hey, \v\h01! I see you finnally\ndecided to wake up your DAD\lbrought you something but you wouldnt\lwake up.

#org $pokemon
$pokemon 1 =Here \v\h01! this is your 1st POKEMON\nYour DAD wanted you to have it\lYou can start your journey now.

#org $goodluck
$goodluck 1 =Good Luck!!\nTo lilfabbro! Okay This should be working\lHowever I may have forgot to\lset some variables.\lI can fix those after a next patch\lOr you can tell me what\lyou think.
  #2619   Link to this post, but load the entire thread.  
Old December 15th, 2008 (7:03 AM). Edited December 15th, 2008 by HackMew.
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
 
Join Date: Jun 2006
Posts: 1,314
Quote:
Originally Posted by Juan View Post
Could inform which optimum interpreter to me assembly for format GBA?
It depends on you, I may suggest you the GoldRoad assembler.


Quote:
Originally Posted by NeoNemesis View Post
How would I go about making clock-based events and scripts in Ruby?
Is there a special or a command?
What about decompiling some in-game script? There are a lot of working examples :)


Quote:
Originally Posted by lilfabbro View Post
Mac- i know weve had our ups and downs but i appreciate the help, i am going to try doing changing the 0x04 to 0x01 tho or what ever the persons event no is thoe, because hiche is the one who made half of that script for me lol, so ill try it, and ill let you know if it worked so you dont have to do all that work if its not required

i dont know were i copied that script from above i think its one i was messing with but this is the script that doesnt work:
Spoiler:
#org $start
lock
checkflag 0x217
if b_true goto $released
applymovement 0x01 $moveexclam
pause 0x7
applymovement 0xFF $moveexclam
pause 0x7
applymovement 0x01 $walktome
pausemove 0
applymovement 0x01 $finishwalk
pausemove 0
message $yourawake
boxset 6
applymovement 0x01 $computerroom
pausemove 0
applymovement 0xFF $computerroom
pausemove 0
message $pokemon
boxset 6
givepokemon 151 5 0
fanfare 0x13E
waitfanfare
message $11
boxset 2
fanfare 0x13E
message $22
boxset 6
setflag 0x829
special 0x16F
waitfanfare
setflag 0x209
setflag 0x828
setflag 0x217
message $goodluck
boxset 6
release
end

#org $released
release
end

#org $11
$11 1 = Oh, and he also left this for you.

#org $22
$22 1 = You received a PokeDex!
.
#org $moveexclam
#raw 0x63 0x62 0xFE

#org $walktome
#raw 0x1D 0x1F 0x1F 0x1F 0x1F 0x1F 0x1E 0x1E 0x1E
0x1E 0x1E 0xFE

#org $finishwalk
#raw 0x20 0x1E 0x13 0x13 0xFE

#org $computerroom
#raw 0x12 0x12 0x12 0x12 0x10 0x10 0x10
#raw 0x10 0x10 0x10 0x13 0x13 0x13 0xFE

#org $yourawake
$yourawake 1 =Oh! Hey, \v\h01! I see you finnally\ndecided to wake up your DAD\lbrought you something but you wouldnt\lwake up.

#org $pokemon
$pokemon 1 =Here \v\h01! this is your 1st POKEMON\nYour DAD wanted you to have it\lYou can start your journey now.

#org $goodluck
$goodluck 1 =Good Luck!!\nTo lilfabbro! Okay This should be working\lHowever I may have forgot to\lset some variables.\lI can fix those after a next patch\lOr you can tell me what\lyou think.
Well, you may want to try this script with XSE. Don't forget to set 1001 as People ID.

Spoiler:

#org @start
lock
checkflag 0x1000
if b_true goto @released
applymovement 0x01 @moveexclam
waitmovement 0
applymovement 0xFF @moveexclam
waitmovement 0
applymovement 0x01 @walktome
waitmovement 0
applymovement 0x01 @finishwalk
waitmovement 0
message @yourawake
boxset 6
applymovement 0x01 @computerroom
waitmovement 0
applymovement 0xFF @computerroom
waitmovement 0
message @pokemon
boxset 6
fanfare 0x13E
setflag 0x828
givepokemon 151 5 0 0 0 0
waitfanfare
message @11
boxset 2
fanfare 0x13E
message @22
boxset 6
setflag 0x829
special 0x16F
waitfanfare
message @goodluck
boxset 6
setflag 0x1000
setflag 0x1001
release
end

#org @released
release
end

#org @11
= Oh, and he also left this for you.

#org @22
= You received a PokéDex!

#org @moveexclam
#raw 0x63 0x62 0xFE

#org @walktome
#raw 0x1D 0x1F 0x1F 0x1F 0x1F 0x1F 0x1E 0x1E 0x1E 0x1E 0x1E 0xFE

#org @finishwalk
#raw 0x20 0x1E 0x13 0x13 0xFE

#org @computerroom
#raw 0x12 0x12 0x12 0x12 0x10 0x10 0x10 0x10 0x10 0x10 0x13 0x13 0x13 0xFE

#org @yourawake
= Oh! Hey, \v\h01! I see you finnally\ndecided to wake up your DAD\lbrought you something but you wouldnt\lwake up.

#org @pokemon
= Here \v\h01! this is your 1st POKEMON\nYour DAD wanted you to have it\lYou can start your journey now.

#org @goodluck
= Good Luck!!\nTo lilfabbro! Okay This should be working\lHowever I may have forgot to\lset some variables.\lI can fix those after a next patch\lOr you can tell me what\lyou think.


Edit: just to let you know, the guy got his script working fine thanks to my help, no further help needed so far :)
__________________
  #2620   Link to this post, but load the entire thread.  
Old December 16th, 2008 (12:45 AM).
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL 0m3GA ARS3NAL is offline
Im comin' home...
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 30
Gender: Male
Nature: Gentle
Posts: 1,816
Quote:
Originally Posted by NeoNemesis View Post
How would I go about making clock-based events and scripts in Ruby?
Is there a special or a command?
Also is there a command or way to make a script where the main player's OW changes? (Just like in CBM's Prism)
Try using XSE To open up the script for the Berry Master's Wife in Ruby Version.
Follow the script through and read it, to find out the 24 hour based Flag.
(I would just tell you it, but I lost my list of clock based flags... I had an entire list made up...)
The Berry Master's Wife is just 1 of the flags that run on the 24hour clock, There are a bunch more, (Like the lottery one, and the Berry Master himself) Look around for them. (I know this is the same thin HackMew said,, but I wanted to give the person somewhere to start looking you know?)
__________________
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
  #2621   Link to this post, but load the entire thread.  
Old December 16th, 2008 (5:17 AM).
Juan Juan is offline
Brazilian with a bad English
 
Join Date: Jun 2007
Location: Pindamonhangaba - SP
Age: 32
Nature: Adamant
Posts: 92
How functions the special 0x187?
__________________
  #2622   Link to this post, but load the entire thread.  
Old December 16th, 2008 (5:42 AM).
-GiЯ -GiЯ is offline
Banned
 
Join Date: Jun 2008
Location: Earth
Age: 31
Gender: Male
Nature: Bold
Posts: 119
HELP PLEASE!!, hack mew tried to help me, but i dont get XSE, im not good with script but i know notepad\pokescript a lil bit.
i cant figure out what wrong with this thoe it just freezes can anyone help?
remember i use pokescript and notepad.
also can anyone give me a step key i know 0xFE goes at the end but which steps are which direction like 0x1e and so on (up,down,left,right??)

#org $start
lock
checkflag 0x217
if b_true goto $released
applymovement 0x01 $moveexclam
pause 0x7
applymovement 0xFF $moveexclam
pause 0x7
applymovement 0x01 $walktome
pausemove 0
applymovement 0x01 $finishwalk
pausemove 0
message $yourawake
boxset 6
applymovement 0x01 $computerroom
pausemove 0
applymovement 0xFF $computerroom
pausemove 0
message $pokemon
boxset 6
givepokemon 151 5 0
fanfare 0x13E
waitfanfare
message $11
boxset 2
fanfare 0x13E
message $22
boxset 6
setflag 0x829
special 0x16F
waitfanfare
setflag 0x209
setflag 0x828
setflag 0x217
message $goodluck
boxset 6
release
end

#org $released
release
end

#org $11
$11 1 = Oh, and he also left this for you.

#org $22
$22 1 = You received a PokeDex!
.
#org $moveexclam
#raw 0x63 0x62 0xFE

#org $walktome
#raw 0x1D 0x1F 0x1F 0x1F 0x1F 0x1F 0x1E 0x1E 0x1E
0x1E 0x1E 0xFE

#org $finishwalk
#raw 0x20 0x1E 0x13 0x13 0xFE

#org $computerroom
#raw 0x12 0x12 0x12 0x12 0x10 0x10 0x10
#raw 0x10 0x10 0x10 0x13 0x13 0x13 0xFE

#org $yourawake
$yourawake 1 =Oh! Hey, \v\h01! I see you finnally\ndecided to wake up your DAD\lbrought you something but you wouldnt\lwake up.

#org $pokemon
$pokemon 1 =Here \v\h01! this is your 1st POKEMON\nYour DAD wanted you to have it\lYou can start your journey now.

#org $goodluck
$goodluck 1 =Good Luck!!\nTo lilfabbro! Okay This should be working\lHowever I may have forgot to\lset some variables.\lI can fix those after a next patch\lOr you can tell me what\lyou think.
  #2623   Link to this post, but load the entire thread.  
Old December 16th, 2008 (5:45 AM).
Hiche.. Hiche.. is offline
 
 
Join Date: Apr 2008
Posts: 979
I will look over your script, and see if anything is wrong.

For the movements, here:

Spoiler:
Face Down 0x00
Face Up 0x01
Face Left 0x02
Face Right 0x03
Step Down (Very Slow) 0x08
Step Up (Very Slow) 0x09
Step Left (Very Slow) 0x0A
Step Right (Very Slow) 0x0B
Step Down (Slow) 0x0C
Step Up (Slow) 0x0D
Step Left (Slow) 0x0E
Step Right (Slow) 0x0F
Step Down (Normal) 0x10
Step Up (Normal) 0x11
Step Left (Normal) 0x12
Step Right (Normal) 0x13
Jump Down 2 Squares 0x14
Jump Up 2 Squares 0x15
Jump Left 2 Squares 0x16
Jump Right 2 Squares 0x17
Step Down (Fast) 0x1D
Step Up (Fast) 0x1E
Step Left (Fast) 0x1F
Step Right (Fast) 0x20
Step on the Spot Down 0x21
Step on the Spot Up 0x22
Step on the Spot Left 0x23
Step on the Spot Right 0x24
Step on the Spot Down (Fast) 0x25
Step on the Spot Up (Fast) 0x26
Step on the Spot Left (Fast) 0x27
Step on the Spot Right (Fast) 0x28
Step on the Spot Down (Very Fast) 0x29
Step on the Spot Up (Very Fast) 0x2A
Step on the Spot Left (Very Fast) 0x2B
Step on the Spot Right (Very Fast) 0x2C
Face Down (Non-Instant) 0x2D
Face Up (Non-Instant) 0x2E
Face Left (Non-Instant) 0x2F
Face Right (Non-Instant) 0x30
Slide Down 0x31
Slide Up 0x32
Slide Left 0x33
Slide Right 0x34
Slide Down On Right Foot 0x3D
Slide Up On Right Foot 0x3E
Slide Left On Right Foot 0x3F
Slide Right On Right Foot 0x40
Slide Down On Left Foot 0x41
Slide Up On Left Foot 0x42
Slide Left On Left Foot 0x43
Slide Right On Left Foot 0x44
Face Player 0x4A
Face Away from Player 0x4B
Jump Down 1 Square 0x4E
Jump Up 1 Square 0x4F
Jump Left 1 Square 0x50
Jump Right 1 Square 0x51
Jump in Place (Facing Down) 0x52
Jump in Place (Facing Up) 0x53
Jump in Place (Facing Left) 0x54
Jump in Place (Facing Right) 0x55
Jump in Place (Facing Down->Up) 0x56
Jump in Place (Facing Up->Down) 0x57
Jump in Place (Facing Left->Right) 0x58
Jump in Place (Facing Right->Left) 0x59
Disappear 0x60
Reappear 0x61
"!" box popup 0x62
"?" box popup 0x63
"X" box popup 0x64
"!!" box popup 0x65
"^_^" box popup 0x66


Extracted from thethethethe's tutorial. (FireRed movements)
  #2624   Link to this post, but load the entire thread.  
Old December 16th, 2008 (5:54 AM).
Hiche.. Hiche.. is offline
 
 
Join Date: Apr 2008
Posts: 979
Code:
message $11
fanfare 0x13E
setflag 0x829
special 0x16F
^ See this part? You forgot to put boxset 6 under the message $11.

So it would be:
Code:
message $11
boxset 6
fanfare 0x13E
setflag 0x829
special 0x16F
  #2625   Link to this post, but load the entire thread.  
Old December 16th, 2008 (10:51 AM).
KillerSnipe21 KillerSnipe21 is offline
 
Join Date: Dec 2008
Gender:
Posts: 14
Ok for days ive been trying to find out how to make a script so that when you first talk to oak he will let you chose the pokemon you want but I cant find out what I need to put in my script to make it work and I tryed looking at the normal one off the normal rom but I cant find it can anyone please help me and I know this isnt the right place to put this but I dont know anywhere else.
Closed Thread

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:24 AM.