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.


Closed Thread
 
Thread Tools
  #26    
Old July 24th, 2008, 05:34 AM
Shadows's Avatar
Shadows
 
Join Date: Jul 2008
Location: Chicago, IL
Age: 18
Nature: Calm
This is a big help!
Thanks!
__________________
  #27    
Old July 25th, 2008, 05:05 AM
Hephaestus
Beginning Trainer
 
Join Date: Jul 2008
Gender:
Quote:
Originally Posted by Amonitas View Post
When I take a step, all the flags reset... I mean that the sprite goes visible again, but otherwise good, I try to make a give pokemon script and see if it works.
You have to put this map script with advance map in the map where the pokemon is

05 On map entering/On menu closing

#dynamic 0x8000000

#org @aftercatch
checkflag 0x8C1
if 0x1 call @hidesprite
end

#org @hidesprite
special2 LASTRESULT 0xB7
compare LASTRESULT 0x7
if 0x5 goto @return
hidesprite 0x1
return

#org @return
return


It work on Emerald
  #28    
Old July 25th, 2008, 01:32 PM
GTAPlayer's Avatar
GTAPlayer
Six Star Evasion
 
Join Date: Jul 2008
Location: Escobar International
Gender:
Nature: Adamant
Hello, I'm just want to add some one-off events to a pokemon FR rom.
Raikou doesn't disappear when I capture it:
#org 0x71A308
lock
faceplayer
startwildbattle 0xF3 0x32 0x0
checksound
cry 0xF3 0x2
pause 0x28
waitcry
setflag 0x305
setflag 0x861
special 0x138
waitstate
clearflag 0x861
release
end
I'm probably missing something obvious, but I'm still learning the basics.
  #29    
Old July 26th, 2008, 04:18 AM
Hephaestus
Beginning Trainer
 
Join Date: Jul 2008
Gender:
Quote:
Originally Posted by GTAPlayer View Post
Hello, I'm just want to add some one-off events to a pokemon FR rom.
Raikou doesn't disappear when I capture it:
#org 0x71A308
lock
faceplayer
startwildbattle 0xF3 0x32 0x0
checksound
cry 0xF3 0x2
pause 0x28
waitcry
setflag 0x305
setflag 0x861
special 0x138
waitstate
clearflag 0x861
release
end
I'm probably missing something obvious, but I'm still learning the basics.
Have you put the flag in the sprite of raikou with advance map?
  #30    
Old July 26th, 2008, 11:33 AM
GTAPlayer's Avatar
GTAPlayer
Six Star Evasion
 
Join Date: Jul 2008
Location: Escobar International
Gender:
Nature: Adamant
How do I put the flag for Raikou to disappear then?

Last edited by GTAPlayer; July 26th, 2008 at 03:49 PM.
  #31    
Old July 27th, 2008, 05:14 AM
DudeWasten
Beginning Trainer
 
Join Date: Jul 2008
Gender:
I understand the Tutorial , but , i'm starting a Hack called Dusk Pearl and i want to import the Script and this don't works! Anybody know how to fix?
  #32    
Old July 27th, 2008, 12:38 PM
PsydORg
N00B Spriter
 
Join Date: Jul 2008
Location: How should i know?
Age: 19
Gender:
Hi, i was just messing around with the text, and when i wanted to save it, an error occurs on something i haven´t even touched. (It´s where oak are giving the five pokeballs)

The error: type 13 "Mismatch" Missing #define or parameter on line 165.

And the script on line 165 is what it was in the beginning:
giveitem2 0x4 0x5 0x101


Just tell me if you need more off the script

Oh and if it´s necessary to know it´s in Fire Red

Btw great tut

Last edited by PsydORg; July 27th, 2008 at 12:45 PM.
  #33    
Old July 27th, 2008, 07:43 PM
Norri
Beginning Trainer
 
Join Date: Jul 2008
With the give pokemon command...

1. it gives me the pokemon over and over again.
2. when i put in Dratinis Code it gave me crawdaunt

How would I go about fixing that..
  #34    
Old July 27th, 2008, 08:23 PM
Tyrantrum's Avatar
Tyrantrum
none pizza with left beef
Community Supporter
 
Join Date: Oct 2007
Location: New Jersey
Age: 20
Gender: Male
Nature: Lonely
Send a message via Skype™ to Tyrantrum
@Norri: The check and set flags for give pokemon r 828. Also, if u look at the pokemon list on the first post, u'll see he stopped at the pokemon hex codes at Raticate. For now...
__________________




(x) Tumblr
(y) Gallery
Previously Eeveon
  #35    
Old July 27th, 2008, 09:08 PM
Norri
Beginning Trainer
 
Join Date: Jul 2008
Quote:
Originally Posted by Eeveon View Post
@Norri: The check and set flags for give pokemon r 828. Also, if u look at the pokemon list on the first post, u'll see he stopped at the pokemon hex codes at Raticate. For now...

Yea i found dratinis Hex Number...But I still cant do anythign about him giving me a million dratinis.
  #36    
Old July 27th, 2008, 09:21 PM
Tyrantrum's Avatar
Tyrantrum
none pizza with left beef
Community Supporter
 
Join Date: Oct 2007
Location: New Jersey
Age: 20
Gender: Male
Nature: Lonely
Send a message via Skype™ to Tyrantrum
U have to make a checkflag and setflag 828, so it gives u the dratini, gives u the pokemon section, and also keeps the script from giving u another one. Hust make sure to give the script, another script the person to say after he gives u the pokemon. But in the same script.
__________________




(x) Tumblr
(y) Gallery
Previously Eeveon
  #37    
Old July 29th, 2008, 05:27 AM
PsydORg
N00B Spriter
 
Join Date: Jul 2008
Location: How should i know?
Age: 19
Gender:
Edit: Never mind, but i got another problem. What´s wrong with this script?
Btw, the text is in danish:

'-----------------------
#org 0x71A2FC
lock
faceplayer
checkflag 0x828
if 0x0 goto @yes
if 0x1 goto @no
release
end
#org @yes
givepokemon 0x5 0x241 0x0 0x0 0x0 0x0
fanfare 0x13E
waitfanfare
setflag 0x828
msgbox @yay
boxset 0x6
release
end
#org @no
msgbox @comeback
boxset 0x6
end
#org @text
= Hey! Jeg arbejder paa en\ngaard\pMen vi har for mange koer\pVil du have en?
#org @yay
= Okay! Vaer så god!
#org @comeback
= Okay, men du kan altid\nkomme tilbage hvis du\nskifter mening.

Last edited by PsydORg; July 29th, 2008 at 10:44 AM.
  #38    
Old July 29th, 2008, 03:57 PM
Rogs9i5's Avatar
Rogs9i5
Breeder Extraordinaire
 
Join Date: May 2008
Location: Cupertino, California
Gender: Male
Nature: Jolly
When I make a give pokemon script, when I talk to the person who should give me the pokemon, nothing happens. Can somebody help me?
  #39    
Old July 29th, 2008, 04:49 PM
aggrononer612
Beginning Trainer
 
Join Date: Jul 2008
Gender:
thanks u helped me alot man
  #40    
Old July 30th, 2008, 08:10 AM
PsydORg
N00B Spriter
 
Join Date: Jul 2008
Location: How should i know?
Age: 19
Gender:
Fixed the above problem, but now i got a new one. It´s in the same script. Every time i get near the sprite which contains this script, the game resets, can someone tell me why? It may be someting obvious, but here you go:

'-----------------------
#org 0x71A438
lock
faceplayer
checkflag 0x828
msgbox 0x871A34D
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x871A2FC
compare LASTRESULT 0x0
if 0x1 goto 0x871A342
release
end
'-----------------------
#org 0x71A2FC
givepokemon 0x5 0xF1 0x0 0x0 0x0 0x0
fanfare 0x13E
waitfanfare
message 0x871A39A
callstd 0x6
setflag 0x828
release
end
'-----------------------
#org 0x71A342
message 0x871A3AF
callstd 0x6
release
end

'---------
' Strings



This is how it looks when compiled:

#org 0x71A438
lock
faceplayer
checkflag 0x1128
nop
writebytetooffset 0x0 0x90871A3
nop1
compare LASTRESULT 0xA438
multichoice3 0x8 0xFC 0xA2 0x71 0x8
compare LASTRESULT 0x0
if 0x1 goto 0x871A342
release
end
'-----------------------
#org 0x71A342
msgbox 0x871A3AF '"Okay.\nMen jeg er her\nHvis du skif..."
callstd 0x6
release
end

'---------
' Strings
'---------
#org 0x71A3AF
= Okay.\nMen jeg er her\nHvis du skifter mening.


Some of the lines gets erased when compiled, and new ones are added on.
  #41    
Old August 7th, 2008, 02:32 AM
Jack-s-b
Beginning Trainer
 
Join Date: Jul 2008
Gender:
Probab;y a simple mistake, i made a yes no script for mistys sister, asking her if shes leaving, it works, but when u click yes or no. the message doesnt change, the yes no box dissapears, but the message stays on the screen and doesnt change to the answer
i did ur script exactly, Help please
  #42    
Old August 7th, 2008, 08:03 PM
Iken's Avatar
Iken
The OTHER other white meat.
 
Join Date: Aug 2008
Location: O'er Yonder.
Age: 23
Gender:
Nature: Calm
Ok, i keep reading scripting tutorials, but i'm still a bit confused.

i have advanced map and XSE, but i don't know how to apply scripts to a sprite.

like say i wanted a specific person to walk up to me and tell me something like "don't go out there"

how would i do that?

i'm also not sure how to save XSE scripts on my rom..


Sorry i'm new to this.

Last edited by Iken; August 7th, 2008 at 08:09 PM.
  #43    
Old August 7th, 2008, 08:26 PM
KhaosKnight's Avatar
KhaosKnight
The 1 and only Khaotic Hacker
 
Join Date: Dec 2007
Nature: Relaxed
Quote:
Originally Posted by Iken View Post
Ok, i keep reading scripting tutorials, but i'm still a bit confused.

i have advanced map and XSE, but i don't know how to apply scripts to a sprite.

like say i wanted a specific person to walk up to me and tell me something like "don't go out there"

how would i do that?

i'm also not sure how to save XSE scripts on my rom..


Sorry i'm new to this.
this should tell you how to put scripts in the ROM

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

and this should tell you about movement scripts

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





  #44    
Old August 7th, 2008, 09:45 PM
Iken's Avatar
Iken
The OTHER other white meat.
 
Join Date: Aug 2008
Location: O'er Yonder.
Age: 23
Gender:
Nature: Calm
i'm starting to get this down.

Does anyone know how to change where you start?

i'm practicing on Ruby version and i'd like to start elsewhere than the truck, and not have to talk to my mom and so on.

Please and thankyou
  #45    
Old August 7th, 2008, 10:43 PM
pokemon_hacking's Avatar
pokemon_hacking
blah_maker
 
Join Date: Jul 2008
Gender: Male
Nature: Lonely
hey seth when r u going to make anymore tutorials and also awesome tutorial by the way
__________________
making hacks by yourself is but oh well
  #46    
Old August 8th, 2008, 12:57 PM
timson733333's Avatar
timson733333
Me gusta.
 
Join Date: Mar 2007
Location: Stealth!
Gender: Male
Nature: Quiet
I need some help.

I tried scripting so some random guy would give me Celebi, and after giving me the Celebi, he would say "Dude, stop cheating and catch some yourself." I talked to him (for the first time), and he did the latter! Can somebody help me?

#Dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x828
if 0x0 goto @give
if 0x1 goto @sry
release
end

#org @give
givepokemon 0x251 0x50 0x0 0x0 0x0 0x0
fanfare 0x13E
waitfanfare
setflag 0x828
msgbox @yay
boxset 0x6
release
end

#org @sry
msgbox @sorry
boxset 0x6
end

#org @yay
= Whoa! This weird guy gave you a CELEBI!

#org @sorry
= Dude, stop cheating and catch some \nyourself.
  #47    
Old August 8th, 2008, 09:03 PM
Iken's Avatar
Iken
The OTHER other white meat.
 
Join Date: Aug 2008
Location: O'er Yonder.
Age: 23
Gender:
Nature: Calm
Bleh.

Ok, so now i have a very basic grasp on scripting.

i can make people say things, give me things, move a bit,
and i can make cutable trees (/rocks/boulders/etc.)

But i'm still a bit shady... like How do i make a script such as
when you get the running shoes.

you don't get it the first couple times you run through, and then suddenly
your moms waiting for you.

and then she's back inside and never waiting outside again.

i don't understand how you would script something like this..
  #48    
Old August 9th, 2008, 06:48 AM
Garth
Beginning Trainer
 
Join Date: Aug 2008
Gender:
I'm slightly confused on flags.

Can you use them to check if you've reached/ obtained something? Like after getting your 8th badge someone will say something different or move etc.


-Garth
  #49    
Old August 14th, 2008, 05:44 AM
Necoris's Avatar
Necoris
Pokemon Researcher
 
Join Date: Aug 2008
Age: 24
Gender:
Nature: Calm
When you put checkflag 0x828 it checks if you have your Pokemon menu open. And you have it so that it will skip to the last message if you have your Pokemon menu or otherwise flag 0x828 opened already. Easy form, that script will only work if you don't have your Pokemon menu which you get at the beginning when you obtain your first Pokemon..<br>
__________________

Click here to feed me a Rare Candy!
Get your own at Pokeplushies!



Last edited by Necoris; August 30th, 2008 at 01:14 PM.
  #50    
Old August 15th, 2008, 03:22 AM
Jack-s-b
Beginning Trainer
 
Join Date: Jul 2008
Gender:
Trying to make a give pokemon script, but i used the hex number for staryu, and it gave me a zigzagoon, so i tryed goldeen, i got torchic, obviously the numbers havnt been done,

does anyone have the actual pokemon numbers in hex
thanks
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 09:35 PM.


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.