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
  #2576   Link to this post, but load the entire thread.  
Old December 9th, 2008 (5:01 PM).
Likewise Likewise is offline
Bye.
 
Join Date: Mar 2008
Location: Twilight Town
Posts: 724
Quote:
'-----------------------
#org 0x71E529
faceplayer
checkflag 0x1002
if 0x1 goto 0x871E6DE
givepokemon 0x55 0x5 0x1 0x0 0x0 0x0
msgbox 0x871E599 '"Dad: What do you want!\nCan't you s..."
callstd 0x6
applymovement MOVE_PLAYER 0x871E635
waitmovement 0x0
applymovement 0x3 0x871E63C
waitmovement 0x0
msgbox 0x871E63F '"You got an Eevee!"
callstd 0x6
applymovement MOVE_PLAYER 0x871E652
waitmovement 0x0
msgbox 0x871E658 '"Dad:I can't beleive you're already\..."
callstd 0x6
applymovement MOVE_PLAYER 0x871E6D4
waitmovement 0x0
applymovement 0x1011 0x871E6D8
waitmovement 0x0
setflag 0x1010
setflag 0x1020
setflag 0x1002
release
end

'-----------------------
#org 0x71E6DE
release
end


'-----------
' Movements
'-----------
#org 0x71E635
#raw 13 'Step Right (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 11 'Step Up (Normal)
#raw 3 'Face Right
#raw FE 'End of Movements

#org 0x71E63C
#raw 60 'Hide
#raw FE 'End of Movements

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

#org 0x71E6D4
#raw 11 'Step Up (Normal)
#raw 0 'Face Down
#raw FE 'End of Movements

#org 0x71E6D8
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 10 'Step Down (Normal)
#raw 13 'Step Right (Normal)
#raw 60 'Hide
#raw FE 'End of Movements


'---------
' Strings
'---------
#org 0x71E599
= Dad: What do you want!\nCan't you see that I'm working?\lOh it's you!\lAs you know, it is time give you\lyour first pokemon!\lYour pokemon is on the desk.

#org 0x71E63F
= You got an Eevee!

#org 0x71E658
= Dad:I can't beleive you're already\ngoing on your first journey!\pDad:Now if you will excuse me\nsome feild work to do.
It works perfectly until the last movement, the NPC wont work, and I double checked the person ID and it's right.
__________________
Bye.
I'm sick of all the prepubecent n00bs running around.
It's like no one has anymore morals anymore.
Bye to all my friends, I'll still be talking to you on msn.
  #2577   Link to this post, but load the entire thread.  
Old December 9th, 2008 (5:03 PM).
Vrai's Avatar
Vrai Vrai is offline
can you feel my heart?
 
Join Date: Jun 2008
Age: 28
Gender: Male
Nature: Adamant
Posts: 2,896
Quote:
Originally Posted by ~element View Post
It works perfectly until the last movement, the NPC wont work, and I double checked the person ID and it's right.
You have an "8" in front of the pointer to the applymovement.

Remove it, and it should work perfectly.
__________________
  #2578   Link to this post, but load the entire thread.  
Old December 9th, 2008 (5:07 PM).
chrisdurer's Avatar
chrisdurer chrisdurer is offline
 
Join Date: Apr 2008
Age: 31
Gender:
Nature: Quiet
Posts: 31
Quote:
Originally Posted by Thrace View Post
applymovement works like this:

Spoiler:
applymovement 0x[peopleNumber] [pointerToMovement]
waitmovement 0

#org @pointerToMovement
#raw[listOfMovements]


Here is an example

Spoiler:

#org @start
applymovement 0x1 @moveHere
waitmovement 0
end

#org @moveHere
#raw 0x11 0x11 0x11 0x11 0xfe


That will make the person whose Person Event Number is 1 move forward 4 spaces. 0xfe is necessary to tell the script that the movement data has ended so is necessary at the end of every movement data.


What script editor are you using? What problems are you encountering?
ok i get the person event number from advanced map? and if so just say the person event number is 4 i would put in

#org @start
applymovement 0x4 @moveHere
waitmovement 0
end

#org @moveHere
#raw 0x11 0x11 0x11 0x11 0xfe[/spoiler]

??
and im using XSE and the problem is that everytime i talk to the guy it makes me move and hide instead of the other person.
__________________
  #2579   Link to this post, but load the entire thread.  
Old December 9th, 2008 (5:15 PM).
machomuu's Avatar
machomuu machomuu is offline
Stuck in Hot Girl Summer
 
Join Date: Apr 2008
Location: Take a left, turn right at the next stop, bear left for a few mil
Gender: Female
Nature: Relaxed
Posts: 10,505
Quote:
Originally Posted by ~element View Post
It works perfectly until the last movement, the NPC wont work, and I double checked the person ID and it's right.
You're supposed to use the event number, not person ID.
  #2580   Link to this post, but load the entire thread.  
Old December 9th, 2008 (5:58 PM).
chrisdurer's Avatar
chrisdurer chrisdurer is offline
 
Join Date: Apr 2008
Age: 31
Gender:
Nature: Quiet
Posts: 31
ok well now the guy moves and hides untill i leave and come back. then hes there again. how do i fix that?
__________________
  #2581   Link to this post, but load the entire thread.  
Old December 9th, 2008 (7:47 PM). Edited December 9th, 2008 by Vrai.
Vrai's Avatar
Vrai Vrai is offline
can you feel my heart?
 
Join Date: Jun 2008
Age: 28
Gender: Male
Nature: Adamant
Posts: 2,896
Quote:
Originally Posted by chrisdurer View Post
ok well now the guy moves and hides untill i leave and come back. then hes there again. how do i fix that?
You have to put a setflag in your script, and then assign that setflag to the Person ID.

For example:

Code:
...
if 0x1 goto @end
setflag 0x1000
release
...
And then, in A-Map:

Code:
...
Script Offset: $800000
Person ID: 1000
Unknown: 00 00
...
Don't pay attention to whatever else I typed in the "script" besides the bold, I just made that up in my head. ^^

Sorry 'bout the double post, but does anyone know if you can use a fadescreen, then warp, and undo the fadescreen w/o revealing the screen at all?

I tried, but it faded the screen, showed it before it warped, and faded once more, where it was supposed to warp. I really would like to know if it's possible.

Thankies much ^^
__________________
  #2582   Link to this post, but load the entire thread.  
Old December 9th, 2008 (8:27 PM).
chrisdurer's Avatar
chrisdurer chrisdurer is offline
 
Join Date: Apr 2008
Age: 31
Gender:
Nature: Quiet
Posts: 31
Lets just say i wanted this to happen:

Quote:
talk to him before getting the first badge he says go away.
talk to him after getting the first badge he says good job and walks away never to be seen again.
would i do it the same way?
__________________
  #2583   Link to this post, but load the entire thread.  
Old December 9th, 2008 (8:36 PM).
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 Vrai View Post

Sorry 'bout the double post, but does anyone know if you can use a fadescreen, then warp, and undo the fadescreen w/o revealing the screen at all?

I tried, but it faded the screen, showed it before it warped, and faded once more, where it was supposed to warp. I really would like to know if it's possible.

Thankies much ^^
Just Warp, when you warp, it automatically fades the screen out.
Unless you are going for a "White out" Then... I don't know... Sorry...
__________________
>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...

>
  #2584   Link to this post, but load the entire thread.  
Old December 9th, 2008 (8:46 PM).
Vrai's Avatar
Vrai Vrai is offline
can you feel my heart?
 
Join Date: Jun 2008
Age: 28
Gender: Male
Nature: Adamant
Posts: 2,896
Quote:
Originally Posted by chrisdurer View Post
Lets just say i wanted this to happen:

would i do it the same way?
Yes, it should work in the same way.
__________________
  #2585   Link to this post, but load the entire thread.  
Old December 9th, 2008 (9:08 PM). Edited December 9th, 2008 by chrisdurer.
chrisdurer's Avatar
chrisdurer chrisdurer is offline
 
Join Date: Apr 2008
Age: 31
Gender:
Nature: Quiet
Posts: 31
Quote:
Quote:
Quote:
I cant get it to work?? when ever i put the code into XSE it changes it and erases some of the lines. so the script doesnt do what i want it to!!
Ok well i got it to work....mostly.... now the only problem is that befor i get the badge he doesnt say anything and it only makes the clicking sound...??
OK nvm lol i got it. i just played around with the script. but thank you very much for helping me!!
ok no now i do have a problem. i tried to add more movements to my script and they all work untill the last one. then everything just stays frozen like asif someone were talking to me but the guy is gone?
__________________
  #2586   Link to this post, but load the entire thread.  
Old December 10th, 2008 (2:26 AM).
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
 
Join Date: Jun 2006
Posts: 1,314
Quote:
Originally Posted by chrisdurer View Post
ok no now i do have a problem. i tried to add more movements to my script and they all work untill the last one. then everything just stays frozen like asif someone were talking to me but the guy is gone?
Did you actually recompile the dynamic script, or just just added some movements to a decompiled script?
Because you should never do the latter one. Data gets overwritten easily if you don't pay attention.
__________________
  #2587   Link to this post, but load the entire thread.  
Old December 10th, 2008 (3:59 PM).
Shaded's Avatar
Shaded Shaded is offline
 
Join Date: Nov 2008
Gender:
Posts: 43
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.

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!
  #2588   Link to this post, but load the entire thread.  
Old December 11th, 2008 (1:18 AM).
Hiche.. Hiche.. is offline
 
 
Join Date: Apr 2008
Posts: 979
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.

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!
Is this a person event, or a script event (S)? If it is a script event, do not forget to put in Advance map the following; Unknown: 0003, and var number: 5040, or 4050.
  #2589   Link to this post, but load the entire thread.  
Old December 11th, 2008 (1:40 AM).
-GiЯ -GiЯ is offline
Banned
 
Join Date: Jun 2008
Location: Earth
Age: 31
Gender: Male
Nature: Bold
Posts: 119
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:

#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.
  #2590   Link to this post, but load the entire thread.  
Old December 11th, 2008 (1:49 AM).
Hiche.. Hiche.. is offline
 
 
Join Date: Apr 2008
Posts: 979
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:

#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.

Spoiler:
#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 0
fanfare 0x13E
waitfanfare
#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
#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.


Try this. You spelled applymovement once wrong, and there's no such thing as applymovement 0x00. It should be applymovement 0x0<person event number>. I assumed it's 0x04. You also forgot waitfanfare under the fanfare 0x13E.
  #2591   Link to this post, but load the entire thread.  
Old December 11th, 2008 (8:41 AM).
KillerSnipe21 KillerSnipe21 is offline
 
Join Date: Dec 2008
Gender:
Posts: 14
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.

#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?
  #2592   Link to this post, but load the entire thread.  
Old December 11th, 2008 (8:49 AM).
Hiche.. Hiche.. is offline
 
 
Join Date: Apr 2008
Posts: 979
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.

#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?
When you compiled the script, an offset came up. Did you copy the $offset, and placed it in Advance Map? Read this; Click for more information.
  #2593   Link to this post, but load the entire thread.  
Old December 11th, 2008 (9:17 AM).
KillerSnipe21 KillerSnipe21 is offline
 
Join Date: Dec 2008
Gender:
Posts: 14
Yea I did and I did it right every time but it still come up as the same thing.
  #2594   Link to this post, but load the entire thread.  
Old December 11th, 2008 (2:14 PM).
Shaded's Avatar
Shaded Shaded is offline
 
Join Date: Nov 2008
Gender:
Posts: 43
Quote:
Originally Posted by Hiche View Post
Is this a person event, or a script event (S)? If it is a script event, do not forget to put in Advance map the following; Unknown: 0003, and var number: 5040, or 4050.
It's a person event...
*filler*
  #2595   Link to this post, but load the entire thread.  
Old December 12th, 2008 (2:33 PM).
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
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.

'-----------------------
#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!
  #2596   Link to this post, but load the entire thread.  
Old December 12th, 2008 (3:17 PM).
/Circa's Avatar
/Circa /Circa is offline
a face in the clouds.
 
Join Date: Nov 2007
Location: Melbourne, Victoria
Gender: Male
Nature: Quiet
Posts: 881
I just need a simple command help, I need to know how to MAKE the player surf, because it's early in the game and all the player has to do is get across a river.

I know how to do everything else, I just don't know what the command is to surf, if anyone understands me :S
__________________
dragging himself, forw
ard again, the pain has
still not diminished. E
ventually though, he e
merges inside a v
ery large room w

here everything about

the house

suddenly

changes.
  #2597   Link to this post, but load the entire thread.  
Old December 12th, 2008 (4:04 PM).
VietXtc VietXtc is offline
 
Join Date: Dec 2008
Gender:
Posts: 2
Whats wrong with this script?

Quote:
#org $start
checkflag 0x800
if b_true goto $lets
message $go
boxset 6
applymovement 0x10 $walk1
pausemove 0x0
applymovement 0xFF $walk2
pausemove 0x0
release
end

#org $lets
message $death
boxset 6
release
end

#org $go
$go 1 = Lin: Let's go visit \nDestinycave \v\h01\nfor research.

#org $death
$death 1 = Lin: The death of our\ngym leader has our\ltown in despair.

#org $walk1
#raw 0x2D 0x2D 0x54 0xFE

#org $walk2
#raw 0x2D 0x2D 0xFE
  #2598   Link to this post, but load the entire thread.  
Old December 12th, 2008 (4:11 PM).
Thrace's Avatar
Thrace Thrace is offline
@tion
 
Join Date: Jun 2007
Age: 32
Gender: Male
Posts: 1,048
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.

'-----------------------
#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!
Start with flags starting from 1000. You need "waitmovement 0" after a movement. Theres also no need for that release command you've used, that'll be causing you some problems.

A good way to learn is to decompile scripts and see how it is done. Try decompiling the PokeBalls in Oak's Lab.

Quote:
Originally Posted by Punk Rocker View Post
I just need a simple command help, I need to know how to MAKE the player surf, because it's early in the game and all the player has to do is get across a river.

I know how to do everything else, I just don't know what the command is to surf, if anyone understands me :S
special 0x161 activates the surfing OW.
__________________
  #2599   Link to this post, but load the entire thread.  
Old December 13th, 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
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.

Portuguese:
Existe algum comando que lê o byte de um ponteiro na memória RAM, e depois guarda em uma variável para poder usar depois(compare, addvar, subvar, ...)?
Eu tentei o loadpointer(0F) e o loadbytefrompointer(12) mas eles não funcionaram.
__________________
  #2600   Link to this post, but load the entire thread.  
Old December 13th, 2008 (10:46 AM).
Likewise Likewise is offline
Bye.
 
Join Date: Mar 2008
Location: Twilight Town
Posts: 724
Quote:
#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.
__________________
Bye.
I'm sick of all the prepubecent n00bs running around.
It's like no one has anymore morals anymore.
Bye to all my friends, I'll still be talking to you on msn.
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.