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
  #2601    
Old December 6th, 2009 (08:46 AM).
DeusImp3riuM's Avatar
DeusImp3riuM
Beginning Trainer
 
Join Date: Nov 2009
Gender: Male
s there a way to make a follow script so when you move anther thing follows behind like in d/p/p in the forest with that girl but for FR
__________________
  #2602    
Old December 6th, 2009 (08:58 AM).
Late's Avatar
Late
Pokémon Artist
 
Join Date: Nov 2008
Location: "We all live in a Pokémon World!"
Age: 20
Gender: Male
Nature: Careful
Quote originally posted by DeusImp3riuM:
s there a way to make a follow script so when you move anther thing follows behind like in d/p/p in the forest with that girl but for FR
I think there's a way, but as I am not very good scripter, I don't know how.
As you follow when Prof. Oak walks, why couldn't you get someone to follow you?
__________________

Please feed my Pokémon and warm my eggs.
Thanks for everyone who have clicked these, you've helped me a lot

Anyone has Club Nintendo codes that you don't need? I want those.
If you have one code for me I can trade you my Explorers of Sky code as I can't put it because I have registered already one. (Registered my brother's game and now I can't register mine...) Someone have same thing? PM me.
I know there's nobody who wishes to do this xD
I'm talking about Club Nintendo of Europe.
  #2603    
Old December 6th, 2009 (10:55 AM).
amoliski's Avatar
amoliski
Beginning Trainer
 
Join Date: Jan 2009
Location: Williamsport PA
Age: 23
Gender: Male
Quote originally posted by Late:
I think there's a way, but as I am not very good scripter, I don't know how.
As you follow when Prof. Oak walks, why couldn't you get someone to follow you?
When you follow Prof. Oak, every move is scripted (move down, move down, move left) and is executed one after another. There may be a way, buy it would be different from the oak follow.

Ash493:
I had it in two strings but it didn't work there, so I collapsed it down.
Here is the script put back
Spoiler:
#dynamic 0x800000
#org @start
lock
msgbox @talk 0x6
setvar 0x8004 0xF
setvar 0x8005 0xF
setvar 0x8006 0xA
setvar 0x8007 0x5
special 0x136
pause 0x20
fadescreen 0x3
call @tiles
fadescreen 0x2
release
end

#org @tiles
setmaptile 0xD 0xF 0x236 0x0
setmaptile 0x12 0xE 0x9F 0x0
setmaptile 0x1A 0x0D 0x9F 0x0
setmaptile 0x15 0xE 0xB7 0x1
setmaptile 0x18 0xE 0xB7 0x1
special 0x8E
return

#org @talk
= Whaccha Know, It/n works!
  #2604    
Old December 6th, 2009 (12:56 PM).
Aether Noir's Avatar
Aether Noir
<(^.^<) (>^.^)>
 
Join Date: Feb 2009
Quote originally posted by Ash493:
Does it have assigned flag?
Maybe that flag was already used in game and that means that OW won't appear.
Well, I havent really used any flags other than 0x828 and 0x20 in my scripts, ( I'm not sure if the scripts pre-entered in the game are affecting this,) but I'm not sure how to assign a flag to a certain sprite, or how to really assign a flag at all.

Could you please explain?
__________________
Currently at the drawing board for my first hack, Wally's Legacy.


  #2605    
Old December 6th, 2009 (01:38 PM). Edited December 6th, 2009 by Shukumei.
Shukumei's Avatar
Shukumei
Teh Haxxorz
 
Join Date: Nov 2009
Location: Austin TX.
Gender: Male
Nature: Quiet
Quote originally posted by xmouvelianx:
Forgot to mention that
But most of the time, you don't need a release before an end.
Thats my point if you use level scripts and signposts
That is true. All I was saying is it doesn't hurt to put it in. If you're forgetful (like me) getting in the habit of putting release at the end of your scripts can save headaches and debugging time. I remember when I first started scripting I forgot to put release on a script for a script panel. Whenever I stepped on the panel the player locked and I thought the game froze. Took me weeks to figure out the problem.

Quote originally posted by Aether Noir:
Well, I havent really used any flags other than 0x828 and 0x20 in my scripts, ( I'm not sure if the scripts pre-entered in the game are affecting this,) but I'm not sure how to assign a flag to a certain sprite, or how to really assign a flag at all.

Could you please explain?
XSE's help file contains a list of the officially used flags. (The flags used in the main game.) If you're unsure about what flags are taken you should check the tutorial under the help menu. I'm not at my home computer right now so I can't tell you if those are already used although 0x828 seems familiar for some reason. As for assigning flags to sprites it's simple. when you create a person event in advance map there is a person ID number. If you enter the number (in hex) of a flag's adress in memory then when the flag is set the person will vanish and when cleared the person will come back.
__________________
(Enter clever observation here)
Shukumei's PokePet

Shade the level 50 Umbreon!
  #2606    
Old December 6th, 2009 (04:49 PM).
Aether Noir's Avatar
Aether Noir
<(^.^<) (>^.^)>
 
Join Date: Feb 2009
Quote originally posted by Shukumei:
That is true. All I was saying is it doesn't hurt to put it in. If you're forgetful (like me) getting in the habit of putting release at the end of your scripts can save headaches and debugging time. I remember when I first started scripting I forgot to put release on a script for a script panel. Whenever I stepped on the panel the player locked and I thought the game froze. Took me weeks to figure out the problem.



XSE's help file contains a list of the officially used flags. (The flags used in the main game.) If you're unsure about what flags are taken you should check the tutorial under the help menu. I'm not at my home computer right now so I can't tell you if those are already used although 0x828 seems familiar for some reason. As for assigning flags to sprites it's simple. when you create a person event in advance map there is a person ID number. If you enter the number (in hex) of a flag's adress in memory then when the flag is set the person will vanish and when cleared the person will come back.
First off, I know that 0x828 is the flag used for the Poke-Menu.
Secondly, I have learned that I should use flags over 1000

Therefore, if I use the flag 0x1000, if I want to assign that flag to a sprite, the Person ID should be 3E8? (the hex for 1000)
__________________
Currently at the drawing board for my first hack, Wally's Legacy.


  #2607    
Old December 6th, 2009 (05:05 PM).
Pokepal17's Avatar
Pokepal17
More cowbell~
 
Join Date: Oct 2008
Location: Steeltown
Age: 20
Gender: Male
Nature: Modest
Quote originally posted by Aether Noir:
First off, I know that 0x828 is the flag used for the Poke-Menu.
Secondly, I have learned that I should use flags over 1000

Therefore, if I use the flag 0x1000, if I want to assign that flag to a sprite, the Person ID should be 3E8? (the hex for 1000)
No, it should be 1000 because the flag 0x1000 is in hex as the 0x states it.
__________________
Pokémon Stardrop
  #2608    
Old December 7th, 2009 (10:30 AM). Edited December 7th, 2009 by Shukumei.
Shukumei's Avatar
Shukumei
Teh Haxxorz
 
Join Date: Nov 2009
Location: Austin TX.
Gender: Male
Nature: Quiet
Quote originally posted by Aether Noir:
First off, I know that 0x828 is the flag used for the Poke-Menu.
Secondly, I have learned that I should use flags over 1000

Therefore, if I use the flag 0x1000, if I want to assign that flag to a sprite, the Person ID should be 3E8? (the hex for 1000)
Quote originally posted by Pokepal17:
No, it should be 1000 because the flag 0x1000 is in hex as the 0x states it.
He's right. The prefix "0x" indicates that whatever comes next is in hex. so 0xA = 10, 0x3E8 = 1000 and 0x1000 = 4096. if you want to assign 0x1000 to a person just make their person ID 1000. (Because the person ID field is already in hex.)

Another thing to remember is that the disappearance and reappearance of sprites isn't instantanious. If you set the person ID flag they will still be there untill the player takes a step. To solve this problem follow it with a hidesprite command. For example a sprite with person ID 1000 and person event number 5 would disappear with

setflag 0x1000
hidesprite 5

And would be brought back with

clearflag 0x1000
showsprite 5
__________________
(Enter clever observation here)
Shukumei's PokePet

Shade the level 50 Umbreon!
  #2609    
Old December 9th, 2009 (06:57 AM).
rokrdude's Avatar
rokrdude
POKEMON : SINNOH QUEST CREATOR
 
Join Date: Oct 2009
Gender: Male
I want to make national dex (instead of normal region pokedex) available at the start of ruby game

What changes should i do in the script?


Originally Posted by Forgotten Memory


PokéScript
#raw 0x11 0x02 0x00 0x6B 0x02 0x02 0x11 0x03 0x01 0x6B 0x02 0x02
#raw 0x11 0xDA 0xBE 0x4E 0x02 0x02 0x11 0x67 0x5A 0x6A 0x02 0x02

XSE
writebytetooffset 0x2 0x2026B00
writebytetooffset 0x3 0x2026B01
writebytetooffset 0xDA 0x2024EBE
writebytetooffset 0x67 0x2026A5A


Not 100% sure but i think the xse commands are not valid for new version

Also i am using advance map and XSE as Script editor but i am not able to find the script where pokedex menu is activated.

Pls can someone tell me the correct commands and where to place it to activate
national dex in Ruby at the start!!!!
  #2610    
Old December 9th, 2009 (08:00 AM).
Tropical Sunlight's Avatar
Tropical Sunlight
The Faltine
 
Join Date: Mar 2008
Location: Slovenia
Age: 18
Gender: Male
Send a message via Windows Live Messenger to Tropical Sunlight
Quote originally posted by rokrdude:
I want to make national dex (instead of normal region pokedex) available at the start of ruby game

What changes should i do in the script?


Originally Posted by Forgotten Memory


PokéScript
#raw 0x11 0x02 0x00 0x6B 0x02 0x02 0x11 0x03 0x01 0x6B 0x02 0x02
#raw 0x11 0xDA 0xBE 0x4E 0x02 0x02 0x11 0x67 0x5A 0x6A 0x02 0x02

XSE
writebytetooffset 0x2 0x2026B00
writebytetooffset 0x3 0x2026B01
writebytetooffset 0xDA 0x2024EBE
writebytetooffset 0x67 0x2026A5A


Not 100% sure but i think the xse commands are not valid for new version

Also i am using advance map and XSE as Script editor but i am not able to find the script where pokedex menu is activated.

Pls can someone tell me the correct commands and where to place it to activate
national dex in Ruby at the start!!!!
Oh no... Forgotten Memory just told you...
Make a script, put that into it and then compile it. If you don't know how to make a script, I suggest reading diegoisawesome's XSE scripting tutorial.
__________________
  #2611    
Old December 9th, 2009 (08:16 AM). Edited December 9th, 2009 by rokrdude.
rokrdude's Avatar
rokrdude
POKEMON : SINNOH QUEST CREATOR
 
Join Date: Oct 2009
Gender: Male
Quote originally posted by H2O Turquoise:
Oh no... Forgotten Memory just told you...
Make a script, put that into it and then compile it. If you don't know how to make a script, I suggest reading diegoisawesome's XSE scripting tutorial.

Instead of creating a different script,isn't there any method so that instead of birch giving
regional dex he gives national dex( I mean any specials like there is one in firered)

If there is no other way can u tell me,pm me
can i put the 4 lines

writebytetooffset 0x2 0x2026B00
writebytetooffset 0x3 0x2026B01
writebytetooffset 0xDA 0x2024EBE
writebytetooffset 0x67 0x2026A5A

just after the one flag for shoes(in moms script ) is set
Will it work?


Btw thanks for replying
  #2612    
Old December 9th, 2009 (04:47 PM).
novluis323's Avatar
novluis323
Beginning Trainer
 
Join Date: Dec 2009
Gender: Male
k well what im tryin to do is on a certain point of the map a scientist i inserted wont let you leave unless you have a pokemon with you except im not quite sure would i still use some of the normal dialog script or would i have to get a whole new script help is greatly apperciated and this is what i have for it so far
'---------------
#org 0x169DEE
lock
faceplayer
msgbox 0x818EBE6 MSG_KEEPOPEN '"Remember to take one of your Partn..."
release
end


'---------
' Strings
'---------
#org 0x18EBE6
= Remember to take one of your Partners /nBefore heading out to look for
  #2613    
Old December 9th, 2009 (04:50 PM).
Pokepal17's Avatar
Pokepal17
More cowbell~
 
Join Date: Oct 2008
Location: Steeltown
Age: 20
Gender: Male
Nature: Modest
Quote originally posted by novluis323:
k well what im tryin to do is on a certain point of the map a scientist i inserted wont let you leave unless you have a pokemon with you except im not quite sure would i still use some of the normal dialog script or would i have to get a whole new script help is greatly apperciated and this is what i have for it so far
'---------------
#org 0x169DEE
lock
faceplayer
msgbox 0x818EBE6 MSG_KEEPOPEN '"Remember to take one of your Partn..."
release
end


'---------
' Strings
'---------
#org 0x18EBE6
= Remember to take one of your Partners /nBefore heading out to look for
You'd need a flag to check if the POkemon menu has been activated (0x828) and some movements for him. :3
__________________
Pokémon Stardrop
  #2614    
Old December 9th, 2009 (04:52 PM).
novluis323's Avatar
novluis323
Beginning Trainer
 
Join Date: Dec 2009
Gender: Male
Quote originally posted by Pokepal17:
You'd need a flag to check if the POkemon menu has been activated (0x828) and some movements for him. :3
ok how would i be able to do that the flag thing i never really understood how to do it or the movements themselfs can you give me some sort of example ive been looking for a tutorial and still cant find one
  #2615    
Old December 9th, 2009 (04:59 PM).
Pokepal17's Avatar
Pokepal17
More cowbell~
 
Join Date: Oct 2008
Location: Steeltown
Age: 20
Gender: Male
Nature: Modest
Quote originally posted by novluis323:
ok how would i be able to do that the flag thing i never really understood how to do it or the movements themselfs can you give me some sort of example ive been looking for a tutorial and still cant find one
All the commands and help stuff is included in the XSE guide and command help. Also, there's a tutorial by diegoisawesome which goes through a lot of scripting commands. Once you understand them, it's all about putting the together to make a custom script. :3
__________________
Pokémon Stardrop
  #2616    
Old December 9th, 2009 (05:04 PM).
novluis323's Avatar
novluis323
Beginning Trainer
 
Join Date: Dec 2009
Gender: Male
Quote originally posted by Pokepal17:
All the commands and help stuff is included in the XSE guide and command help. Also, there's a tutorial by diegoisawesome which goes through a lot of scripting commands. Once you understand them, it's all about putting the together to make a custom script. :3
Yup thanks i just found the tut. is it possible to set flags on floor tiles?
  #2617    
Old December 9th, 2009 (07:00 PM).
Pokepal17's Avatar
Pokepal17
More cowbell~
 
Join Date: Oct 2008
Location: Steeltown
Age: 20
Gender: Male
Nature: Modest
Quote originally posted by novluis323:
Yup thanks i just found the tut. is it possible to set flags on floor tiles?
Yes it is, and it's commonly used in most rom hacks.
__________________
Pokémon Stardrop
  #2618    
Old December 9th, 2009 (08:00 PM).
rokrdude's Avatar
rokrdude
POKEMON : SINNOH QUEST CREATOR
 
Join Date: Oct 2009
Gender: Male
Instead of creating a different script,isn't there any method so that instead of birch giving
regional dex he gives national dex( I mean any specials like there is one in firered) in ruby game

If there is no other way can anyone tell me

Can i put the 4 lines
writebytetooffset 0x2 0x2026B00
writebytetooffset 0x3 0x2026B01
writebytetooffset 0xDA 0x2024EBE
writebytetooffset 0x67 0x2026A5A
just after the one flag for shoes(in moms script ) is set

Will it work?

If not what else do i need to change in Script?
  #2619    
Old December 9th, 2009 (08:58 PM).
TB Pro's Avatar
TB Pro
Old-timer
 
Join Date: Nov 2004
Location: Midwestern USA
Age: 20
Gender: Male
Quote originally posted by rokrdude:
Instead of creating a different script,isn't there any method so that instead of birch giving
regional dex he gives national dex( I mean any specials like there is one in firered) in ruby game

If there is no other way can anyone tell me

Can i put the 4 lines
writebytetooffset 0x2 0x2026B00
writebytetooffset 0x3 0x2026B01
writebytetooffset 0xDA 0x2024EBE
writebytetooffset 0x67 0x2026A5A
just after the one flag for shoes(in moms script ) is set

Will it work?

If not what else do i need to change in Script?
no. Actually, yes, it probably will, but screw existing scripts. MAKE A NEW ONE! It's really easy and a waaayyyy better deal.
__________________
--I'm a creepin'..
  #2620    
Old December 9th, 2009 (09:19 PM).
Chaos Rush's Avatar
Chaos Rush
im sexy and i know it
 
Join Date: May 2007
Location: Taylor Swift
Gender: Male
Nature: Adamant
Okay, I'm using XSE, and this is my script I'm having trouble with:
Quote:
'---------------
#org 0x1E8091
lockall
call 0x81E80AD
releaseall
end

'---------------
#org 0x1E80AD
msgbox 0x81E8BB8 MSG_KEEPOPEN '"Insert text here lol"
closeonkeypress
movesprite 0x4 0xA 0xA
applymovement 0x4 0x81E80DF
waitmovement 0x4
msgbox 0x81E8C07 MSG_KEEPOPEN '"Insert more text here lololol"
waitmsg
pause 0x1E
applymovement 0x4 0x81E80EB
return


'---------
' Strings
'---------
#org 0x1E8BB8
= Insert text here lol

#org 0x1E8C07
= Insert more text here lololol


'-----------
' Movements
'-----------
#org 0x1E80DF
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x1E80EB
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0xFE 'End of Movements
The problem is that after the message, "Insert more text here lololol" appears, nothing happens. What should happen is that person #4 should start walking down, but I'm not sure why.

This is my first custom script, so tell me if I'm missing something.
  #2621    
Old December 9th, 2009 (09:23 PM).
rokrdude's Avatar
rokrdude
POKEMON : SINNOH QUEST CREATOR
 
Join Date: Oct 2009
Gender: Male
Quote originally posted by Jesse[TB Pro]:
no. Actually, yes, it probably will, but screw existing scripts. MAKE A NEW ONE! It's really easy and a waaayyyy better deal.
Sorry but its not working

The thing is if a edit the script and insert the 4 lines i dont get option to save
all i get is save as option which saves the script as rbc,rbh etc
How Im suppose to edit the script
pls help


2)How can we find and edit the the complete script of a game using advance map
(along with XSE as Script Editor)

I know how to look at the script of particular event or a map(but not the whole game)

The thing is I want to increase the price of going to safari zone but not able to find the script
  #2622    
Old December 9th, 2009 (09:47 PM).
colcolstyles's Avatar
colcolstyles
Yours truly
 
Join Date: May 2008
Location: The Bay Area
Gender: Male
Nature: Lonely
Quote originally posted by AztecFire:
The problem is that after the message, "Insert more text here lololol" appears, nothing happens. What should happen is that person #4 should start walking down, but I'm not sure why.
Looks like you're missing a 'waitmovement' after the second 'applymovement'. That would explain why the NPC isn't moving.
__________________

Brother of Vrai
  #2623    
Old December 9th, 2009 (11:18 PM).
rokrdude's Avatar
rokrdude
POKEMON : SINNOH QUEST CREATOR
 
Join Date: Oct 2009
Gender: Male
1) Thanks but can u post for ruby as well as im hacking ruby
(tried to search on emerald basis in ruby but no luck)

In Emerald: go to Route 121 and use the warp there to enter the Safari Zone gatehouse (23.0). There should be one green square labeled 'S' inside which you should decompile. Search the document for 0x1F4 and replace any instance of it with your new value (remember to convert to hex!).

How do i wrap to a position there isnt any wrap command given in script of 3 persons in safari zone entrance



2) Instead of creating a different script,isn't there any method so that instead of birch giving
regional dex he gives national dex( I mean any specials like there is one in firered) in ruby game

If there is no other way can anyone tell me

Can i put the 4 lines
writebytetooffset 0x2 0x2026B00
writebytetooffset 0x3 0x2026B01
writebytetooffset 0xDA 0x2024EBE
writebytetooffset 0x67 0x2026A5A
just after the one flag for shoes(in moms script ) is set


The thing is if a edit the script and insert the 4 lines i dont get option to save
all i get is save as option which saves the script as rbc,rbh etc
How Im suppose to edit the script
pls help
  #2624    
Old December 10th, 2009 (12:05 AM).
Chicken Bones
Hacks 4 fun
 
Join Date: Nov 2009
Ok I'm trying to make a script where the player can move during it. (To be more precise where a sprite follows you). I am only one step away from success.

I can't let the player move until the end command. I have tried all manner of level scripts etc.

Here is a test. I wan't to be able to move during the script so for about 3 secs during the pauses. (Whole script)

Spoiler:
#org 0x803B16
releaseall
pause 0x30
spriteinvisible 0xFF 0xE 0xC
pause 0x30
spritevisible 0xFF 0xE 0xC
end


please tell me how to let the player move during execution.
  #2625    
Old December 10th, 2009 (12:29 AM).
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL
Im comin' home...
Community Supporter Tier 1
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 22
Gender: Male
Nature: Gentle
Quote originally posted by Chicken Bones:
Ok I'm trying to make a script where the player can move during it. (To be more precise where a sprite follows you). I am only one step away from success.

I can't let the player move until the end command. I have tried all manner of level scripts etc.

Here is a test. I wan't to be able to move during the script so for about 3 secs during the pauses. (Whole script)

Spoiler:
#org 0x803B16
releaseall
pause 0x30
spriteinvisible 0xFF 0xE 0xC
pause 0x30
spritevisible 0xFF 0xE 0xC
end


please tell me how to let the player move during execution.
Do not ask the same thing in 2 threads, I should have answered this one, but I answered your question in the other thread.

Next time, only ask in THIS thread.
__________________
>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...

>
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 12:51 AM.