![]() |
Wow, I cannot understand any of that. This isn't a tutorial for begginers is it? Anyways, it seems like you put a lot of effort into this so great job!
|
Hi, I'm trying to get into this hacking thing. Great guide, but I'm an idiot. -______-
I don't really get how flags work, I'm at the beginning of Ruby and I want to make those mover guys disappear. But I don't really get the flags thingies. How would I not make them disappear until I finish setting my clock? Right now they disappear if I accidentally go down. Edit: Eh. Where is the script help thread by the way? |
diegoisawesome, I checked my Ruby game, and I'm pretty sure you mixed up some of those specials. You listed special 0x9C as Wally's catch, but according to the "H-help me!" script, that's actually the special for choosing your first Pokemon.
There's a good chance I'm wrong, but somebody should look into that. |
Can someone help me? I'm stuck and I'm only at the beginning..
|
I have a prob too. I made Celebi wild Pokemon script in Viridian Forest, and thanks for the flag numbers, by the way. It dissapears normally when you kill it or run away from it. But when I catch it, it won't dissapear! Can someone help me and tell what to do? :/
|
Thanks for the tutorial, this really helped me on my hack!
|
I need help!
#dynamic 0x8003D5 #org @start checkflag 0x828 if 0x0 goto @1 if 0x1 goto @end end #org @1 lock applymovement 0x01 @move waitmovement 0x0 msgbox @Pine boxset 0x6 applymovement 0x01 @move2 waitmovement 0x0 setflag 0x828 release end #org @move #raw 0x03 #raw 0x62 #raw 0x13 #raw 0x13 #raw 0x11 #raw 0xFE #org @move2 #raw 0x10 #raw 0x12 #raw 0x12 #org @end release end #org @Pine = Hey \v\h01!\nProf. Pine wanted to see you\nIt was something about getting your\nfirst pokemon. This script is supposed to make the person walk 2 steps right and 2 steps up then say the script and walk back to the beggining area What did I do wrong PS Please tell me the best XSE tutorial you've seen I'm not a great scripter |
Rocka210,
1. replace ??? with person event number (in A-map) 2. Yes, it possible. In your script after setflag 0x828 write "setvar 0x???? 0x1" (replace ???? with your variable, like 0x5001 or other), and then go to script events in A-map and choose your script event. Then write your variable in the "Var. number" and save your map and compile your script. |
Okay. I am editing the post, since I change the idea I had. Is there anyway to mix apply movement and trainer battle? I tried, but it won't work at all. Here is the script I tried. I would appreciate any help if someone can spare the time.
'--------------- #dynamic 0x000064 #org 0x000064 applymovement 0x1 0x2D51C3 waitmovement 0x0 return '--------------- #dynamic 0x000005 trainerbattle 0x0 0x001 0x0 $before $after msgbox @lost 0x6 release end '--------------- #dynamic 0x00007F applymovement 0x1 0x2D51C3 waitmovement 0x0 return #org $before = [Brandon] Hey, have you seen my partner?\nHe has brown hair and a Totodile.\pNevermind, let's just battle! #org $after = No...I never lose...\nMy Herecross was just worn out. #org @lost = Well...I'll win next time!\nNow where could Miles have gone... '----------- ' Movements '----------- #org 0x720CB4 #raw 0x10 #raw 0x10 #raw 0x10 #raw 0x10 #raw 0x10 #raw 0x10 #raw 0x10 #raw 0x13 #raw 0x13 #raw 0x13 #raw 0xFE #org 0x720CB4 #raw 0x13 #raw 0x13 #raw 0x13 #raw 0x11 #raw 0x11 #raw 0x11 #raw 0x11 #raw 0x11 #raw 0x11 #raw 0x11 #raw 0x11 #raw 0xFE |
Can you cerrent my script:
'----------------------- #org 0x800A3D lock checkflag 0x828 if 0x1 goto 0x8800A96 checkgender compare LASTRESULT 0x0 if 0x1 goto 0x8800A60 compare LASTRESULT 0x1 if 0x1 goto 0x8800A7B end '----------------------- #org 0x800A96 hidesprite 0x1 end '----------------------- #org 0x800A60 givepokemon 0x88 0x5 0x0 0x0 0x0 0x0 msgbox 0x8800A9B '"[player]: This must be oak's\n poke..." setflag 0x828 release end '----------------------- #org 0x800A7B givepokemon 0x87 0x5 0x0 0x0 0x0 0x0 msgbox 0x8800A9B '"[player]: This must be oak's\n poke..." setflag 0x828 release end '--------- ' Strings '--------- #org 0x800A9B = [player]: This must be oak's\n pokemon I better take it to him. What's I want to happen is you find a pokeball and get pokemon deppening on your gender and then it says:[player]: This must be oak's pokemon I better take it to him. after that the pokeball disappears and you keep going but the pokeball disappears untill you walk 1 step then it reappears can you help me? |
Quote:
|
Ya but I forgot to say that the talking part dosen't come up what do I do about that?
|
Quote:
|
Well when I put boxset 6 when I closed it and open it, it change my script into the one that dosn't work and it did that all by it self. And what do you mean by put 0x2 after your msgbox command?
Sorry about that my scripts never work :( |
Quote:
|
very usefull... how ever, how come no one ever ****ing tells you how to add new events, i cant for the LIFE of me, figure out how, apparantly it must be "easy" if no one will say how, but why? I dont know how, it is vital information for absolute beginners like my self.
|
Quote:
In A-Map, you go to a map, click the "Events" tab, then at the bottom of the right sidebar, you change the number of the events and hit Apply, or OK, whatever it may be. Then you click the event tile after position it, and add it's offset etc. |
Quote:
Anyway, here's a tip to some people. Whenever you create a script and test it in-game, and it is destroyed, it means it either hit other parts of the game's data, or overwrote a previous script. Solution: Simple, save the script before compiling, and if it is bad in-game, use a different offset. Of course, that is for the newbs\noobs. Spoiler:
|
HELP!!!!!
Quote:
#dynamic 0x800018 #org @start lock faceplayer msgbox @1 0x6 release end #org @1 = Hi. ^i wuld try that and many other ways but when i go on the emulator the sprite doesnt respond at all.... |
... WOOOOOOOW THAT is a tutorial ! man thanks a lot !
|
i thought this tutorial could help but i guess its just me who fails...
i tried to do what it said, and the stuff doesnt work... i try looking for what i needed to change, and it wasn't here.... i'm about ready to give up on hacking, becuase i can't get the help i need... if some one can help me out live, over msn, or something, because i need some actual personal training on this stuff, cause i am ALWAYS running into problems that arent explained here, or as far as i know, anywhere... my email is [email protected] if and one wants to help me, please, please email me! I would be eternaly greatful! |
Quote:
I mean, seriously. Quote:
Code:
0x2 has lock and faceplayer built-in, so it's more stable. Quote:
I'm sure you can find a tutor. Though, if you can't, just try editing a script. Like making it say something else. Then move on to actually creating a script, if that way works for you. |
Umm I found an update of xse but it toke away the
'--------------- #org 0x800A9B = [player]: This must be oak's\n pokemon I better take it to him. Part can you help me? Never mind I figriad it out. Ps: the talking sill dosn't come up and the update of xse change my script to this: '--------------- #org 0x800A3D lock checkflag 0x828 if 0x1 goto 0x8800A96 checkgender compare LASTRESULT 0x0 if 0x1 goto 0x8800A60 compare LASTRESULT 0x1 if 0x1 goto 0x8800A7B end '--------------- #org 0x800A96 hidesprite 0x1 end '--------------- #org 0x800A60 givepokemon 0x88 0x5 0x0 0x0 0x0 0x0 loadpointer 0x0 0x8800A9B '"[player]: This must be oak's\n pok..." setflag 0x828 release end '--------------- #org 0x800A7B givepokemon 0x87 0x5 0x0 0x0 0x0 0x0 loadpointer 0x0 0x8800A9B '"[player]: This must be oak's\n pok..." setflag 0x828 release end '--------- ' Strings '--------- #org 0x800A9B = [player]: This must be oak's\n pokemon I better take it to him. |
How does XSE work? Everytime I try to type in a script and try to compile, it always tells me unknown word at such-and-such line. Thats with EVERY thing I try.
|
Quote:
Quote:
Here is a script, a level script: Code:
Edit: Figured it out. Set a variable at the end of the script to 0x2. Say you use setvar 0x7000 0x1 in the previous script. In order for it to work only AFTER you set the var, go to the part where you enter the variable normally, and in value, put in 0001. In order for the script to only happen once, and not repeat forever and ever, you have to use setvar 0x7000 0x2. That's right, 0x2. Giving it a different value, makes the script not happen because the script only works if the value is set to... 0x1! Guess that's kind of an important part of the tut. Diego, you should add this to the level script tutorial. |
Wow! This tutorial is answer my problem on scripting. Thank you.
|
I saw someone asking a question so:
I started working on my own hack today. I never made any scripts for anything before but managed to make a give pokémon script, and made the character dissapear, but the only thing is that i needed a pokédex. Now i did a setflag 829 to obtain the pokédex but the pokémon giving character also tells my nationaldex data in a bugged way. Is there anyway to solve that? Well here's the script, maybe some corrections possible? (should be :3) OR maybe another way to add pokédex? Spoiler:
|
Quote:
Edit: I'm not even going to boldificate the changes, thats how much I changed. Code:
Quote:
Quote:
#org @start lock faceplayer checkflag 0x828 if 0x1 goto @end ______________ and then put @take here without the #org @take. I put the script in the simplest way I could, 'cause I felt lazy. Or, simply: Code:
#org @end release end And your whole script: Code:
Does this help? It should, because now, even I know what I am doing. |
Thanks ALOT! I've been looking what i had to do for a while lol, since I'm new at scripting. ;) EDIT: It works :D
|
Quote:
|
This thread is not for fixing scripts, please move to the script help thread by HackMew to continue
|
Quote:
|
Umm angian why dose the talking part dosn't come up?
|
Quote:
All loadpointer does is.. load... Not necessarily load a text box, especially if it does not know which kind. |
Quote:
Loadpointer is a command used in the msgbox construct (loadpointer & callstd) and it works differently on it's own, if not used in that construct. |
This tutorial helped me a lot, tnx.
|
Quote:
|
Cheers for the tutorial, I've bookmarked it and use it for reference loads.
cheers :) |
Say I have the offset for some text, is there any way for me to find out the offset of the script which calls that text?
A search function would be handy, of course I haven't a clue whether that's possible though. |
How do I can activate national dex on Ruby/Sapphire???
Using flag or special? What's the hex? |
Quote:
AaBbCcDd would become DdCcBbAa |
Quote:
|
Quote:
There is no script in R/S that gives you the National Pokedex. There is an ASM code / Action Replay code that does that. |
Another quick question.
I've tried everything, so I need help.
I'm trying to make my Oak overworld (Person Event No.: 3) to disappear completely once I talk to him, and he does, but as soon as I come back to the map, he's back. o.O; Spoiler:
Thanks ahead of time [: |
i need help in the giveitem script. i type it in and it says #define on line 21 with hs the msg_obtain
|
Quote:
You must put: People ID: 2000 Or maybe, you must use hidesprite (the red text). |
I find this tutorial very useful diego, but I have a question.
I want it so when you talk to Professor Oak he says, "Want a pokemon?" and if you say yes he gives you a totodile, but if you say no he gives you a cyndaquil anyways. How can I get this to happen? I tried combining both the YES/NO script with the give pokemon script and it didn't work.. |
Quote:
Spoiler:
Attention: This only work if you don't have a pokemon. If you have a pokemon, change the flag to other flag. Example: ... 0x828 change to ... 0x900 (... = setflag or checkflag.) |
Quote:
|
Quote:
Code:
|
Quote:
I think you should put in your main post about this sort of thing. Also, I want one space, if stepped on you are checked for a pokemon, if you have one you are allowed through, but if you don't, you are pushed back one space. Would it be just like the script for the Guards in FR, like I would only have to replace the flag and text, or would it be different? |
This may be a bit on the off-topic side...But if anyone is pretty experienced with scripting and could help me out.
I would really appreciate it if someone could add me on MSN so we could discuss some of the pointers on scripting. Thanks in advance, 3n3rGyZ |
I tried this script:
Spoiler:
But it doesn't work. I was trying to have it check pokemon, and if you have one you go onthrough and if you dont you go back one space to the left. Kinda like the cycling road entrances. But with only 2 script squares, But it just freezes you there while the guard stares at you. I even adjusted the unknown and varnumber to like the picture, but it doesnt work still. |
Thanks for the guide! A huge help for me.
|
I don't really get the yes/no thing, I've tried it and it didn't work :/. Help me get a working one?
|
Quote:
|
What do you use to Compile the script? Or how do you?
|
Quote:
|
this tut is really useful :P, I like teh movement lists
|
Hello Diego. First before anything your tutorial acts as an excellent reference for me. It's almost as if a professional wrote it.
Now here is my problem. I have a script that suppose to move my player but after its completed my player freezes on the spot without the msgbox function activating. Below is my code. Also do you know how to get XSE NOT to autogenerate extra code? It sometimes likes to generate extra unneeded movement commands. Code:
|
Quote:
|
So the extra movement generation was because the compiler was trying to guess the movements after to prevent bugs?
|
Quote:
|
Script trouble!
okay, now i'm trying to compile a shaymin wildbattle script to my fir red hack
#dynamic 0x3AE35F #org @start lock faceplayer msgbox @1 0x6 cry 0x363 0x0 wildbattle 0x363 0x7 0x8B fadescreen 0x1 fadescreen 0x0 hidesprite 0x800F setflag 0x200 release end #org @1 = Shay! that was the script and every time i try to compile it it says "Error 13 type mismatch in file ..... on line 8 missing #define or parameter Line: wildbattle 0x363 0x7 0x8B and before you say "Shaymin isn't in fire red!" I replaced roselia with shaymin. what is wrong with my script? |
the wildbatlle command is:
0x(number of the pokemon yo want in HEX) 0x(level of the pokemon) 0x(item) |
Is commande of
0x(nember of pokemon in pokedex) 0x(level of pokemon in Format Hexa) 0x(item) exemple 0x9 0x54 0x1 tortank level 84 item master ball |
what would level 7 be in hex?
|
7in hex is 7, i think.
For know the number you can convert it with the calculator on windows. |
Thanks! This tutorial really helped me!
- You're the MAN! |
Quote:
Decimal: 7 Hexadecimal (HEX): 0x7 Octadecimal (OCT, not used in ROM hacking...) 7 Binary (BIN, also not used OFTEN in ROM hacking...): 0111 Hope I could be of help, lol |
Thanks, now I just need roselias number is in hex
what is it? EDIT: nevermind i found it |
If i use an Level script, i'll be frozen.
When I decompile it, and make it an level script, i get this: Code:
Code:
I copied this offset: > lNewOffset = 0x14E924 But then i get frozen. |
I copied the "Give Pokemon" Script, and when i talk to the person that has that script it says:
Hows Charmander? When u don't get the charmander |
I use PKSUV, & I have no idea how to work it. I have read guides on it, but still can't nut it out. I am going to download XSE, so it will be much easier, special thanks to your guide. :) Good job.
|
hey deigo, for some reason, when I do a mssgboxbox the text comes out like this
Hi(press A) This is pissing me off(press A) I want to fix this(press A) instead of going Hi(press A) This is pissing me off (A) I want to fix this (A) and Im phrasing it like this in XSE Hi\nThis is pissing me off\lI want to fix this So any tips? |
Map connecters are the first I chose to learn XD
|
Hmm A Request From me.Is There Anyway to make a make an earthquake,make it's flag to setflag 0x(blblabla) and after defeating the evil guys the map resets to normal?? like can i use
checkflag 0x... if 0x1 goto @battle release end #org @battle pokemonbattle or whatsoever.. msgbox fadescreen clearflag release end is that anyway i could make it happen? |
Great tut. The only thing i really don't understand is the variable part :(
|
This is an amazing guide, it's helped me learn all of my XSE scripting so far. However I have one tiny tiny question;
When using the \c color command, how do you use that correctly? Like, for example: \c[orange_fr]You received a Pokémon! Would that be correct? |
Quote:
|
Does anyone know what does "special 0x13D" do in fr?
|
hey how do i make this script work?
#Dynamic 0xoffset #org @start lock faceplayer checkflag 0x828 if 0x0 goto @give if 0x1 goto @sry release end #org @give givepokemon 0x1 0x5 0x0 0x0 0x0 0x0 fanfare 0x13E waitfanfare setflag 0x828 msgbox @yay boxset 0x6 release end #org @sry msgbox @sorry boxset 0x6 end #org @yay = You got Bulbasaur! #org @sorry = I can't give you anymore. |
Quote:
2nd; checkflag 0x828 if 0x0 goto @give if 0x1 goto @sry is incorrect, you only need to define one of the 2, so I'll modify your script a little... Edits will be in the quote, in BOLD RED. (EXCEPT for things I remove, since I can't highlight stuff that isn't there.) The only other thing wrong is the "boxset" command isn't used anymore, and is now a part of msgbox, so if you use boxset 0x6, now just add an 0x6 after the message's pointer... Try the script out now... (ALSO, if you don't know how to insert a script, read a tutorial, or Press F2 in XSE...) |
ok, thanks for the help!!!!
Quote:
|
What is the script to set the national pokedex in emerald?
|
Quote:
lock faceplayer msgbox @dexgive 0x2 callstd 0x4 special 0x1F3 release end #org @dexgive = Here is a National Pokédex. |
Man! This tutorial really helped me a lot!
Thanks dude! Your the man! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I like CHANSEY.. :) |
Quote:
Octadecimal goes from 0 to H, and is pretty illogical to use when programming. Almost as illogical as using decimal. ;) |
Thanks for the guide again! Now, I can use some coomands
that I never knew I can use! |
Quote:
|
Excellent guide, I've been using things from it for a while but just thought you deserved a post.
|
1. For the trainer battle, how do you change the pokemon the trainer is battling with? Does it depend on what trainer ID you're using?
2. How do you change what Prof. Oak would say OUTSIDE and INSIDE the lab? |
Quote:
To change what people say, open up the preexisting scripts and change them. |
Thanks your tutorial has help a lot :)
|
Is he using XSE 1.0.0 or 1.1.1?? sorry im new here XD
|
I love this tutorial, it helps me a lot. :)
|
Quote:
|
What is wrong with this script :( when i click on the npc i hear the sound of the messageboxx but the message box itself doesnt show here is the script
#dynamic 0x6B0A02 #org @start msgbox @hello 0x2 end #org @hello = Hello\nMy name is Battousai |
Great guide! Huge help on countless problems except for a few things.
The most obvious problem that I've encountered is having to do with movement. Example: Overworld tries to pass Person A, Person A stops Overworld *doesn't lead him anywhere or makes him take a step back* and engages in a conversation. Then Person A walks off screen. This event only happens once. I realize that some of it is explained but as far I've read, and I've read the guide thoroughly, it doesn't mention how to go about this. Thanks in advance. |
thank you, nice tutorial!
|
| All times are GMT -8. The time now is 8:11 PM. |
![]()
© 2002 - 2018 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 - 2016 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.
Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.