The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

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.


Advertise here

Reply
 
Thread Tools
  #26    
Old September 12th, 2013, 03:48 PM
manadhon's Avatar
manadhon
RTX-008L
 
Join Date: May 2013
Location: Khazad-dûm
Age: 16
Gender: Male
Nature: Lax

Advertise here
Manadhon to the rescue again.

Rewritten and tested:
Code:
#dyn 0x740002
#org @main
lock
faceplayer
checkflag FR_POKEMON
if == jump @End
message @Text 
callstd MSG_YESNO
compare LASTRESULT YES
if == jump @Give_Torchic
jump @No

#org @No
message @Nope
callstd MSG_NORMAL
release
end 

#org @Give_Torchic
countpokemon
compare LASTRESULT 0x6
if < call @Give
message @Room
callstd MSG_NORMAL
release
end

#org @Give
addpokemon TORCHIC 5 NONE 0 0 0
fanfare 0x101
message @Get_Msg
callstd MSG_NOCLOSE
waitfanfare
closemsg
message @Nikname
callstd MSG_YESNO
compare LASTRESULT YES
if == call @Yes
setflag FR_POKEMON
release
end

#org @End
message @Around
callstd MSG_NORMAL
release
end

#org @Yes
fadescreen FADEOUT_BLACK
special NAME_POKEMON
waitspecial
setflag FR_POKEMON
return

#org @Text
= ????: Hey, kid! I got this\nrare Pok\emon, and, well,\ldo you want it?

#org @Nope
= ????: Hmph...\pI hope you know you're missing\nout on the chance of a lifetime.

#org @Room
= ????: What, you don't even have\nroom? Come back when you do.

#org @Around
= ????: I got that in Hoenn,\nso don't worry about me stealing\lit or anything. Maybe I'll see\lyou around.

#org @Get_Msg
= \v\h01 recieved a Torchic!

#org @Nikname
= Would you like to give\nTorchic a nickname?
To start off, make sure your checkflag is at the beginning of the script. Instead of using if twice, use compare LASTRESULT for yes (or no) and jump for the opposite. Don't use :end unless you have a message prepared. Otherwise, jump to another offset (like myself).
The storepokemon command is unnecessary, since you're only using one Pokemon. The showmsg and waitbutton are unnecessary as well, just use callstd. Lastly, there was no pointer to noroom-msg.

Modify the script to your needs, and feel free to ask if you have any further questions and/or problems.
__________________
"You can't lie to the Moon!"

Active member of Team Silver Destiny
Reply With Quote
  #27    
Old September 13th, 2013, 07:26 AM
graphicsturtle123's Avatar
graphicsturtle123
 
Join Date: Sep 2013
Gender: Female
I'm making a new script where you have to pay 10 pokedollars to get a pokemon but when I compile it a message comes up saying extra characters on line ignoring. What am I doing wrong?

Last edited by graphicsturtle123; September 13th, 2013 at 12:26 PM.
Reply With Quote
  #28    
Old September 17th, 2013, 09:33 PM
superluke's Avatar
superluke
 
Join Date: Sep 2013
I copied the script that dragon456 used but when i ran it i found my self not at victory road but at silph co. dose any one know what went wrong?
Reply With Quote
  #29    
Old September 18th, 2013, 01:04 PM
manadhon's Avatar
manadhon
RTX-008L
 
Join Date: May 2013
Location: Khazad-dûm
Age: 16
Gender: Male
Nature: Lax
I'm going to address both of you:

Graphicsturtle123: Send me the script, and I'll help you

Superluke: use Advance Map for map values. If that doesn't help, contact me.
__________________
"You can't lie to the Moon!"

Active member of Team Silver Destiny
Reply With Quote
  #30    
Old September 19th, 2013, 10:03 AM
graphicsturtle123's Avatar
graphicsturtle123
 
Join Date: Sep 2013
Gender: Female
Quote:
#dyn 0x740004
#org @main
lock
faceplayer
checkflag FR_POKEMON
if == jump @End
showmoney 0x0 0x0
message @Text
callstd MSG_YESNO
compare LASTRESULT YES
if == jump @Check Money
jump @No

#org @No
message @Nope
callstd MSG_NORMAL
release
end

#org @Check Money
checkmoney 0x10 0x0 0x0
compare LASTRESULT 0x1
if == jump @Give_Oshawott
jump @nomoney

#org @Give_Oshawott
countpokemon
compare LASTRESULT 0x6
if < call @Give
message @Room
callstd MSG_NORMAL
release
end

#org @nomoney
message @notenoughmoney
release
end

#org @Give
addpokemon MAGIKARP 5 NONE 0 0 0
fanfare 0x101
message @Get_Msg
callstd MSG_NOCLOSE
waitfanfare
closemsg
message @Nikname
callstd MSG_YESNO
compare LASTRESULT YES
if == call @Yes
setflag FR_POKEMON
paymoney 10 0
updatemoney 0 0 0
hidemoney 0 0
release
end

#org @End
message @Around
callstd MSG_NORMAL
release
end

#org @Yes
fadescreen FADEOUT_BLACK
special NAME_POKEMON
waitspecial
setflag FR_POKEMON
return

#org @Text
= ????: Hey, kid! I got this\nrare Pok\emon, and, well,\ldo you want it?

#org @Nope
= ????: Hmph...\pI hope you know you're missing\nout on the chance of a lifetime.

#org @Room
= ????: What, you don't even have\nroom? Come back when you do.

#org @Around
= ????: What are you saying? /p It's not an OSHAWOTT? /n Well it is what it is, and you/ponly paid $10 for it - what do you expect?

#org @Get_Msg
= \v\h01 recieved an OSHAWOTT!

#org @Nikname
= Would you like to give\nOshawott a nickname?

#org @notenoughmoney
= ????: You have some cheek, /pcoming here and then not buying my /nthings[.]
This is it.....................
Reply With Quote
  #31    
Old November 10th, 2013, 05:34 AM
ContestTrainer
 
Join Date: Oct 2011
Gender: Female
Hey I made this script for the normal pokedex but everytime I make my character go get it, they obtain it but then the game just freezes its very upsetting, could you Please show me what I'm doing wrong. Thank you!

#dyn 0x740000
#org @start
'-----------------------------------
message 0x87402DB ' You've stolen a Poke...
callstd MSG_LOCK ' Built-in lock command
special 0x829
release
end


#org 0x87402DB
= You've stolen a Pokedex!
Reply With Quote
  #32    
Old April 4th, 2014, 01:25 PM
Terff's Avatar
Terff
the unimportant
 
Join Date: Nov 2013
Location: Gallifrey
Age: 16
Gender: Male
Nature: Quirky
So I've been working on scripting Leaf green and I can't find the offset for the champion battle, I want to edit his text but I just can't find the offset anywhere.
__________________
RAH RAH RAH LADIDARAA
STEEL TYPE SAFARI
-Ferrothorn
-Metang
-Klefki
Heres my Y FC:
4184 2997 2224 PM me before you add me

PM me for safaris I'm looking for! (I got a bunch)
Reply With Quote
  #33    
Old April 6th, 2014, 08:57 PM
Flower's Avatar
Flower
ワイルドフラワー
 
Join Date: Nov 2013
Location: Void
Gender: Male
Nature: Quiet
Send a message via Skype™ to Flower
Quote:
Originally Posted by Terff View Post
So I've been working on scripting Leaf green and I can't find the offset for the champion battle, I want to edit his text but I just can't find the offset anywhere.
I don't know if this helps. Go to advance map, go the the place where the champion is, click the champion, copy the offset or open offset.
__________________
PM | Flower | VM
Reply With Quote
  #34    
Old April 22nd, 2014, 08:08 AM
The Void's Avatar
The Void
Comforter, philosopher, and lifelong mate
 
Join Date: May 2010
Location: Aboard the ship of Theseus
Gender: Male
Nature: Calm
Alright, so I updated this thing, and added two more tutorials. Any and all questions are always welcome.
__________________
NEMO VIR EST QUI MUNDUM NON REDDAT MELIOREM.
Reply With Quote
  #35    
Old June 23rd, 2014, 09:11 PM
quil09's Avatar
quil09
Whaaaaaaat?
 
Join Date: Aug 2012
Location: Philippines
Gender: Male
Nature: Quiet
can you give us a list of commands in pksv and how do i use reappear and disappear
because when i used the disappear it reappears and when i used reappear it wont appear
__________________
Reply With Quote
  #36    
Old June 24th, 2014, 07:14 AM
AkameTheBulbasaur's Avatar
AkameTheBulbasaur
Akame Marukawa of Iyotono
 
Join Date: May 2013
Location: A place
Age: 17
Gender: Female
Nature: Relaxed
Quote:
can you give us a list of commands in pksv and how do i use reappear and disappear
because when i used the disappear it reappears and when i used reappear it wont appear
I don't know too much about the "reappear" command, but I can help you with "disappear."

When you want a sprite on the map to disappear after a certain event, like being talked to, you need to know the Person Event Number. You can find this by going on Advancemap, clicking the events tab and clicking the person event in question. If you look to the right you'll see a list of information. The Person Event Number should be displayed underneath the "delete event" button.

Once you have that, you need to write the script. For the disappearing part, I usually go with this:

Fadescreen FADEOUT_BLACK
disappear 0x(Person Event Number)
fadescreed FADEIN_BLACK


I do this because it looks better in game, but the fade screens aren't too important. The next thing you need to do is make the event stay gone once it disappears. For that, you'll need to set a flag.

setflag 0x###

That number can be anything, just remember to write it down because that number can't be used for any other flag. After you've set the flag, just click on the Person Event you want to disappear and find the Person ID. It should be close to the "open script" button. Set the person ID to the number of the flag you set and BOOM! Your person should stay gone after the script ends.

I'm sorry I can't help you with reappearing, but my guess is that it would use the same concepts at disappear.
__________________
"The human sacrificed himself, to save the Pokemon. I pitted them against each other, but not until they set aside their differences did I see the true power they all share deep inside. I see now that the circumstances of one's birth are irrelevant; it is what you do with the gift of life that determines who you are." -Mewtwo
Reply With Quote
  #37    
Old June 25th, 2014, 04:51 AM
quil09's Avatar
quil09
Whaaaaaaat?
 
Join Date: Aug 2012
Location: Philippines
Gender: Male
Nature: Quiet
Quote:
Originally Posted by AkameTheBulbasaur View Post
I don't know too much about the "reappear" command, but I can help you with "disappear."

When you want a sprite on the map to disappear after a certain event, like being talked to, you need to know the Person Event Number. You can find this by going on Advancemap, clicking the events tab and clicking the person event in question. If you look to the right you'll see a list of information. The Person Event Number should be displayed underneath the "delete event" button.

Once you have that, you need to write the script. For the disappearing part, I usually go with this:

Fadescreen FADEOUT_BLACK
disappear 0x(Person Event Number)
fadescreed FADEIN_BLACK


I do this because it looks better in game, but the fade screens aren't too important. The next thing you need to do is make the event stay gone once it disappears. For that, you'll need to set a flag.

setflag 0x###

That number can be anything, just remember to write it down because that number can't be used for any other flag. After you've set the flag, just click on the Person Event you want to disappear and find the Person ID. It should be close to the "open script" button. Set the person ID to the number of the flag you set and BOOM! Your person should stay gone after the script ends.

I'm sorry I can't help you with reappearing, but my guess is that it would use the same concepts at disappear.
Thanks. This will help. I manage to know how to use the reappear
__________________
Reply With Quote
  #38    
Old August 13th, 2014, 07:08 PM
WAFFAHOUSE
 
Join Date: Aug 2014
Hey I'm currently making a rom hack of fire red and I've followed all your instructions on making a person give you the national dex and I can't get them to do anything but tell me they're gonna give me the dex... They never give it to me though. Please email me [email protected]. I really need to have national dex for my rom hack since I have so many pokes that won't evolve
Thanks!
Ps
Please messege me back I need you bad bro I've googled this for like two wks now and no luck until I ran upon your page... But still haven't fully got it down
Reply With Quote
  #39    
Old August 14th, 2014, 12:40 AM
WAFFAHOUSE
 
Join Date: Aug 2014
Quote:
Originally Posted by The Void View Post
Well, that's easy as well.

Just use this code:

Code:
special FR_NATIONAL_DEX
You can use that after your message saying that you'll upgrade his/her Pokedex. Example:

Code:
#dyn 0x740000
#org @main
lock
faceplayer
message @upgradepokedex
callstd MSG_NORMAL
special FR_NATIONAL_DEX
release
end

#org @upgradepokedex
= I'll upgrade your Pokedex for you.


Can you please elaborate. Is this a script generator thing? If so. Which steps do I take to get this done? Been trying for weeks
Reply With Quote
Reply
Quick Reply

Sponsored Links


Advertise here
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 11:41 AM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.