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
  #2551   Link to this post, but load the entire thread.  
Old December 6th, 2008 (10:58 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
In that case:

#Dynamic 0x800000

#Org @Main
checkflag 0x829
if 0x0 goto @love2
end

#org @love2
message @message
boxset 0x6
applymovement 0xFF @movements
waitmovement 0x0
end

#Org @message
= Don't go there!

#org @movements
#raw 12
#raw FE
__________________
Everything ends,
and that's always sad.
But everything begins again, too,
and that's always happy.
  #2552   Link to this post, but load the entire thread.  
Old December 7th, 2008 (8:01 AM).
Working Class Hero Working Class Hero is offline
 
Join Date: Mar 2006
Location: Ohio
Age: 30
Gender:
Nature: Naughty
Posts: 683
It still freezes the game. ;_;
  #2553   Link to this post, but load the entire thread.  
Old December 7th, 2008 (8:04 AM).
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
 
Join Date: Jun 2006
Posts: 1,314
Quote:
Originally Posted by t.A.T.u View Post
It still freezes the game. ;_;
Did you try entering and leaving a building before testing the script?
Also, are you sure you set all the values properly?

__________________
  #2554   Link to this post, but load the entire thread.  
Old December 7th, 2008 (8:09 AM).
Working Class Hero Working Class Hero is offline
 
Join Date: Mar 2006
Location: Ohio
Age: 30
Gender:
Nature: Naughty
Posts: 683
Quote:
Originally Posted by HackMew View Post
Did you try entering and leaving a building before testing the script?
Also, are you sure you set all the values properly?

Yes I did. But I found the problem after the script was fixed. Somehow I put a 1 in var value. I have no idea why. o_O

Thanks everyone! ^_^ -feels stupid- D:

Now it is freezing after I get the thing I need. I am trying to make it check for the Pokedex (Nat).

#Dynamic 0x800000

#Org @Main
checkflag 0x829
if 0x0 goto @love2
end

#org @love2
message @message
boxset 0x6
applymovement 0xFF @movements
waitmovement 0x0
end

#Org @message
= Don't go there!

#org @movements
#raw 12
#raw FE
  #2555   Link to this post, but load the entire thread.  
Old December 7th, 2008 (8:10 AM).
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
 
Join Date: Jun 2006
Posts: 1,314
Quote:
Originally Posted by t.A.T.u View Post
Yes I did. But I found the problem after the script was fixed. Somehow I put a 1 in var value. I have no idea why. o_O

Thanks everyone! ^_^ -feels stupid- D:
Maybe a typo? You're welcome.
__________________
  #2556   Link to this post, but load the entire thread.  
Old December 7th, 2008 (8:23 AM).
Working Class Hero Working Class Hero is offline
 
Join Date: Mar 2006
Location: Ohio
Age: 30
Gender:
Nature: Naughty
Posts: 683
Quote:
Originally Posted by HackMew View Post
Maybe a typo? You're welcome.
Well I checked to see if there were typos and there were none. But the scrip still insists on freezing my game.
  #2557   Link to this post, but load the entire thread.  
Old December 7th, 2008 (8:48 AM).
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
 
Join Date: Jun 2006
Posts: 1,314
Quote:
Originally Posted by t.A.T.u View Post
Well I checked to see if there were typos and there were none. But the scrip still insists on freezing my game.
I was talking about the Var Value, indeed. Anyway, did you try it on a clean ROM?
__________________
  #2558   Link to this post, but load the entire thread.  
Old December 7th, 2008 (11:30 AM).
Working Class Hero Working Class Hero is offline
 
Join Date: Mar 2006
Location: Ohio
Age: 30
Gender:
Nature: Naughty
Posts: 683
I gave up on that one. :x

Now I made a new script but now after everything it freezes. I set everything to the right setting.

Spoiler:

#Dynamic 0x800000

#org @start
checkflag 0x1002
if 0x0 goto @main
if 0x1 goto @main2
end

#org @main
lock
faceplayer
message @message
boxset 0x6
applymovement 0xFF @movement
waitmovement 0x0
release
end

#org @message
= Hey [player]!\nDon't go out there!\pCome here so I can give\nyou something useful!

#org @movement
#raw 0x08

#org @main2
lock
release
end


The last @main2 I know it isn't needed but it I want it there because on another script it prevented it from freezing. (It froze at first, but after I added that it didn't.)
  #2559   Link to this post, but load the entire thread.  
Old December 7th, 2008 (11:59 AM).
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 t.A.T.u View Post
I gave up on that one. :x

Now I made a new script but now after everything it freezes. I set everything to the right setting.

Spoiler:

#Dynamic 0x800000

#org @start
checkflag 0x1002
if 0x0 goto @main
if 0x1 goto @main2
end

#org @main
lock
faceplayer
message @message
boxset 0x6
applymovement 0xFF @movement
waitmovement 0x0
release
end

#org @message
= Hey [player]!\nDon't go out there!\pCome here so I can give\nyou something useful!

#org @movement
#raw 0x08

#org @main2
lock
release
end


The last @main2 I know it isn't needed but it I want it there because on another script it prevented it from freezing. (It froze at first, but after I added that it didn't.)
Try this
Spoiler:
#Dynamic 0x800000

#org @start
checkflag 0x1002
if 0x0 goto @main
if 0x1 goto @main2
end

#org @main
lock
faceplayer
message @message
boxset 0x6
applymovement 0xFF @movement
waitmovement 0x0
release
end

#org @message
= Hey [player]!\nDon't go out there!\pCome here so I can give\nyou something useful!

#org @movement
#raw 0x08 0xFE

#org @main2
release
end

In @main2, you don't need lock.
  #2560   Link to this post, but load the entire thread.  
Old December 7th, 2008 (12:06 PM).
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
 
Join Date: Jun 2006
Posts: 1,314
Quote:
Originally Posted by t.A.T.u View Post
I gave up on that one. :x

Now I made a new script but now after everything it freezes. I set everything to the right setting.

Spoiler:

#Dynamic 0x800000

#org @start
checkflag 0x1002
if 0x0 goto @main
if 0x1 goto @main2
end

#org @main
lock
faceplayer
message @message
boxset 0x6
applymovement 0xFF @movement
waitmovement 0x0
release
end

#org @message
= Hey [player]!\nDon't go out there!\pCome here so I can give\nyou something useful!

#org @movement
#raw 0x08

#org @main2
lock
release
end


The last @main2 I know it isn't needed but it I want it there because on another script it prevented it from freezing. (It froze at first, but after I added that it didn't.)
You don't use checkflag like that, sorry.
Also, at then end of each movement you need to put 0xFE.
Another thing. Instead of lock/faceplayer, just use callstd/boxset 0x2.
See the script below:

Spoiler:

#dynamic 0x800000

#org @start
checkflag 0x1002
if 0x1 goto @end
message @message
boxset 0x2
applymovement 0xFF @movement
waitmovement 0x0
setflag 0x1002
release
end

#org @message
= Hey [player]!\nDon't go out there!\pCome here so I can give\nyou something useful!

#org @movement
#raw 0x08 0xFE

#org @end
release
end
__________________
  #2561   Link to this post, but load the entire thread.  
Old December 7th, 2008 (2:20 PM).
Working Class Hero Working Class Hero is offline
 
Join Date: Mar 2006
Location: Ohio
Age: 30
Gender:
Nature: Naughty
Posts: 683
-kills self-

Okay I need help YET AGAIN.

Spoiler:

#dynamic 0x800000

#org @start
lock
faceplayer
applymovement 0x3 @movement1
waitmovement 0x0
message @message
boxset 0x6
givepokemon 0x381 0x5 0xB 0x0 0x0 0x0
setflag 0x828
applymovement 0x3 @movement2
waitmovement 0x0
release
End

#org @movement1
#raw 0x61 0x13 0x13 0x13 0x10 0x10 0x10 0x10 0x10 0x10 0xFE

#org @message
= Hey [player]!\pOh so my dad wanted you to see\nme?\pOh yeah!\pSince you are leaving I though\nyou would need this.\pIt's a Relicanth! A rare\nPokemon found deep underwater.\pWell, I have to go.\nGoodbye!

#org @movement2
#raw 0x11 0x11 0x11 0x11 0x11 0x11 0x12 0x12 0x12 0x60 0xFE


Everything goes perfectly until movement2. It freezes right before the person moves. @[email protected] I messed around with it like 50 times and I can't figure it out.
  #2562   Link to this post, but load the entire thread.  
Old December 7th, 2008 (2:51 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 t.A.T.u View Post
-kills self-

Okay I need help YET AGAIN.

Spoiler:

#dynamic 0x800000

#org @start
lock
faceplayer
applymovement 0x3 @movement1
waitmovement 0x0
message @message
boxset 0x6
givepokemon 0x381 0x5 0xB 0x0 0x0 0x0
setflag 0x828
applymovement 0x3 @movement2
waitmovement 0x0
release
End

#org @movement1
#raw 0x61 0x13 0x13 0x13 0x10 0x10 0x10 0x10 0x10 0x10 0xFE

#org @message
= Hey [player]!\pOh so my dad wanted you to see\nme?\pOh yeah!\pSince you are leaving I though\nyou would need this.\pIt's a Relicanth! A rare\nPokemon found deep underwater.\pWell, I have to go.\nGoodbye!

#org @movement2
#raw 0x11 0x11 0x11 0x11 0x11 0x11 0x12 0x12 0x12 0x60 0xFE


Everything goes perfectly until movement2. It freezes right before the person moves. @[email protected] I messed around with it like 50 times and I can't figure it out.
Which game are you hacking?
  #2563   Link to this post, but load the entire thread.  
Old December 7th, 2008 (3:23 PM).
Working Class Hero Working Class Hero is offline
 
Join Date: Mar 2006
Location: Ohio
Age: 30
Gender:
Nature: Naughty
Posts: 683
Quote:
Originally Posted by machomuu View Post
Which game are you hacking?
I am hacking Fire Red .
  #2564   Link to this post, but load the entire thread.  
Old December 7th, 2008 (6:15 PM).
chrisdurer's Avatar
chrisdurer chrisdurer is offline
 
Join Date: Apr 2008
Age: 31
Gender:
Nature: Quiet
Posts: 31
ok im having a problem with this script

Code:
#dynamic 0x80000C
'-----------------------
#org 0x800000
lock
faceplayer
checkflag 0x299
if 0x1 goto 0x8800029
msgbox 0x8800055 '"I Cant take \ncare of my \nBULBASAU..."
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x8800034
msgbox 0x88000C4 '"IIm sure somebody else would\nlike ..."
callstd 0x6
release
end
'-----------------------
#org 0x800029
msgbox 0x880008F '"Hows my Bulbasuar doing?"
callstd 0x6
release
end
'-----------------------
#org 0x800034
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x88000A9 '"You received a Bulbasaur."
callstd 0x6
waitfanfare
setflag 0x299
release
end
 
'---------
' Strings
'---------
#org 0x800055
= I cant take care of my \pBULBASAUR.\pYou can have it.
#org 0x8000C4
= Im sure somebody else would\nlike to have it.
#org 0x80008F
= Hows my Bulbasuar doing?
#org 0x8000A9
= You received a Bulbasaur.
Wen i go and talk to the girl if i say yes the game frezzes. and if i say no it says put ???????? in iteams poket??
  #2565   Link to this post, but load the entire thread.  
Old December 7th, 2008 (7:20 PM).
Likewise Likewise is offline
Bye.
 
Join Date: Mar 2008
Location: Twilight Town
Posts: 724
Quote:
Originally Posted by t.A.T.u View Post
-kills self-

Okay I need help YET AGAIN.

Spoiler:

#dynamic 0x800000

#org @start
lock
faceplayer
applymovement 0x3 @movement1
waitmovement 0x0
message @message
boxset 0x6
givepokemon 0x381 0x5 0xB 0x0 0x0 0x0
setflag 0x828
applymovement 0x3 @movement2
waitmovement 0x0
release
End

#org @movement1
#raw 0x61 0x13 0x13 0x13 0x10 0x10 0x10 0x10 0x10 0x10 0xFE

#org @message
= Hey [player]!\pOh so my dad wanted you to see\nme?\pOh yeah!\pSince you are leaving I though\nyou would need this.\pIt's a Relicanth! A rare\nPokemon found deep underwater.\pWell, I have to go.\nGoodbye!

#org @movement2
#raw 0x11 0x11 0x11 0x11 0x11 0x11 0x12 0x12 0x12 0x60 0xFE


Everything goes perfectly until movement2. It freezes right before the person moves. @[email protected] I messed around with it like 50 times and I can't figure it out.
Assuming that your trying to move an event thats person ID is 0003, you should have done this:
"applymovement 0x0003 @movement2"
I might be wrong though, I'm just learning too so repost if it doesn't work.
__________________
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.
  #2566   Link to this post, but load the entire thread.  
Old December 7th, 2008 (7:41 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
Assuming that your trying to move an event thats person ID is 0003, you should have done this:
"applymovement 0x0003 @movement2"
I might be wrong though, I'm just learning too so repost if it doesn't work.
I don't believe that is what the person ID is for. The person ID is for assigning it to a flag so that the person will disappear when the flag is set.
__________________
  #2567   Link to this post, but load the entire thread.  
Old December 7th, 2008 (7:44 PM).
Likewise Likewise is offline
Bye.
 
Join Date: Mar 2008
Location: Twilight Town
Posts: 724
Yes but you CAN use it to move the person event.
__________________
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.
  #2568   Link to this post, but load the entire thread.  
Old December 7th, 2008 (10:19 PM).
chrisdurer's Avatar
chrisdurer chrisdurer is offline
 
Join Date: Apr 2008
Age: 31
Gender:
Nature: Quiet
Posts: 31
Can Someone Help me?? i would like to put Pokegear in pokemon fire red but i have no clue how to? is there a way that can?
  #2569   Link to this post, but load the entire thread.  
Old December 7th, 2008 (10:28 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
Can Someone Help me?? i would like to put Pokegear in pokemon fire red but i have no clue how to? is there a way that can?
That requires major ASM scripting. Maybe you should learn how to normally script first.
__________________
  #2570   Link to this post, but load the entire thread.  
Old December 7th, 2008 (11:20 PM).
chrisdurer's Avatar
chrisdurer chrisdurer is offline
 
Join Date: Apr 2008
Age: 31
Gender:
Nature: Quiet
Posts: 31
Quote:
Originally Posted by Vrai View Post
That requires major ASM scripting. Maybe you should learn how to normally script first.
Ok sounds good. so im guessing that its not as easy as just copy and past. lol
  #2571   Link to this post, but load the entire thread.  
Old December 8th, 2008 (7:25 AM). Edited December 8th, 2008 by HackMew.
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
 
Join Date: Jun 2006
Posts: 1,314
Quote:
Originally Posted by ~element View Post
Yes but you CAN use it to move the person event.
As long as the People ID is the same as as the person number. Which doesn't make sense anyway...
Forget about that: People ID = flag.

And chrisdurer... if you don't know the difference between static and dynamic offsets, or how to handle both, then stick with dynamic.
__________________
  #2572   Link to this post, but load the entire thread.  
Old December 8th, 2008 (1:11 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 t.A.T.u View Post
I am hacking Fire Red .
When it freezes, does the music freeze too, or does it keep playing?
  #2573   Link to this post, but load the entire thread.  
Old December 9th, 2008 (7:39 AM). Edited December 9th, 2008 by chrisdurer.
chrisdurer's Avatar
chrisdurer chrisdurer is offline
 
Join Date: Apr 2008
Age: 31
Gender:
Nature: Quiet
Posts: 31
does anyone know how to make a person talk to you ant then they walk away and disapear for the rest of the game?

this is the code that i have
Code:
'-----------------------
#org 0x800944
lock
faceplayer
checkflag 0x827
if 0x0 goto 0x8800957
if 0x1 goto 0x8800972
end
'-----------------------
#org 0x800957
msgbox 0x8800972 '"im leaving"
callstd 0x6
closeonkeypress
compare 0x4001 0x0
applymovement MOVE_PLAYER 0x880097F
waitmovement 0x0
release
end
'-----------------------
#org 0x800972

'-----------
' Movements
'-----------
#org 0x80097F
#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 12 'Step Left (Normal)
#raw 60 'Hide
#raw FE 'End of Movements

'---------
' Strings
'---------
#org 0x800972
= im leaving
  #2574   Link to this post, but load the entire thread.  
Old December 9th, 2008 (11:25 AM).
voltachu's Avatar
voltachu voltachu is offline
in training pokemon hacker
 
Join Date: Nov 2008
Age: 28
Gender:
Nature: Adamant
Posts: 29
erm well i need help with scriptingi have the scripts but i cant figure out how to get them into the game can someone please help ???
  #2575   Link to this post, but load the entire thread.  
Old December 9th, 2008 (4:43 PM).
Thrace's Avatar
Thrace Thrace is offline
@tion
 
Join Date: Jun 2007
Age: 32
Gender: Male
Posts: 1,048
Quote:
Originally Posted by chrisdurer View Post
does anyone know how to make a person talk to you ant then they walk away and disapear for the rest of the game?

this is the code that i have
Code:
'-----------------------
#org 0x800944
lock
faceplayer
checkflag 0x827
if 0x0 goto 0x8800957
if 0x1 goto 0x8800972
end
'-----------------------
#org 0x800957
msgbox 0x8800972 '"im leaving"
callstd 0x6
closeonkeypress
compare 0x4001 0x0
applymovement MOVE_PLAYER 0x880097F
waitmovement 0x0
release
end
'-----------------------
#org 0x800972

'-----------
' Movements
'-----------
#org 0x80097F
#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 12 'Step Left (Normal)
#raw 60 'Hide
#raw FE 'End of Movements

'---------
' Strings
'---------
#org 0x800972
= im leaving
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.

Quote:
Originally Posted by voltachu View Post
erm well i need help with scriptingi have the scripts but i cant figure out how to get them into the game can someone please help ???
What script editor are you using? What problems are you encountering?
__________________
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:23 AM.