Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources

Notices
For all updates, view the main page.

Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.
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
  #626    
Old March 22nd, 2010 (06:42 PM).
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
um look at my tut (link in sig) OR read diegoisawesomes tut, because i think his might explain it better (if it's not that tut, it's thethethe's then, only replace "Pokescript/XSE" with "PKSV" and everything should work out ok...
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
  #627    
Old March 22nd, 2010 (06:55 PM).
Nosferatu_Alucard's Avatar
Nosferatu_Alucard
Beginning Trainer
 
Join Date: Jul 2009
Gender: Male
Actually, I have been using pksv. Great program too. But it was a bit unclear on event scripts that require walking over... Or maybe I'm missing the obvious.
  #628    
Old March 27th, 2010 (02:52 PM).
xxerox9009's Avatar
xxerox9009
Beginning Trainer
 
Join Date: Jan 2010
Location: Behind you.
Gender: Male
Nature: Relaxed
Umm hi I'm kind-of new to this scripting thing and I have a problem with scripts.

If I use a disappearing script like disappear 0x3 for example, the second I take a step in the game the sprite reappears and I can't move through it, so that gives me some problems.

I was also wondering how to do three other things.

1. Make a script activate the second a trainer battle ends
2. Make a script activate the second a wild pokemon battle ends
3. How to make a maptile change like a wall into a warp (or door) for example

If anyone could answer these I'd really appreciate it
  #629    
Old March 27th, 2010 (02:57 PM).
Alignment's Avatar
Alignment
Revered with the stars
 
Join Date: Mar 2010
Gender: Male
Nature: Lonely
Quote originally posted by xxerox9009:
Umm hi I'm kind-of new to this scripting thing and I have a problem with scripts.

If I use a disappearing script like disappear 0x3 for example, the second I take a step in the game the sprite reappears and I can't move through it, so that gives me some problems.

I was also wondering how to do three other things.

1. Make a script activate the second a trainer battle ends
2. Make a script activate the second a wild pokemon battle ends
3. How to make a maptile change like a wall into a warp (or door) for example

If anyone could answer these I'd really appreciate it
Make sure you set a flag after the "disappear" command, and in Advance Map set the person ID number to whatever the flag number was.

1) Use 0x1 for the "trainerbattle 0x0" part
2) ASM needed I believe unless your going to make an artificial Pokemon battle (a scripted battle).
3)I'm still learning that
  #630    
Old March 27th, 2010 (04:37 PM).
xxerox9009's Avatar
xxerox9009
Beginning Trainer
 
Join Date: Jan 2010
Location: Behind you.
Gender: Male
Nature: Relaxed
Thank you so much! That helps a lot :D
  #631    
Old March 27th, 2010 (04:51 PM).
Alignment's Avatar
Alignment
Revered with the stars
 
Join Date: Mar 2010
Gender: Male
Nature: Lonely
Quote originally posted by xxerox9009:
Thank you so much! That helps a lot :D
No problem
Just use the simple questions thread next time :D
  #632    
Old March 29th, 2010 (04:16 PM).
Ready4failure's Avatar
Ready4failure
my friends and i on youtube...
 
Join Date: Mar 2010
Location: NY, USA
Age: 21
Gender: Male
Nature: Lonely
I have a small problem that I'm sure has happened to others before. I have a person telling the history of the town i made, and, as expected, it is quite long. When the person says it, the lines don't run right, they get cut off and overlapped instead of the conventional text.
(i.e "the history of this town is rather sad. the people say that" would look like
"The history of this town is rather (starts at the beginning of the line again) ple say that"
instead of
"The history of this town is rather
sad. the people say that"

I really need to fix this so I can actually make my hack (which WILL be awesome >.<). Anyone know how to fix this?
  #633    
Old March 29th, 2010 (05:02 PM).
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
yea, the simple fix is to use XSE and it's text converter, which will insert line breaks for you.
The other, and better option is to learn how to control the line breaks yourself. Hint: the approximate character limit is 30 per line on the textbox, and each "box" has two lines at a time...
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
  #634    
Old March 29th, 2010 (06:25 PM).
Ready4failure's Avatar
Ready4failure
my friends and i on youtube...
 
Join Date: Mar 2010
Location: NY, USA
Age: 21
Gender: Male
Nature: Lonely
and what are you leading to? I tried opening the script and breaking the lines up, but that didn't work. Would you mind just spelling it out, I barely have the attention span to figure it out myself, but if you tell me, I'll remember forever.
  #635    
Old March 30th, 2010 (04:41 AM). Edited March 30th, 2010 by Full Metal.
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
err
Quote:
If you give a man a fish, he has food for a day. If you teach a man how to fish, he can have food for life.
I would recommend reading a scripting tutorial.
Any of them will work for what you are doing, but since you seem to be using PKSV, i would look at my thread here or the PDF tut that score_under posted (check first post)
^--^
that was teaching you how to fish.
this is giving you a fish:
\n--makes a new line
\l--scrolls the bottom line up one, and generates a new line. \n must be used first
\p--makes a new box
(treat those like text)
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
  #636    
Old March 30th, 2010 (09:59 AM).
Nosferatu_Alucard's Avatar
Nosferatu_Alucard
Beginning Trainer
 
Join Date: Jul 2009
Gender: Male
Hi, me again with my questions. Can someone tell me how to create an event to use Mr. Briney's boat?
  #637    
Old March 30th, 2010 (12:56 PM).
Ready4failure's Avatar
Ready4failure
my friends and i on youtube...
 
Join Date: Mar 2010
Location: NY, USA
Age: 21
Gender: Male
Nature: Lonely
u kno, I was checking it earlier in study hall before I read this, and realized my mistake..... I was using a "/" instead of a "\". I felt so dumb. Thanks anyways. I'm sure others will benefit from this too! >.<
  #638    
Old March 30th, 2010 (03:06 PM).
A Peppermint Nightmare's Avatar
A Peppermint Nightmare
The Hitcher
 
Join Date: Mar 2010
Location: Michigan
Gender: Male
Nature: Modest
I'm really struggling with this scripting and admittedly this is the first time I've ever tried to use scripting, but you have to start somewhere. Anyways I was wondering if anyone could direct me to a place that will give step by step instructions and list of all programs I'd need. Full Metal I looked at your tutorial and it seemed easy enough to understand, but some how I am still struggling.
__________________
After the bright flash he fell and his wax wings melted away...
  #639    
Old March 30th, 2010 (03:38 PM).
Ready4failure's Avatar
Ready4failure
my friends and i on youtube...
 
Join Date: Mar 2010
Location: NY, USA
Age: 21
Gender: Male
Nature: Lonely
Now, I really hate to sound this desperate, but this is really annoying me. I'm trying to insert a Jirachi sprite for an Event Battle, since Jirachi's sprite is not an option. But, even through Overworld editor, I could not find out how for the life of me. So, anyone know how?
  #640    
Old March 30th, 2010 (04:08 PM).
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
err...-.-
there are tuts on this, and it's pretty off-topic...
@a pepper-mint nightmare-
The tools you need for scripting:
PKSV (or XSE/PKScript/hex editor, but thats a bit of a learning curve)
A-map (or Elitemap/ hex editor, again, there is a learning curve)
i don't think thats all ur confused with though...could you be more specific?
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
  #641    
Old March 30th, 2010 (04:22 PM).
Ready4failure's Avatar
Ready4failure
my friends and i on youtube...
 
Join Date: Mar 2010
Location: NY, USA
Age: 21
Gender: Male
Nature: Lonely
well, i feel a bit embarrassed about posting all my problems here, so i'll ask them on a dif thread geared toward it.
on a more on topic note, the script editor is really nice, slow people like me appreciate such programs.
  #642    
Old March 30th, 2010 (04:46 PM).
A Peppermint Nightmare's Avatar
A Peppermint Nightmare
The Hitcher
 
Join Date: Mar 2010
Location: Michigan
Gender: Male
Nature: Modest
Quote originally posted by Full Metal:
err...-.-
there are tuts on this, and it's pretty off-topic...
@a pepper-mint nightmare-
The tools you need for scripting:
PKSV (or XSE/PKScript/hex editor, but thats a bit of a learning curve)
A-map (or Elitemap/ hex editor, again, there is a learning curve)
i don't think thats all ur confused with though...could you be more specific?
I had a feeling I'd get that response not criticizng you at all I just couldn't figure out how to word my problem. I have Advance Map and open my Pokemon Emerald Rom through it and in it I go to "FROM HEADER" folder which opens another list that I open "LITTLEROOT TOWN" in that I open "LITTLEROOT TOWN (0.9)". After all that I click on the tab events and click open script. It then gives me a PKSV-UI - Error! "No ROM open!"

If I start in PKSV-UI I go into the ROM tab and click open ROM and select my Pokemon Emerald.GBA file, but everything is blank and I followed the tutorial you have posted. The thing is I don't understand on how to take what I type into PKSV-UI and transfer it into the rom.

Now I'm sure my problem is something simple for anyone who has the slightest bit of experience with these types of programs, but I'm new to them and have gotten lost.
__________________
After the bright flash he fell and his wax wings melted away...
  #643    
Old March 30th, 2010 (05:52 PM).
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
oh
just push F9 and copy the offset where your script begins, and paste it into an event space in a-map.
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
  #644    
Old March 30th, 2010 (08:34 PM).
A Peppermint Nightmare's Avatar
A Peppermint Nightmare
The Hitcher
 
Join Date: Mar 2010
Location: Michigan
Gender: Male
Nature: Modest
Quote originally posted by Full Metal:
oh
just push F9 and copy the offset where your script begins, and paste it into an event space in a-map.
I think its the offset that gets me confused how do I use it or find it? In the Advance Map under the events they have script offsets that start with $ and then letters and numbers how do I use that? How do I transfer my scripts in PKSV-UI to Advance Map?
__________________
After the bright flash he fell and his wax wings melted away...
  #645    
Old March 30th, 2010 (10:09 PM).
Nosferatu_Alucard's Avatar
Nosferatu_Alucard
Beginning Trainer
 
Join Date: Jul 2009
Gender: Male
Can anyone help me create a script to use Mr. Briney's boat? (Of course, using different movement patterns)
  #646    
Old March 31st, 2010 (11:23 AM).
A Peppermint Nightmare's Avatar
A Peppermint Nightmare
The Hitcher
 
Join Date: Mar 2010
Location: Michigan
Gender: Male
Nature: Modest
I think I'm starting to get a basic understanding of scripting I got my scripting in for one event to work; however, i tried enter two others and it made everything go crazy. Do I need to make a whole new script for every character I wish to give new dialogue?
#dynamic 0x740000
#org @start
lock
faceplayer
message @offset1
callstd MSG_NORMAL
release
end
#org @offset1
= My mom says I have A.D.D. and...\nHey look a flower!
#org @start
lock
faceplayer
message @offset2
callstd MSG_NORMAL
release
end
#org @offset2
= I want a cookie\nNo I'm not fat\nA*****E!
#org @start
lock
faceplayer
message @offset3
callstd MSG_NORMAL
release
end
#org @offset3
= D****t Jim I'm a doctor\nnot a physicist!\nYour not Jim?\nLeave me alone
That's what I have typed in and when I press F9 it gives me:
@start <-> 0x759EA6 (0xB bytes)
@offset1 <-> 0x8D4A27 (0x34 bytes)
@start <-> 0x8D4A5B (0xB bytes)
@offset2 <-> 0x8D6987 (0x28 bytes)
@start <-> 0x8D69AF (0xB bytes)
@offset3 <-> 0x9A67CF (0x46 bytes)
So I use the 8D4A27 for one persons offset script and 8D6987 for another and so on, but they don't work if I only have one in it works. Every time I go open my script up and edit it and press F9 it also gives me a new offset code why is this?
__________________
After the bright flash he fell and his wax wings melted away...
  #647    
Old March 31st, 2010 (01:16 PM).
score_under's Avatar
score_under
I program the *other* ASM.
 
Join Date: Aug 2005
Location: Hertfordshire, England
Age: 22
Nature: Rash
Quote originally posted by A Peppermint Nightmare:
I think I'm starting to get a basic understanding of scripting I got my scripting in for one event to work; however, i tried enter two others and it made everything go crazy. Do I need to make a whole new script for every character I wish to give new dialogue?
#dynamic 0x740000
#org @start
lock
faceplayer
message @offset1
callstd MSG_NORMAL
release
end
#org @offset1
= My mom says I have A.D.D. and...\nHey look a flower!
#org @start
lock
faceplayer
message @offset2
callstd MSG_NORMAL
release
end
#org @offset2
= I want a cookie\nNo I'm not fat\nA*****E!
#org @start
lock
faceplayer
message @offset3
callstd MSG_NORMAL
release
end
#org @offset3
= D****t Jim I'm a doctor\nnot a physicist!\nYour not Jim?\nLeave me alone
That's what I have typed in and when I press F9 it gives me:
@start <-> 0x759EA6 (0xB bytes)
@offset1 <-> 0x8D4A27 (0x34 bytes)
@start <-> 0x8D4A5B (0xB bytes)
@offset2 <-> 0x8D6987 (0x28 bytes)
@start <-> 0x8D69AF (0xB bytes)
@offset3 <-> 0x9A67CF (0x46 bytes)
So I use the 8D4A27 for one persons offset script and 8D6987 for another and so on, but they don't work if I only have one in it works. Every time I go open my script up and edit it and press F9 it also gives me a new offset code why is this?
1 - Try not to name offsets the same thing in PKSV, it doesn't usually end well (you were lucky in this case). It's best if you write each script separately though.
2 - You don't use the offsets of the text, you use the script offsets. You'd use "0x759EA6", "0x8D4A5B", and "0x8D69AF" in this case.
3 - You get a new offset each time you press F9 because PKSV finds free space to write the script to. If you have already written the script to that space, then it's no longer free So next time it compiles, it finds some other free space.
4 - \n moves down a line, \p clears the box and moves to the top of the box, and \l (\L lowercase) stays on the same line but scrolls the existing text in the box up one line.
You would write text like this:
= Hi.\nIs that a POK\eDEX?\p[.]\pWow, can I see the POK\eMON\nyou've caught?\lReally?
(\e is é, [.] is ...)
Try that text, and see what the different line commands do.
__________________
Plz not to PM me, I don't come here often enough. Email if you need me
  #648    
Old March 31st, 2010 (01:17 PM).
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
...are those two separate events?
er...just copy the @start offsets....
oh yea btw
@Nosferatu_Alucard- If somebody's not replied to you, then shut up and learn how to be patient; it's a virtue. Anyways, we really really can't help people if they are not being specific. Have you decompiled the script and looked at it yourself? I don't hack ruby, saphire or emerald (usually) so i don't know it off the top of my head. You do that, and report back or see if somebody else who can script would be your crutch. another idea is to get another person who won't script, and see if you can put ur heads together and figure it out on your own.
*edit*LOL, while i was ranting score_under beat me to the post XD
*edit2* and also, score_under probably said it bettererer
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
  #649    
Old March 31st, 2010 (09:03 PM).
Nosferatu_Alucard's Avatar
Nosferatu_Alucard
Beginning Trainer
 
Join Date: Jul 2009
Gender: Male
Quote originally posted by Full Metal:
@Nosferatu_Alucard- If somebody's not replied to you, then shut up and learn how to be patient; it's a virtue. Anyways, we really really can't help people if they are not being specific. Have you decompiled the script and looked at it yourself? I don't hack ruby, saphire or emerald (usually) so i don't know it off the top of my head. You do that, and report back or see if somebody else who can script would be your crutch. another idea is to get another person who won't script, and see if you can put ur heads together and figure it out on your own.
Please excuse my lack of etiquette. I was merely ensuring my query was not forgotten. aside from that, I guess I could have a little more patience.

The event I want to replicate is after you get your first badge and recieve a letter that needs to be given to Steven, you need the help of Mr. Briney to get to Dewford Town. I want to know how to script the player getting into the boat, crossing a body of water in the boat, then landing on shore.
*btw: I did look at the script myself, and this is what is confusing me... besides the dialogue, I see nothing linking to the boat. Everything else is linked to a bunch of flags, and I am afraid that everything I need is stored in those...
  #650    
Old April 1st, 2010 (04:09 AM).
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
yea, flags and specials if i was guessing, probably variables too.
i'm positive there's an applymovement or two in there as well.
*edit*-- that's not etiquette it's just not annoying the crap out of people.
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
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:51 PM.