The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Emulation & ROM Hacking > Tutorials
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

Tutorials Looking for a guide to help you out? Then you're in the right place! We've got everything you need, ranging from Mapping to Music!
New threads in this forum are to be approved by a moderator before they are displayed. The thread revival limit does not apply 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: 15
Gender: Male
Nature: Lax
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: 15
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 2 Weeks Ago, 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 1 Week Ago, 08:57 PM
V.V's Avatar
V.V
ブラック
 
Join Date: Nov 2013
Location: Wall Maria
Gender: Male
Nature: Quiet
Send a message via Skype™ to V.V
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.
__________________

Current hack: ON HOLD
Reply With Quote
Reply
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 07:59 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.