Go Back   The PokéCommunity Forums > ROM Hacking > ROM Hacking Hub

Notices
For all updates, view the main page.

ROM Hacking Hub General discussions about ROM Hacking and Emulation. Not sure where to start? This is the place for you.
Posting links to ROMs is illegal and is not tolerated anywhere on the forum.
New threads in this forum are to be approved by a moderator before they are displayed.



Closed Thread
Click here to go to the first staff post in this thread.  
Thread Tools
  #6551    
Old March 9th, 2012 (08:38 AM).
Hacks0rus's Avatar
Hacks0rus
Monster Raving Looney
 
Join Date: Jul 2011
Gender: Male
Nature: Timid
Ah, guess I messed up thanks for setting me straight
  #6552    
Old March 9th, 2012 (06:18 PM).
Tdwilson2009
Beginning Trainer
 
Join Date: Dec 2009
Gender: Male
Problem with movement script.
Using advance map 1.92 and pokescript
Here is my script:
#org $begin
lock
faceplayer
message $dontgo
$dontgo 1 = please don't go
boxset 6
applympvement 0x1 $coming
pausemove
message $comeback
$comeback 1 = come with me
boxset 6
applymovement 0x1 $followone
applymovement 0xFF $followtwo
pausemove 0
message $hereyago
$hereyago 1 = Here we are
boxset 6
release
end

#org $coming
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0xFE

#org $followone
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0xFE

#org $followtwo
#raw 0x0B
#raw 0x0B
#raw 0xFE

----------------
After I inserted the script into the game I loaded the rom in VBA To test the script. When I talked to the person I assigned the script to I got an error message:

"Unsupported BIOS function c7 called from 026664a8. A BIOS file is needed in order to get correct behavior"

I clicked ok and the game reset. I went back to the same part of the game and talked to the person. The error message didn't pop up but the game restarted again...

Can anyone help?
  #6553    
Old March 10th, 2012 (02:30 AM).
Hacks0rus's Avatar
Hacks0rus
Monster Raving Looney
 
Join Date: Jul 2011
Gender: Male
Nature: Timid
I'm not a pokescript guy, but I noticed you have:
applympvement 0x1 $coming

shouldn't it be
applymovement 0x1 $coming?

Like I said I use XSE, not pokescript, so sorry I cant help out further.
  #6554    
Old March 10th, 2012 (10:14 AM).
ORIDAMARIW
Beginning Trainer
 
Join Date: Apr 2011
Gender: Male
there are 2 things i need and searched for, and i didn't found.(pokemon ruby)
i use XSE
1. what is the form of a pokemon trading script? i have the "trader advanced" ,but it's not helping me to do the script.
can anybody help me?
2. i need the offset of the intro. i dont likr to edit it with the A-TEXT .
__________________
A pokemon scripter.
if you need help , PM me.
  #6555    
Old March 11th, 2012 (06:28 AM).
ShadowGrey's Avatar
ShadowGrey
Graphix Master
 
Join Date: Nov 2011
Location: England
Gender: Male
Nature: Relaxed
Game: Pokemon FireRed
Editor: PokeScript
Script: Acquiring your first Pokemon.
Spoiler:
#org $give
lock
faceplayer
checkflag 0x828
if 0x0 goto $Talk
message $Umbreon
$Umbreon 1 = There you are Umbreon!/ Take Umbreon?
boxset 5
compare LASTRESULT 1
if B_False goto $PutBack
givepokemon 197 18 0
jingle
message $GotUmbreon
$GotUmbreon 1 = Player recieved Umbreon.
boxset 6
fadescreen 1
removesprite 1
fadescreen 0
message $NameUmbreon
$NameUmbreon 1 = Did Umbreon have a nickname?
boxset 5
compare LASTRESULT 1
if b_False goto $End
namepokemon
setflag 0x203
setflag 0x828
setflag 0x1200
release
end

#org $Talk
release
end


Basically my key problem is that the Pokemon party menu refuses to appear, I have trawled the internet for hours with no luck searching and solidly believe the flag is 0x828 but no luck. Also problems with removing the Pokeball sprite after the event, and finally problems with naming the acquired Pokemon: information on the naming screen is set to ??? as well as the mini image. Any help would be much appreciated. Thx.
__________________



http://www.pokecommunity.com/showthread.php?t=267674
  #6556    
Old March 11th, 2012 (06:43 AM).
Spherical Ice's Avatar
Spherical Ice
 
Join Date: Nov 2007
Location: UK
Send a message via Skype™ to Spherical Ice
Quote originally posted by ShadowGrey:
Game: Pokemon FireRed
Editor: PokeScript
Script: Acquiring your first Pokemon.
Spoiler:
#org $give
lock
faceplayer
checkflag 0x828
if 0x0 goto $Talk
message $Umbreon
$Umbreon 1 = There you are Umbreon!/ Take Umbreon?
boxset 5
compare LASTRESULT 1
if B_False goto $PutBack
givepokemon 197 18 0
jingle
message $GotUmbreon
$GotUmbreon 1 = Player recieved Umbreon.
boxset 6
fadescreen 1
removesprite 1
fadescreen 0
message $NameUmbreon
$NameUmbreon 1 = Did Umbreon have a nickname?
boxset 5
compare LASTRESULT 1
if b_False goto $End
namepokemon
setflag 0x203
setflag 0x828
setflag 0x1200
release
end

#org $Talk
release
end


Basically my key problem is that the Pokemon party menu refuses to appear, I have trawled the internet for hours with no luck searching and solidly believe the flag is 0x828 but no luck. Also problems with removing the Pokeball sprite after the event, and finally problems with naming the acquired Pokemon: information on the naming screen is set to ??? as well as the mini image. Any help would be much appreciated. Thx.
Setting the flag 0x828 will activate the Pokémon menu. Using the hidesprite command, and setting a flag which is also the Pokéball sprite's Person ID will hide it permenantly. As for the nicknaming part, I don't use Pokéscript so don't know what the namepokemon command requires.
__________________
  #6557    
Old March 11th, 2012 (08:05 AM).
paranvoi
Beginning Trainer
 
Join Date: Jan 2012
Gender: Male
Can someone tell me why it is that when I try to dump the menu text in Fire Red using WindHex, this is what I get (this is an extract of the resulting .txt):

Code:
//ATUS P[LINE]
//ROBLEM[LINE]
//END[LINE]
That should read "STATUS PROBLEM" but the first 2 letters of "STATUS"
are missing, plus there's an unnessecary line break after the first
letter of "PROBLEM". The entire dumped .txt file looks like that.
  #6558    
Old March 11th, 2012 (12:06 PM).
Rumille's Avatar
Rumille
Togepi
 
Join Date: Feb 2012
Gender: Male
I'm having problems with understanding 'specials' in scripts. Is there a list to see what each special does? The list in diegoisawesome's tutorial doesnt really seem complete. For example, in the PC-in-your-bedroom script there are several not-mentioned specials.

special 0x187
special 0x17D
special 0xD6
special 0xF9
special 0x190
  #6559    
Old March 11th, 2012 (12:31 PM). Edited March 11th, 2012 by Spherical Ice.
Spherical Ice's Avatar
Spherical Ice
 
Join Date: Nov 2007
Location: UK
Send a message via Skype™ to Spherical Ice
Quote originally posted by Rumille:
I'm having problems with understanding 'specials' in scripts. Is there a list to see what each special does? The list in diegoisawesome's tutorial doesnt really seem complete. For example, in the PC-in-your-bedroom script there are several not-mentioned specials.

special 0x187
special 0x17D
special 0xD6
special 0xF9
special 0x190
This post has a long list of specials.

Special 0x187 is used for Daycare Scripts, though it's not entirely known what it's used for.
I couldn't find what special 0x17D does.
Special 0xD6 makes the computer screen flash.
Special 0xF9 is used for Item Storage Mailbox Decoration.
I also couldn't find anything on special 0x190.
__________________
  #6560    
Old March 11th, 2012 (01:12 PM).
DrFuji's Avatar
DrFuji
Helfen, Wehren, Heilen
Community Supporter
 
Join Date: Sep 2009
Location: Downia-upside
Age: 22
Gender: Male
Nature: Jolly
Quote originally posted by Rumille:
I'm having problems with understanding 'specials' in scripts. Is there a list to see what each special does? The list in diegoisawesome's tutorial doesnt really seem complete. For example, in the PC-in-your-bedroom script there are several not-mentioned specials.

special 0x187
special 0x17D
special 0xD6
special 0xF9
special 0x190
If you're looking for an entire list of FR/LG specials, this thread has the most complete documentation on them by far.
__________________
  #6561    
Old March 11th, 2012 (01:31 PM).
Rumille's Avatar
Rumille
Togepi
 
Join Date: Feb 2012
Gender: Male
Quote originally posted by Spherical Ice:
This post has a long list of specials.

Special 0x187 is used for Daycare Scripts, though it's not entirely known what it's used for.
I couldn't find what special 0x17D does.
Special 0xD6 makes the computer screen flash.
Special 0xF9 is used for Item Storage Mailbox Decoration.
I also couldn't find anything on special 0x190.
Thank you

Next question: Where can I find the whole script used for giving you the first Pokémon? I can find the script where Oak takes you back to the lab, but I can't find the part that makes you walk up in the lab and then the dialogue part. Anyone?
  #6562    
Old March 11th, 2012 (01:38 PM).
DrFuji's Avatar
DrFuji
Helfen, Wehren, Heilen
Community Supporter
 
Join Date: Sep 2009
Location: Downia-upside
Age: 22
Gender: Male
Nature: Jolly
Quote originally posted by Rumille:
Thank you :)

Next question: Where can I find the whole script used for giving you the first Pokémon? I can find the script where Oak takes you back to the lab, but I can't find the part that makes you walk up in the lab and then the dialogue part. Anyone?
The part where you and Oak walk into the lab is a level script, one which activates when you walk into a new map. Go to the Header tab in Advance Map and scroll down until you reach the 'Map Script' section. Find script number 2 and open it - That should be how you find the level script you want. The part where you get a Pokemon is completely different and is activated when you speak to one of his Pokeballs.
__________________
  #6563    
Old March 11th, 2012 (06:09 PM). Edited March 11th, 2012 by aljohnston112.
aljohnston112's Avatar
aljohnston112
Unhatched Egg
 
Join Date: Jul 2010
Gender: Male
Nature: Naughty
So I'm trying to get a pokeball to disappear after you get the pokemon, but it reappears after you take one step away form it.

Here's the script


Spoiler:
#org 0x8EB0B30
'-----------------------------------
lock
checkflag 0x1000
if true jump 0x8EB0B80 ' Flag is set
disappear LASTTALKED
setflag FR_POKEMON
countpokemon
compare LASTRESULT 0x6
if == jump 0x8EB0B90 ' Equal To
addpokemon POLIWHIRL 5 NONE 0x0 0x0 0x0
setflag 0x1000
storepokemon 0x0 POLIWHIRL
message 0x8EB0BA0 ' It's Poliwhirl!
fanfare 0x101
showmsg
waitfanfare
release
end

#org 0x8EB0B80
'-----------------------------------
release
end

#org 0x8EB0B90
'-----------------------------------
msgbox 0x8EB0BB0 ' You don't have enoug...
callstd MSG_NOCLOSE ' Non-closing message
release
' Release commands close any open messages
end


#org 0x8EB0BA0
= It's Poliwhirl!

#org 0x8EB0BB0
= You don't have enough room in your party.



I have tried other commands, too.
I've tried applymovement @wherever, disappear 0x1, but they all do the same thing, which is let the pokeball reappear after you step away.

Oh yea, I'm using pksv as my editor of choice.
__________________
Courage is not the absence of fear. Courage is the overcoming of fear.
  #6564    
Old March 11th, 2012 (06:21 PM).
DrFuji's Avatar
DrFuji
Helfen, Wehren, Heilen
Community Supporter
 
Join Date: Sep 2009
Location: Downia-upside
Age: 22
Gender: Male
Nature: Jolly
Quote originally posted by aljohnston112:
So I'm trying to get a pokeball to disappear after you get the pokemon, but it reappears after you take one step away form it.

Here's the script


#org 0x8EB0B30
'-----------------------------------
lock
checkflag 0x1000
if true jump 0x8EB0B80 ' Flag is set
disappear LASTTALKED
setflag FR_POKEMON
countpokemon
compare LASTRESULT 0x6
if == jump 0x8EB0B90 ' Equal To
addpokemon POLIWHIRL 5 NONE 0x0 0x0 0x0
setflag 0x1000
storepokemon 0x0 POLIWHIRL
message 0x8EB0BA0 ' It's Poliwhirl!
fanfare 0x101
showmsg
waitfanfare
release
end

#org 0x8EB0B80
'-----------------------------------
release
end

#org 0x8EB0B90
'-----------------------------------
msgbox 0x8EB0BB0 ' You don't have enoug...
callstd MSG_NOCLOSE ' Non-closing message
release
' Release commands close any open messages
end


#org 0x8EB0BA0
= It's Poliwhirl!

#org 0x8EB0BB0
= You don't have enough room in your party.


I have tried other commands, too.
I've tried applymovement @wherever, disappear 0x1, but they all do the same thing, which is let the pokeball reappear after you step away.

Oh yea, I'm using pksv as my editor of choice.
When you want to make somebody/ something disappear for good you need to set a flag at some point in your script (which you have done with flag 0x1000). The OW is reappearing because you have not set its 'Person ID' to this flag that you have set. Basically, to prevent the Pokeball from reappearing, set its Person ID number to 1000 in Advance Map.
__________________
  #6565    
Old March 11th, 2012 (06:33 PM).
aljohnston112's Avatar
aljohnston112
Unhatched Egg
 
Join Date: Jul 2010
Gender: Male
Nature: Naughty
It worked!
Thanks.
Does that mean that whenever you make a flag that you have to set it to an event?
__________________
Courage is not the absence of fear. Courage is the overcoming of fear.
  #6566    
Old March 11th, 2012 (06:59 PM).
DrFuji's Avatar
DrFuji
Helfen, Wehren, Heilen
Community Supporter
 
Join Date: Sep 2009
Location: Downia-upside
Age: 22
Gender: Male
Nature: Jolly
Quote originally posted by aljohnston112:
It worked!
Thanks.
Does that mean that whenever you make a flag that you have to set it to an event?
Nope. Only put a flag number in the Person ID box if you wish for them to disappear forever :)
__________________
  #6567    
Old March 12th, 2012 (06:56 AM).
aljohnston112's Avatar
aljohnston112
Unhatched Egg
 
Join Date: Jul 2010
Gender: Male
Nature: Naughty
Quote originally posted by DrFuji:
Nope. Only put a flag number in the Person ID box if you wish for them to disappear forever
Does the same go with making someone stay in a different spot after an event?
Sorry about all the questions. :D
__________________
Courage is not the absence of fear. Courage is the overcoming of fear.
  #6568    
Old March 12th, 2012 (04:42 PM).
Rumille's Avatar
Rumille
Togepi
 
Join Date: Feb 2012
Gender: Male
Quote:
'-----------------------
#org 0x80061E
msgbox 0x88006E8 '"Wait! Wait! Wait!"
applymovement MOVE_PLAYER 0x88006C3
pause 0x30
msgbox 0x880063F '"You can't go out there\nwithout you..."
applymovement MOVE_PLAYER 0x880063B
setfarbyte 0x13 0xE3D3FFFE


'-----------
' Movements
'-----------
#org 0x8006C3
#raw 3 'Face Right
#raw FE 'End of Movements

#org 0x80063B
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw FE 'End of Movements


'---------
' Strings
'---------
#org 0x8006E8
= Wait! Wait! Wait!

#org 0x80063F
= You can't go out there\nwithout your own Pokemon.\pWild Pokemon will hurt you.
I made this script to stop me from moving and then take a few staps back (you can only approach the script from the right). But when I pass the script, nothing happens and I can just continue walking. What is wrong?
  #6569    
Old March 12th, 2012 (09:45 PM).
miksy91's Avatar
miksy91
A GB/C Rom Hacker since 2010
 
Join Date: Oct 2008
Location: A small country in the North
Gender: Male
Nature: Relaxed
Quote originally posted by aljohnston112:
Does the same go with making someone stay in a different spot after an event?
Sorry about all the questions. :D
When someone is made to disappear, and has a flag, one 0 is changed into 1 in game's ram memory. When that particular bit (can be 0 or 1 naturally) is 1, person event won't show.

Same goes conversely - if people event has a flag and is not there when you check the map the first time, you know that the flag bit is set to 1.
To make that person appear, you've to set that bit to 0 (=clearbit [flag no]).
__________________
My Rom Hack




Learn how to hack GB/C games:

Check my GameBoy/Color hacking videos in Youtube
-The video set uses Pokemon Silver (U) rom for demonstrations
  #6570    
Old March 13th, 2012 (03:08 PM).
aljohnston112's Avatar
aljohnston112
Unhatched Egg
 
Join Date: Jul 2010
Gender: Male
Nature: Naughty
Already having trouble again. To be expected since I'm a noob :]
Anyway... using pksv still, I am trying to get 4 movements applied to 2 people. They both do their first move, but they both won't do their 2nd movements. Is there some kind of command I have to use to reset them so they can do a second movement?
Here's the script
Spoiler:
#org 0x8EB0C10
'-----------------------------------
lockall
applymovement 0x1 0X8EB0DD0
pause 0x10
msgbox 0x8EB0DE0
callstd MSG_LOCK
applymovement 0x3 0X8EB0DD0
pause 0x10
msgbox 0x8EB0DE0
callstd MSG_LOCK
applymovement 0x1 0X8EB0DD0
pause 0x10
msgbox 0x8EB0DE0
callstd MSG_LOCK
applymovement 0x3 0X8EB0DD0
pause 0x10
msgbox 0x8EB0DE0
callstd MSG_LOCK
releaseall
end

#org 0x8EB0DD0
M onspot_left

#org 0x8EB0DE0
= A

P.S. the text and movements are temporary.
__________________
Courage is not the absence of fear. Courage is the overcoming of fear.
  #6571    
Old March 14th, 2012 (06:22 AM).
aljohnston112's Avatar
aljohnston112
Unhatched Egg
 
Join Date: Jul 2010
Gender: Male
Nature: Naughty
Quote originally posted by Rumille:
I made this script to stop me from moving and then take a few staps back (you can only approach the script from the right). But when I pass the script, nothing happens and I can just continue walking. What is wrong?
Try adding a lock in the beginning?
__________________
Courage is not the absence of fear. Courage is the overcoming of fear.
  #6572    
Old March 14th, 2012 (07:26 AM).
Rumille's Avatar
Rumille
Togepi
 
Join Date: Feb 2012
Gender: Male
Quote originally posted by aljohnston112:
Try adding a lock in the beginning?
That just freezes it up. I cannot move anymore, the music keeps playing, but nothing happens.
  #6573    
Old March 14th, 2012 (08:57 AM).
Hacks0rus's Avatar
Hacks0rus
Monster Raving Looney
 
Join Date: Jul 2011
Gender: Male
Nature: Timid
Quote originally posted by Rumille:
That just freezes it up. I cannot move anymore, the music keeps playing, but nothing happens.
This is on a script event right? I always have trouble putting these in, and cant seem to find any place where there is a solution. I managed to find my own less than elegant solution and there probably is a better way to do it though

Anyway, the way I have my scripts is with a setvar0x(7000 or above) in at the end. I then put the var number in the var number box in A-map, and copy and paste the script offset into the map script under header, like in a level script. That usually gets rid of the freezing, but i'm sure there is a better way of doing this.
  #6574    
Old March 14th, 2012 (11:16 AM).
Magic's Avatar
Magic
キュウコン
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
Quote originally posted by aljohnston112:
Already having trouble again. To be expected since I'm a noob :]
Anyway... using pksv still, I am trying to get 4 movements applied to 2 people. They both do their first move, but they both won't do their 2nd movements. Is there some kind of command I have to use to reset them so they can do a second movement?
Here's the script
Spoiler:
#org 0x8EB0C10
'-----------------------------------
lockall
applymovement 0x1 0X8EB0DD0
pause 0x10
msgbox 0x8EB0DE0
callstd MSG_LOCK
applymovement 0x3 0X8EB0DD0
pause 0x10
msgbox 0x8EB0DE0
callstd MSG_LOCK
applymovement 0x1 0X8EB0DD0
pause 0x10
msgbox 0x8EB0DE0
callstd MSG_LOCK
applymovement 0x3 0X8EB0DD0
pause 0x10
msgbox 0x8EB0DE0
callstd MSG_LOCK
releaseall
end

#org 0x8EB0DD0
M onspot_left

#org 0x8EB0DE0
= A

P.S. the text and movements are temporary.
M onspot_left is turn left right?

If that's the case then the problem is quite obviously your pointers - all your pointers are set to 0x8EB0DD0, which is all 'turn left'. You haven't given them another movement option.


Quote originally posted by Rumille:
I made this script to stop me from moving and then take a few staps back (you can only approach the script from the right). But when I pass the script, nothing happens and I can just continue walking. What is wrong?

What is "setfarbyte 0x13 0xE3D3FFFE" doing in your script? Not convinced it belongs there.

Are you using a 'Script' tile event in Advance Map? If you haven't set a Var-Number it might not work.

For example - in A-Map put the Var-Number of the event to 7000, and make sure the Var-Value is 0000. This means that the script will activate when var 7000 is set to 0x0, so setting it (setvar 0x7000 0x1) in a different script later on would disable it.
  #6575    
Old March 14th, 2012 (01:31 PM). Edited March 14th, 2012 by Rumille.
Rumille's Avatar
Rumille
Togepi
 
Join Date: Feb 2012
Gender: Male
Quote:
'-----------------------
#org 0x800697
lock
msgbox 0x88007D4 '"Hold on!"
applymovement 0x1 0x88007A2
waitmovement 0x0
applymovement MOVE_PLAYER 0x88007D1
pause 0x30
msgbox 0x88007DE '"You need a Pokémon before you do an..."
release
end


'-----------
' Movements
'-----------
#org 0x8007A2
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw 13 'Step Right (Normal)
#raw FE 'End of Movements

#org 0x8007D1
#raw 3 'Face Right
#raw FE 'End of Movements


'---------
' Strings
'---------
#org 0x8007D4
= Hold on!

#org 0x8007DE
= You need a Pokémon before you do anything else. Follow me.
This is the current script that makes it freeze up. I'll go look into the setvar command, haven't used that yet. I'll let you know if it works.

Thanks for the replies!

Quick question about the setvar command (and setflag for that matter). How do you decide which number to use. You told me to use 7000 and the script seems to work (well, the messagebox doesn't but I'll be able to fix that I think), but how do I know what number to use? Are there numbers I cannot use? And if so, why not?
Closed Thread
Quick Reply

Sponsored Links
Thread Tools

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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 05:45 AM.