Community

The PokéCommunity

We are still working on a better slogan!

Visit Index



Advertise here

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

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
  #3776    
Old May 4th, 2010, 01:50 PM
Nikolai Fox's Avatar
Nikolai Fox
 
Join Date: Mar 2010
Gender: Male

Advertise here
Thanks again peregrin! For the fadesong too, was still wondering about that.

The ASM thing just went way over my head

I'm not after making a specific battle play a song, I'd be happy to just change the song of one class, as there are already loads of "spare" classes from r/s.
  #3777    
Old May 4th, 2010, 02:08 PM
Shiny Quagsire's Avatar
Shiny Quagsire
どないやねん, ヤドン
 
Join Date: May 2009
Location: Hoenn Safari Zone
Age: 16
Gender: Male
Nature: Jolly
Quote:
Originally Posted by Giga Universe View Post


Umm, because you can't write to the ROM? You wouldn't be able to make a script that does this. Remember, you can ONLY write to the RAM.
So, how could I write to the ROM? I don't mind a little ASM. (What did it ever do to me?)



  #3778    
Old May 4th, 2010, 04:51 PM
PeregrineFig's Avatar
PeregrineFig
Starting Pokémon Obsidian
 
Join Date: Feb 2010
Location: Michigan, USA
Age: 20
Gender: Male
Nature: Hardy
Quote:
Originally Posted by Nikolai Fox View Post
Thanks again peregrin! For the fadesong too, was still wondering about that.

The ASM thing just went way over my head

I'm not after making a specific battle play a song, I'd be happy to just change the song of one class, as there are already loads of "spare" classes from r/s.
The RSE classes have regular battle music, they didn't bother to make them retain their special songs in FRLG. So, say you changed the Leader class to something else. The new class would have the gym leader battle music, but if you made a new Leader class or used the RSE one, you'd get regular battle music. There's no non-ASM way around this, unfortunately.

Now I have a question. I tried to optimize my headbutt tree script. I'm using JPAN's hacked engine, and have variables that should make a pokemon sometimes fall out of the tree sleeping, with a setvar after the battle to counterbalance it, so you won't find a sleeping pokemon in the grass after not getting a headbutt tree pokemon. The problem is, I've tested it over and over and the pokemon is NEVER asleep. Is there any obvious problem with this script and the part dealing with vars 8004 or 8005?

Spoiler:

#dynamic 0x740000
#org @start
lockall
textcolor 0x3
msgbox @string1 0x4
checkattack 0x1D
compare 0x800D 0x6
if 0x1 goto @snippet1
goto @snippet2

#org @snippet1
closeonkeypress
releaseall
end

#org @snippet2
setanimation 0x0 0x800D
bufferpartypokemon 0x0 0x800D
bufferattack 0x1 0x1D
msgbox @string2 0x5
compare 0x800D 0x1
if 0x0 goto @snippet3
msgbox @string3 0x4
closeonkeypress
doanimation 0x25
waitstate
setvar 0x8004 0x1
setvar 0x8005 0x1
setvar 0x8006 0xC
setvar 0x8007 0x2
sound 0xD
special 0x136
random 0x5
compare 0x800D 0x5
if 0x1 call @snippet4
pause 0x20
special 0xAB
compare 0x800D 0x0
if 0x1 goto @snippet5
waitstate
setvar 0x8005 0x0
releaseall
end

#org @snippet3
releaseall
end

#org @snippet4
setvar 0x8004 0x1
setvar 0x8005 0x7
return

#org @snippet5
setvar 0x8005 0x0
random 0x4
compare 0x800D 0x0
if 0x1 call @snippet6
releaseall
end

#org @snippet6
random 0x9
compare 0x800D 0x0
if 0x1 call @snippet7
compare 0x800D 0x1
if 0x1 call @snippet8
compare 0x800D 0x2
if 0x1 call @snippet9
compare 0x800D 0x3
if 0x1 call @snippet10
compare 0x800D 0x4
if 0x1 call @snippet11
compare 0x800D 0x5
if 0x1 call @snippet12
compare 0x800D 0x6
if 0x1 call @snippet13
compare 0x800D 0x7
if 0x1 call @snippet14
compare 0x800D 0x8
if 0x1 call @snippet15
compare 0x800D 0x9
if 0x1 call @snippet16
bufferitem 0x0 0x400A
additem 0x400A 0x1
fanfare 0x13E
preparemsg @string4
waitmsg
waitfanfare
return

#org @snippet7
setvar 0x400A 0x85
return

#org @snippet8
setvar 0x400A 0x86
return

#org @snippet9
setvar 0x400A 0x87
return

#org @snippet10
setvar 0x400A 0x88
return

#org @snippet11
setvar 0x400A 0x89
return

#org @snippet12
setvar 0x400A 0x8A
return

#org @snippet13
setvar 0x400A 0x8B
return

#org @snippet14
setvar 0x400A 0x8C
return

#org @snippet15
setvar 0x400A 0x8D
return

#org @snippet16
setvar 0x400A 0x8E
return

#org @string1
= A POKéMON could be in this tree.

#org @string2
= Would you like to use \v\h03?

#org @string3
= \v\h02 used \v\h03!

#org @string4
= \v\h01 found one \v\h02!
Current Projects:
POKéMON AQUA SAPPHIRE
POKéMON OBSIDIAN


Last edited by PeregrineFig; May 4th, 2010 at 04:58 PM. Reason: Your double post has been automatically merged.
  #3779    
Old May 5th, 2010, 02:04 AM
Nikolai Fox's Avatar
Nikolai Fox
 
Join Date: Mar 2010
Gender: Male
Why would a pokemon still be asleep after falling out of a tree?

I found his music tutorial. I did not understand it what so ever =/
  #3780    
Old May 5th, 2010, 05:33 AM
I-Like-Shiny-Pichu's Avatar
I-Like-Shiny-Pichu
Eevee
 
Join Date: Mar 2010
Location: Somewhere that might be near you, but most likely isn't.
Age: 19
Gender: Female
Nature: Lonely
Right, what I would like to know is if it is possible to make a script that you talk to a person and then the Hero OW changes. If it is possible please let me know how Thanks for reading





Yandere and proud!

HCF

Co-Admin of HCF & TCC
  #3781    
Old May 5th, 2010, 10:59 AM
PeregrineFig's Avatar
PeregrineFig
Starting Pokémon Obsidian
 
Join Date: Feb 2010
Location: Michigan, USA
Age: 20
Gender: Male
Nature: Hardy
Quote:
Originally Posted by I-Like-Shiny-Pichu View Post
Right, what I would like to know is if it is possible to make a script that you talk to a person and then the Hero OW changes. If it is possible please let me know how Thanks for reading
If you happen to be using JPAN's FR hacked engine, you can just set a variable (forgot which one, read his instruction manual document) to the index number of the new OW in the script. If not, the only way is with ASM.
Current Projects:
POKéMON AQUA SAPPHIRE
POKéMON OBSIDIAN

  #3782    
Old May 5th, 2010, 07:22 PM
Shiny Quagsire's Avatar
Shiny Quagsire
どないやねん, ヤドン
 
Join Date: May 2009
Location: Hoenn Safari Zone
Age: 16
Gender: Male
Nature: Jolly
Ok, while I was making a medium sized script, I encountered an annoying error. Instead of saying the regulat text, is say: qAF qAF qAF qAF qAF qAF qAF qAF qAF qAF qAF qAF qAF. Why does it do this?



  #3783    
Old May 5th, 2010, 09:07 PM
TheChroniclesofLance's Avatar
TheChroniclesofLance
Beginning Trainer
 
Join Date: Apr 2010
Gender: Male
Is there an expanded version of Advanced Text out for LeafGreen?
  #3784    
Old May 5th, 2010, 09:35 PM
Binary's Avatar
Binary
え?
 
Join Date: Aug 2007
Age: 20
Quote:
Originally Posted by shiny quagsire View Post
Ok, while I was making a medium sized script, I encountered an annoying error. Instead of saying the regulat text, is say: qAF qAF qAF qAF qAF qAF qAF qAF qAF qAF qAF qAF qAF. Why does it do this?
Post the script. It could be a problem with the script. Or you could open the compiled script with XSE and see if there's anything wrong.
Quote:
Originally Posted by TheChroniclesofLance View Post
Is there an expanded version of Advanced Text out for LeafGreen?
No?
  #3785    
Old May 6th, 2010, 05:53 AM
Shiny Quagsire's Avatar
Shiny Quagsire
どないやねん, ヤドン
 
Join Date: May 2009
Location: Hoenn Safari Zone
Age: 16
Gender: Male
Nature: Jolly
Quote:
Originally Posted by TheChroniclesofLance View Post
Is there an expanded version of Advanced Text out for LeafGreen?
One recommendation: Don't use Leaf Green. Not a very good idea. There is no tutorials, no tool support, and everyone will tell you to switch to fire red.

the qAF qAF script:

Code:
'---------------
#org 0x8028B8
lockall
textcolor 0x0
applymovement 0x4 0x81692B0
waitmovement 0x0
clearflag 0x2B
applymovement MOVE_PLAYER 0x81692B7
waitmovement 0x0
clearflag 0x4001
playsong2 0x0
fadedefault
msgbox 0x88028FA MSG_NORMAL '"ALDER: Let me think[.]\pOh, that's..."
pause 0x1E
setvar 0x4055 0x2
releaseall
end


'---------
' Strings
'---------
#org 0x8028FA
= ALDER: Let me think[.]\pOh, that's right, I told you to\ncome! Just wait!\pHere, [player].\pThere are three POKéMON here.\pHaha!\pThe POKéMON are held inside\nthese POKé BALLS.\pWhen I was young, I was a serious\nPOKéMON TRAINER.\pBut now, in my old age, I have\nonly these three left.\pYou can have one.\nGo on, choose!


'-----------
' Movements
'-----------
#org 0x1692B0
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x1692B7
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements



  #3786    
Old May 6th, 2010, 11:01 AM
PeregrineFig's Avatar
PeregrineFig
Starting Pokémon Obsidian
 
Join Date: Feb 2010
Location: Michigan, USA
Age: 20
Gender: Male
Nature: Hardy
Quote:
Originally Posted by shiny quagsire View Post
One recommendation: Don't use Leaf Green. Not a very good idea. There is no tutorials, no tool support, and everyone will tell you to switch to fire red.

the qAF qAF script:

Code:
'---------------
#org 0x8028B8
lockall
textcolor 0x0
applymovement 0x4 0x81692B0
waitmovement 0x0
clearflag 0x2B
applymovement MOVE_PLAYER 0x81692B7
waitmovement 0x0
clearflag 0x4001
playsong2 0x0
fadedefault
msgbox 0x88028FA MSG_NORMAL '"ALDER: Let me think[.]\pOh, that's..."
pause 0x1E
setvar 0x4055 0x2
releaseall
end


'---------
' Strings
'---------
#org 0x8028FA
= ALDER: Let me think[.]\pOh, that's right, I told you to\ncome! Just wait!\pHere, [player].\pThere are three POKéMON here.\pHaha!\pThe POKéMON are held inside\nthese POKé BALLS.\pWhen I was young, I was a serious\nPOKéMON TRAINER.\pBut now, in my old age, I have\nonly these three left.\pYou can have one.\nGo on, choose!


'-----------
' Movements
'-----------
#org 0x1692B0
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x1692B7
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements
If I'm right in guessing that's a level script, it's more than likely a problem with the #raw word. Open the map header in A-Map, hit ctrl+H, copy the map script offset, paste that into XSE, and hit the level script button, then decompile. Change the #raw word 0x(some 4-character value, usually FFFF) to 0, and compile it.

Quote:
Originally Posted by TheChroniclesofLance View Post
Is there an expanded version of Advanced Text out for LeafGreen?
Either do what they said and use FireRed, or learn hex editing and get a table of characters for Pokemon. You can very easily repoint and edit text in a hex editor. I was really worried when I first discovered I couldn't run A-Text, but soon learned I don't need it anyway.
Current Projects:
POKéMON AQUA SAPPHIRE
POKéMON OBSIDIAN


Last edited by PeregrineFig; May 6th, 2010 at 11:03 AM. Reason: Your double post has been automatically merged.
  #3787    
Old May 6th, 2010, 11:57 AM
Petz94's Avatar
Petz94
Beginning Trainer
 
Join Date: Apr 2010
Age: 28
Gender: Male
Send a message via Skype™ to Petz94
I need help with this script, it's suppose to check to make sure the pokemon you pick is a certain pokemon and if you pick the wrong one it stops you and takes you to the back of that string. What happens is that when I'm supposed to pick Venusaur it let's me pick any pokemon without stopping me. Then when I'm suppose to pick Onix and I go to pick another pokemon or when I try to go back (which you aren't suppose to be able to do at that point) it takes me to my @Goback string. This is just a little bit of my script, but everything else in the script works perfect except this part. Please take a look.
Spoiler:

#org @Combinevenusaurwithonix
msgbox @Billshousechoosevenusaur 0x6
call @Menu
setvar 0x8004 0x3
compare 0x8004 0x6
if 0x4 goto @Goback
special2 0x8005 0xBA
comparevars 0x8005 0x8004
if 0x0 goto @Billshousethatsnotavenusaur
goto @Billshouseremovevenasaur

#org @Billshousepickonix
msgbox @Billshousechooseonix 0x6
call @Menu
setvar 0x8004 0x5F
special2 0x8005 0xBA
comparevars 0x8005 0x8004
if 0x0 goto @Billshousethatsnotaonix
goto @Billshouseremoveonix

#org @Billshousethatsnotavenusaur
msgbox @Billshousevenusaur 0x6
goto @Combinevenusaurwithonix

#org @Billshousethatsnotaonix
msgbox @Billshouseonix 0x6
goto @Billshousepickonix

#org @Menu
special 0x9F
waitstate
lock
faceplayer
copyvar 0x800A 0x8004
return

#org @Goback
msgbox @Billshouseyoudontwanttomixpokemon 0x6
goto @Billshousereadytocombinepokemon

#org @Billshouseremovevenasaur
special 0x176
cmdc3 0x2F
goto @Billshousepickonix

#org @Billshouseremoveonix
special 0x176
cmdc3 0x2F
goto @Billshousegivebcreation2
Hack in Progress: Pokemon - Black Opal(Working Title)

Hack Tools I Use:
Advance Map 1.90
Advance Text
Advance Mart
Advance Pokemon Sprite Editor
Advance Pokemon Icon Editor
A-Trainer
Intro Ed
YAPE
Overworld Editor
XSE
FSF
  #3788    
Old May 7th, 2010, 05:39 AM
Shiny Quagsire's Avatar
Shiny Quagsire
どないやねん, ヤドン
 
Join Date: May 2009
Location: Hoenn Safari Zone
Age: 16
Gender: Male
Nature: Jolly
Quote:
Originally Posted by Petz94 View Post
I need help with this script, it's suppose to check to make sure the pokemon you pick is a certain pokemon and if you pick the wrong one it stops you and takes you to the back of that string. What happens is that when I'm supposed to pick Venusaur it let's me pick any pokemon without stopping me. Then when I'm suppose to pick Onix and I go to pick another pokemon or when I try to go back (which you aren't suppose to be able to do at that point) it takes me to my @Goback string. This is just a little bit of my script, but everything else in the script works perfect except this part. Please take a look.
Spoiler:

#org @Combinevenusaurwithonix
msgbox @Billshousechoosevenusaur 0x6
call @Menu
setvar 0x8004 0x3
compare 0x8004 0x6
if 0x4 goto @Goback
special2 0x8005 0xBA
comparevars 0x8005 0x8004
if 0x0 goto @Billshousethatsnotavenusaur
goto @Billshouseremovevenasaur

#org @Billshousepickonix
msgbox @Billshousechooseonix 0x6
call @Menu
setvar 0x8004 0x5F
special2 0x8005 0xBA
comparevars 0x8005 0x8004
if 0x0 goto @Billshousethatsnotaonix
goto @Billshouseremoveonix

#org @Billshousethatsnotavenusaur
msgbox @Billshousevenusaur 0x6
goto @Combinevenusaurwithonix

#org @Billshousethatsnotaonix
msgbox @Billshouseonix 0x6
goto @Billshousepickonix

#org @Menu
special 0x9F
waitstate
lock
faceplayer
copyvar 0x800A 0x8004
return

#org @Goback
msgbox @Billshouseyoudontwanttomixpokemon 0x6
goto @Billshousereadytocombinepokemon

#org @Billshouseremovevenasaur
special 0x176
cmdc3 0x2F
goto @Billshousepickonix

#org @Billshouseremoveonix
special 0x176
cmdc3 0x2F
goto @Billshousegivebcreation2
I don't know if you meant to do this, but you set variable 8004 to 800A, then when you returned you set 8004 to 0x3. :\



  #3789    
Old May 7th, 2010, 06:04 AM
Petz94's Avatar
Petz94
Beginning Trainer
 
Join Date: Apr 2010
Age: 28
Gender: Male
Send a message via Skype™ to Petz94
Quote:
Originally Posted by shiny quagsire View Post
I don't know if you meant to do this, but you set variable 8004 to 800A, then when you returned you set 8004 to 0x3. :\
Yeah, that's the only way I know to bring up the pick a pokemon menu, and then it should take you back to the beginning which is where it sets variable 8004 to the pokemon again. Unfortunately it doesn't take me back, it says I choose the Venusaur.
Hack in Progress: Pokemon - Black Opal(Working Title)

Hack Tools I Use:
Advance Map 1.90
Advance Text
Advance Mart
Advance Pokemon Sprite Editor
Advance Pokemon Icon Editor
A-Trainer
Intro Ed
YAPE
Overworld Editor
XSE
FSF
  #3790    
Old May 7th, 2010, 06:22 AM
metapod23's Avatar
metapod23
Hardened Trainer
 
Join Date: Mar 2009
Gender: Male
Nature: Timid
Quote:
Originally Posted by Petz94 View Post
I need help with this script, it's suppose to check to make sure the pokemon you pick is a certain pokemon and if you pick the wrong one it stops you and takes you to the back of that string. What happens is that when I'm supposed to pick Venusaur it let's me pick any pokemon without stopping me. Then when I'm suppose to pick Onix and I go to pick another pokemon or when I try to go back (which you aren't suppose to be able to do at that point) it takes me to my @Goback string. This is just a little bit of my script, but everything else in the script works perfect except this part. Please take a look.
Spoiler:

#org @Combinevenusaurwithonix
msgbox @Billshousechoosevenusaur 0x6
call @Menu
setvar 0x8004 0x3
compare 0x8004 0x6
if 0x4 goto @Goback
special2 0x8005 0xBA
comparevars 0x8005 0x8004
if 0x0 goto @Billshousethatsnotavenusaur
goto @Billshouseremovevenasaur

#org @Billshousepickonix
msgbox @Billshousechooseonix 0x6
call @Menu
setvar 0x8004 0x5F
special2 0x8005 0xBA
comparevars 0x8005 0x8004
if 0x0 goto @Billshousethatsnotaonix
goto @Billshouseremoveonix

#org @Billshousethatsnotavenusaur
msgbox @Billshousevenusaur 0x6
goto @Combinevenusaurwithonix

#org @Billshousethatsnotaonix
msgbox @Billshouseonix 0x6
goto @Billshousepickonix

#org @Menu
special 0x9F
waitstate
lock
faceplayer
copyvar 0x800A 0x8004
return

#org @Goback
msgbox @Billshouseyoudontwanttomixpokemon 0x6
goto @Billshousereadytocombinepokemon

#org @Billshouseremovevenasaur
special 0x176
cmdc3 0x2F
goto @Billshousepickonix

#org @Billshouseremoveonix
special 0x176
cmdc3 0x2F
goto @Billshousegivebcreation2
Try troubleshooting using this script:

http://www.pokecommunity.com/showthread.php?t=210016

A suggestion you might try is changing where it goes after comparing variables 8004 and 8005. Try changing it to:

Code:
if 0x1 goto @Billshouseremoveonix
goto @Billshousethatsnotaonix
Sometimes that works for me ...
  #3791    
Old May 7th, 2010, 06:59 AM
Petz94's Avatar
Petz94
Beginning Trainer
 
Join Date: Apr 2010
Age: 28
Gender: Male
Send a message via Skype™ to Petz94
Quote:
Originally Posted by metapod23 View Post
Try troubleshooting using this script:

http://www.pokecommunity.com/showthread.php?t=210016

A suggestion you might try is changing where it goes after comparing variables 8004 and 8005. Try changing it to:

Code:
if 0x1 goto @Billshouseremoveonix
goto @Billshousethatsnotaonix
Sometimes that works for me ...
That's the tut I used to remove Pokemon. Switching those around worked though, so thank you for that. I really appreciate it. One last problem with the script though. When I try to go back it just tells me that that isn't the right pokemon. It should say something like, "You sure you don't want to try this?" and then take me back to deciding if I want to try it.
Hack in Progress: Pokemon - Black Opal(Working Title)

Hack Tools I Use:
Advance Map 1.90
Advance Text
Advance Mart
Advance Pokemon Sprite Editor
Advance Pokemon Icon Editor
A-Trainer
Intro Ed
YAPE
Overworld Editor
XSE
FSF
  #3792    
Old May 7th, 2010, 08:12 AM
metapod23's Avatar
metapod23
Hardened Trainer
 
Join Date: Mar 2009
Gender: Male
Nature: Timid
Quote:
Originally Posted by Petz94 View Post
That's the tut I used to remove Pokemon. Switching those around worked though, so thank you for that. I really appreciate it. One last problem with the script though. When I try to go back it just tells me that that isn't the right pokemon. It should say something like, "You sure you don't want to try this?" and then take me back to deciding if I want to try it.
I'm not sure why it isn't working, it can sometimes be glitchy. I'd look at the fully compiled script first and see if all the offsets are doing what they're supposed to be, though ...

(Edit: Oh, and I'm glad someone fount that tut useful - yay! )
  #3793    
Old May 7th, 2010, 08:48 AM
Petz94's Avatar
Petz94
Beginning Trainer
 
Join Date: Apr 2010
Age: 28
Gender: Male
Send a message via Skype™ to Petz94
Quote:
Originally Posted by metapod23 View Post
I'm not sure why it isn't working, it can sometimes be glitchy. I'd look at the fully compiled script first and see if all the offsets are doing what they're supposed to be, though ...

(Edit: Oh, and I'm glad someone fount that tut useful - yay! )
Thank you, I'll try that.
Hack in Progress: Pokemon - Black Opal(Working Title)

Hack Tools I Use:
Advance Map 1.90
Advance Text
Advance Mart
Advance Pokemon Sprite Editor
Advance Pokemon Icon Editor
A-Trainer
Intro Ed
YAPE
Overworld Editor
XSE
FSF
  #3794    
Old May 8th, 2010, 02:05 AM
manec's Avatar
manec
Beginning Trainer
 
Join Date: Apr 2009
Gender:
Nature: Calm
GAME: FIRE RED
SYSTEM: POKESCRIPT
TYPE: VARIOUS

This script was supposed to make a guy walk, than he would give you a pokemon, a pokedex and some pokeballs, than he would go away and vanish, your mom would come up to you and give you the running shoes. but the script said random things and nothing happened, this is the SCRIPT:

#org $lili
checkflag 0x205
if_b true goto $hehe
applymovement 0xFE $jo
pausemove 0x0
applymovement 0x00 $jo2
pausemove 0x0
applymovement 0x01 $jo3
pausemove 0x0
message $jo4
boxset 6
givepokemon 133 5 197
fanfare 0x13E
message $jo5
boxset 4
waitfanfare
#raw 0x68
setflag 0x828
message $jo6
boxset 6
setflag 0x829
special 0x16F
fanfare 0x13E
message $jo7
boxset 4
waitfanfare
#raw $0x68
message $jo8
boxset 6
giveitem 4 5
message $jo9
boxset 6
applymovement 0x01 $jo10
pausemove 0x0
#raw 0x53 0x01 0x00
applymovement 0x00 $jo11
pausemove 0x0
message $jo12
boxset 6
setflag 0x82F
fanfare ox13E
message $jo13
boxset 4
waitfanfare
#raw 0x68
message $jo14
boxset 6
applymovement 0x00 $jo15
pausemove 0x0
setflag 0x205
release
end

#org $hehe
release
end

#org $jo
#raw 0x62 0xFE

#org $jo2
#raw 0x62 0xFE

#org $jo3
#raw 0x62 0x0D 0x0F 0x0F 0x0D 0x0F 0x0F 0x55 0xFE

#org $jo4
$jo4 1 =Oh!\nMy boy!\pHAPPY BIRTHDAY!\nThis is a very special day!\pNow that you are ten years old\nYou can finally have your first\pPOKEMON.\pCan you guess who is giving it to\nyou?\pYES! ME!\nTAKE THIS EEVEE!!

#org $jo5
$jo5 1 = \v\h01 received a EEVEE!

#org $jo6
$jo6 1 =Now you can depart on your\njourney!\pBut you still need one thing\nYour POKEDEX!\pHere! Take it\nIt was mine...

#org $jo7
$jo7 1 = \v\h01 received the POKEDEX!

#org $jo8
$jo8 1 =Just one last birthday present...\pHere take these!\pThey will help you!

#org $jo9
$jo9 1 =That's it my boy...\nYour grandfather gave you\peverything he had...\pNow I need to go...\nMake sure to visit me on ASTIC CITY!\pBYE!

#org $jo10
#raw 0x0C 0x0C 0x0C 0x0C 0x0C 0x0E 0x0E 0x0E 0x0E 0x0E 0x0C 0xFE

#org $jo11
#raw 0x11 0x11 0x11 0x13 0xFE

#org $jo12
$jo12 1 = Your grandfather was realy generous!\pI'm so proud of you!\pNow it's time for my gift!

#org $jo13
$jo13 1 = \v\h01 switched into the RUNNING SHOES!

#org $jo14
$jo14 1 =Now go and make me PROUD!\p...\pAgain...

#org $jo15
#raw 0x10 0x10 0x10 0x12 0xFE

Any IDEAS?
  #3795    
Old May 8th, 2010, 04:42 AM
adhdguitar's Avatar
adhdguitar
Newbie Pokémon Hacker
 
Join Date: May 2010
Gender: Male
Nature: Adamant
Yo, I'm new at scripting, and while I don't expect anyone to give me a full explanation, I do have one simple question.

Where do I start?
  #3796    
Old May 8th, 2010, 05:28 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 adhdguitar View Post
Yo, I'm new at scripting, and while I don't expect anyone to give me a full explanation, I do have one simple question.

Where do I start?
By having an idea of what you would like to script and reading this tutorial.
  #3797    
Old May 8th, 2010, 06:33 AM
PeregrineFig's Avatar
PeregrineFig
Starting Pokémon Obsidian
 
Join Date: Feb 2010
Location: Michigan, USA
Age: 20
Gender: Male
Nature: Hardy
Quote:
Originally Posted by manec View Post
GAME: FIRE RED
SYSTEM: POKESCRIPT
TYPE: VARIOUS

This script was supposed to make a guy walk, than he would give you a pokemon, a pokedex and some pokeballs, than he would go away and vanish, your mom would come up to you and give you the running shoes. but the script said random things and nothing happened, this is the SCRIPT:

Spoiler:

#org $lili
checkflag 0x205
if_b true goto $hehe
applymovement 0xFE $jo
pausemove 0x0
applymovement 0x00 $jo2
pausemove 0x0
applymovement 0x01 $jo3
pausemove 0x0
message $jo4
boxset 6
givepokemon 133 5 197
fanfare 0x13E
message $jo5
boxset 4
waitfanfare
#raw 0x68
setflag 0x828
message $jo6
boxset 6
setflag 0x829
special 0x16F
fanfare 0x13E
message $jo7
boxset 4
waitfanfare
#raw $0x68
message $jo8
boxset 6
giveitem 4 5
message $jo9
boxset 6
applymovement 0x01 $jo10
pausemove 0x0
#raw 0x53 0x01 0x00
applymovement 0x00 $jo11
pausemove 0x0
message $jo12
boxset 6
setflag 0x82F
fanfare ox13E
message $jo13
boxset 4
waitfanfare
#raw 0x68
message $jo14
boxset 6
applymovement 0x00 $jo15
pausemove 0x0
setflag 0x205
release
end

#org $hehe
release
end

#org $jo
#raw 0x62 0xFE

#org $jo2
#raw 0x62 0xFE

#org $jo3
#raw 0x62 0x0D 0x0F 0x0F 0x0D 0x0F 0x0F 0x55 0xFE

#org $jo4
$jo4 1 =Oh!\nMy boy!\pHAPPY BIRTHDAY!\nThis is a very special day!\pNow that you are ten years old\nYou can finally have your first\pPOKEMON.\pCan you guess who is giving it to\nyou?\pYES! ME!\nTAKE THIS EEVEE!!

#org $jo5
$jo5 1 = \v\h01 received a EEVEE!

#org $jo6
$jo6 1 =Now you can depart on your\njourney!\pBut you still need one thing\nYour POKEDEX!\pHere! Take it\nIt was mine...

#org $jo7
$jo7 1 = \v\h01 received the POKEDEX!

#org $jo8
$jo8 1 =Just one last birthday present...\pHere take these!\pThey will help you!

#org $jo9
$jo9 1 =That's it my boy...\nYour grandfather gave you\peverything he had...\pNow I need to go...\nMake sure to visit me on ASTIC CITY!\pBYE!

#org $jo10
#raw 0x0C 0x0C 0x0C 0x0C 0x0C 0x0E 0x0E 0x0E 0x0E 0x0E 0x0C 0xFE

#org $jo11
#raw 0x11 0x11 0x11 0x13 0xFE

#org $jo12
$jo12 1 = Your grandfather was realy generous!\pI'm so proud of you!\pNow it's time for my gift!

#org $jo13
$jo13 1 = \v\h01 switched into the RUNNING SHOES!

#org $jo14
$jo14 1 =Now go and make me PROUD!\p...\pAgain...

#org $jo15
#raw 0x10 0x10 0x10 0x12 0xFE

Any IDEAS?
If that's a level script, find a tutorial on them, because it's likely a #raw word problem. Also, it looks like you forgot a lock command, but I just kind of skimmed, to be honest.
Current Projects:
POKéMON AQUA SAPPHIRE
POKéMON OBSIDIAN

  #3798    
Old May 8th, 2010, 08:41 AM
Chocos0's Avatar
Chocos0
Eclipse the Umbreon
 
Join Date: Apr 2010
Gender: Male
I know how to script, but getting the script IN the game is kinda confusing.
So, my question is. How do I get the script in the game?
Yes, yes, Pokescript.. But when I "Compile Script" The Buf Rit doesn't appear after it's done whatever it's doing.
I've downloaded Pokescript, and PKMadv. I put the scripts and the hacking tools in separate folders. So, how do I make the Buf Rit window appear after it's done reading the script? "P.S. The script I'm making is giving the pokedex option and the pokemon option"

I'm using Emerald as my rom, and this is my script:

#org $pokedex
lock
faceplayer
message $1
$1 1 = Heres the pokemon and Pokedex option.
boxset 6
fanfare 0x13E
message $got
$got 1 = \v\h01 received the\nPokédex and Pokémon on the menu!
boxset 4
waitfanfare
pause 0x30
setflag 0x828
setflag 0x829
fadescreen 1
removesprite 0x800F
pause 0x30
fadescreen 0
release
end
-------------

Please help me, it would help very much.


The more things change, the more they stay the same.

  #3799    
Old May 8th, 2010, 08:47 AM
Shiny Quagsire's Avatar
Shiny Quagsire
どないやねん, ヤドン
 
Join Date: May 2009
Location: Hoenn Safari Zone
Age: 16
Gender: Male
Nature: Jolly
Quote:
Originally Posted by Chocos0 View Post
I know how to script, but getting the script IN the game is kinda confusing.
So, my question is. How do I get the script in the game?
Yes, yes, Pokescript.. But when I "Compile Script" The Buf Rit doesn't appear after it's done whatever it's doing.
I've downloaded Pokescript, and PKMadv. I put the scripts and the hacking tools in separate folders. So, how do I make the Buf Rit window appear after it's done reading the script? "P.S. The script I'm making is giving the pokedex option and the pokemon option"

I'm using Emerald as my rom, and this is my script:

#org $pokedex
lock
faceplayer
message $1
$1 1 = Heres the pokemon and Pokedex option.
boxset 6
fanfare 0x13E
message $got
$got 1 = \v\h01 received the\nPokédex and Pokémon on the menu!
boxset 4
waitfanfare
pause 0x30
setflag 0x828
setflag 0x829
fadescreen 1
removesprite 0x800F
pause 0x30
fadescreen 0
release
end
-------------

Please help me, it would help very much.
First off, I recommend you use XSE. It's much more efficient and less buggy.
Next, You have your $1's in the middle of the script. That's a no no. Here is a fixed script.

Code:
#org $pokedex
lock
faceplayer
message $1
boxset 6
fanfare 0x13E
message $got
boxset 4
waitfanfare
pause 0x30
setflag 0x828
setflag 0x829
fadescreen 1
removesprite 0x800F
pause 0x30
fadescreen 0
release
end

#org $got
= \v\h01 received the\nPokédex and Pokémon on the menu!

#org $1
= Heres the pokemon and Pokedex option.



  #3800    
Old May 9th, 2010, 10:57 AM
Nikolai Fox's Avatar
Nikolai Fox
 
Join Date: Mar 2010
Gender: Male
This next one has me completely stumped...

Spoiler:
#dynamic 0x100000
#org @start
lock
faceplayer
checkflag 0x104
if 0x1 goto @question
msgbox @hello 0x6
setflag 0x104
goto @question

#org @question
checkflag 0x105
if 0x1 goto @welldone
lock
msgbox @fightornot 0x5
if 0x1 goto @yes
if 0x0 goto @no

#org @yes
trainerbattle 0x0 0x004 0x0 @choseyes @after
msgbox @youwon 0x6
givepokemon 0xF 0x8 0x0 0x0 0x0 0x0
setflag 0x105
preparemsg @gotpokemon
waitmsg
fanfare 0x13E
waitfanfare
msgbox @nickname MSG_YESNO
compare LASTRESULT 0x1
if 0x1 goto @nicknameyes
compare LASTRESULT 0x0
if 0x1 goto @nicknameno
release
end

#org @welldone
msgbox @goodbye 0x6
release
end

#org @nicknameyes
call @special
end

#org @nicknameno
release
end

#org @special
fadescreen 0x1
special 0x9E
waitstate
return

#org @no
msgbox @choseno 0x6
release
end

#org @hello
= My name is Samurai.\nI once lived in Viridian Forest,\lgathering information on Beedrill\land catching them.\lNow I have retired here, and am\lwilling to give anyone who beats\lme one of the Beedrill I have\lcaught.

#org @fightornot
= My Beedrill is very tough, and I\ndon't recommend fighting it until\lyou have at least a full team of\lPokémon with you.\pDo you accept my challenge?

#org @choseno
= Come back when you think you are\nready.

#org @choseyes
= Then give me everything you've\ngot!

#org @after
= You beat me, unbelievable.

#org @youwon
= Congratulations, you beat me. You\nare a very tough trainer, and\ldeserving of one of my prized\lBeedrill. Here, take it.

#org @gotpokemon
= Congratulations, you earned a\nBeedrill for beating Samurai.

#org @goodbye
= Congratulations again on beating\nme and my Beequeen.

#org @nickname
= Do you want to give a nickname to\nyour new Beedrill?


When it gets to:
msgbox @fightornot 0x5
if 0x1 goto @yes
if 0x0 goto @no

In-game, if you choose yes it goes to no. So saying both yes and no sends the script to @no, saying "Come back when you are think you are read". I don't understand how choosing yes can send it to no when the script says the complete opposite :/

When I choose yes, I'm supposed to be sent to @yes and start that trainer battle.

Last edited by Nikolai Fox; May 9th, 2010 at 11:15 AM.
Closed Thread
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 05:58 PM.

About Us
© 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.

Copyright
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. Header artwork by Jordanice of deviantART.

Social Media
If you would like to stay up-to-date with us on the go, when we're down, or other such things, follow us on social media sites--most notibly Twitter, Facebook, and Google Plus--by clicking on the links provided.

Design presented by Peitharchia. Special thanks to Hiroshi Sotomura and Ausaudriel.