![]() |
Script Help Thread (DO NOT REQUEST SCRIPTS)
A brief intro about the new script help conceptI've been following the Script Help thread since it began and after months of posts the conclusion I came was only one: there needs to be stricter and better rules. I'm not saying it will be really easy at first, but it's something it needs to be done. Rules, what about them?I'll post them in an unsorted order because any of them must be followed and all of them have the same importance. Of course, all forum rules apply. General Rules
Posting Rules
Code:
Spoiler:
Note: the rules listed above are subject to change without further notice. Useful Links
Change LogThis is the place where the updates to this post will be stored. Spoiler:
|
i just wanna know how i'd go about including a a script that means i cannot open a door untill i've spoken to birch after i beat may/brenden?
i want to basically lock the door till after birch has given me the pokedex, and the character's mom has given him/her the running shoes? [edit]would i have to put a person script on the door, but with no player icon, and make it so the person script disappears after i have said item?[/edit] |
Quote:
#Org @Start Setflag 0x1000 For the battle script, you know, the battle with brendan/may. To keep the door locked we would #Org @Start Checkflag 0x1000 - This cheks if the Setflag 0x1000 is Done yet. Make sure you dont use the same flags twice.. That was the battle.. Now the Running shoes: #Org @Start Setflag 0x82F Now that should activate the running shoes.. #Org @start Checkflag 82F That checks if you have the running shoes activated.. Now the Pokedex. #Org @start Setflag 0x829 That Sets the Pokedex, you now have the pokedex in your menu. #Org @start Checkflag 0x829 Checks if the Pokedex is activated.. So here we are. --- Pokedex Script #Dynamic 0xoffset #org @start checkflag 0x829 if 0x0 goto @hey! if 0x1 goto @end end #org @hey! lock msgbox @icant boxset 0x6 applymovement 0xFF @back waitmovement 0x0 release end #org @icant = I can't go in there without\nmy pokedex #org @back #raw 0x00 0xFE #org @end release end --- Running shoes Script #Dynamic 0xoffset #org @start checkflag 0x82F if 0x0 goto @hey! if 0x1 goto @end end #org @hey! lock msgbox @icant boxset 0x6 applymovement 0xFF @back waitmovement 0x0 release end #org @icant = I can't go in there/nwithout my running shoes. #org @back #raw 0x00 0xFE #org @end release end putting them together is your job. [Its sooo easy] And I never included the Battle with May/Brendan.. that would go into too much detail. -- You should inderstand it now, if you dont, just read a tutorial. This is the best one in my opinion: http://www.pokecommunity.com/showthread.php?t=146174 Its called "Seth The Rom masters XSE scripting Tutorial" Hope you Exel! And good luck Scripting! |
note:i want the mum to go to you and then the text but it does the text before the movement.
Game: fire red Script Type: person script Script: Spoiler:
|
Quote:
|
Quote:
#dynamic 0x800000 #org @start checkflag 0x900 if 0x0 goto @go end #org @go lockapplymovement 0x1 @move waitmovement 0x0 msgbox @talk'"Hey [player] how are you ? yes i kn..." callstd 0x6 setflag 0x900 release end #org @move #raw 13 'Step Right (Normal) #raw 11 'Step Up (Normal) #raw 3 'Face Right #raw FE 'End of Movements #org @talk [I]= Hey [player] how are you ? yes i know\nit's cold in the dempsi region.\poh yeah pro.oak wants to see you\n about something. That should work as you want it to and it should save bytes also if your mums not giving you a pokemo you shouldn't use flag 828 |
Quote:
Also, usually flags are used to skip something that got executed already, like you can see in the script below: Spoiler:
|
Hackmew, we need a new rule. No requesting scripts, sire!
'nyway, this thread's a great idea an' all. |
Quote:
|
I am trying out a yes/no script I found in a tutorial, but I am having some trouble. Originally it said I was missing #define or parameter tags so I added them to the places that needed them and then complied. When I tested out in the rom "Yes or No?" appeared and so did the box. When I answered the rest of the text didn't appear but I was able to walk around.
Game: Fire Red System: XSE Type: Yes/No Script Script: Spoiler:
|
Quote:
Spoiler:
|
Quote:
It won't let me compile because "Error 13 'type mismatch' on line 8 Missing #define or parameter. Line: compare LASTRESULT 0x1" pops up. |
Quote:
|
Quote:
Spoiler:
|
Quote:
|
Quote:
|
Try "if 0x1 goto".
:\ I'm really stuffed over this. It works perfectly on my ROM. Hey, remember to take the start offset from the compiled script and put THAT into the person's script offset in A-Map. |
Quote:
Thanks for your help anyway. Hopefully I'll figure out what is wrong sooner or later. |
Quote:
|
I need a bit of help with a trainerbattle.
The script works fine, so does the battle but when I am in the trainer's sight, the trainer doesn't move towards me so I have to talk to him to battle. What is wrong? Trainer's settings in A-map Spoiler:
Trainerbattle Script Spoiler:
Thanks in advance |
Quote:
So make sure you extract all files from the zipped archive. LASTRESULT is defined in the std.rbh file indeed. Anyway, remember the script type isn't "Yes/No script" and the like. See the first post for further details. Quote:
http://i40.*.com/2mk86x.jpg Anyway, next time please provide all info okay? |
Thanks HackMew.:classic:
|
Thanks Hack Mew, it turned out I forgot to extract the extra files.
|
Can someone show me an example of the trainerbattle 0x6 and 0x7? Thanks in advance.
|
Quote:
|
You forgot a 0x0 at the end of the giveitem command.
|
When I use this Script and talk to the person the game just freezes and the message box does not show up.
Game: FireRed Type: Person Event Editor: Xse Script: Spoiler:
|
Quote:
|
Thanks. Now its working properly.
|
I just want to say, that there should be a new rule added to the first post.
"If you want to thank somebody, do it via PM instead of spamming this thread" or something like that. |
Quote:
Quote:
EDIT: Rules updated, everyone! Make sure to read them once more, no matter if you did already. |
Game:Pokemon Dawn of Oblivion
Type:FireRed Editor:XSE Script: Spoiler:
Screenshots and/or Videos: None This script is supposed to be a one time only, sorta of like the Oak script that stops you from going out onto the grass without Pokemon. All it's doing now is freezing up the game, and it does that when it's not even on the correct tile. Help would be appreciated greatly; it's the first time I've done a script as complex as this. |
Quote:
Anyway... You're missing a release in the first part of the script and you're missing the End of Movements (0xFE) too. Also, you're missing the callstd/boxset as well. Spoiler:
|
3 Attachment(s)
ROM: Fire Red
Version: 1.0 Script Editor: XSE Script Type: Person Event Event pictures: See attachments Script Spoiler:
This should be a simple wildbattle with a Suicune. When I talk to the Suicune, the screen turns black (I think that's the fadescreen command happening too early) and then the battle happens. When ever the battle finishes, the screen doesn't fade and the hidesprite command doesn't happen. A-map settings Spoiler:
Thanks in advance! |
don't know if this is a script problem or not but what gameboy colors do I use if I want red and blue to look like the colors from yellow
|
Omg my script..
Spoiler:
[Solved] |
Quote:
|
Quote:
BTW, #raw 0x68 is closeonkeypress. Don't forget to use spoilers, okay? |
Quote:
When the flag is set, it just ends, it doesn't go to the message @milk thing (don't ask its a very weird script......) |
Quote:
|
Script
Spoiler:
[Solved] |
This script was fixed but it stiil doesn't work th way I want it to.
ROM: Pokemon Fire Red Version: 1.0 Script Editor: XSE Script type: Person Spoiler:
A-map settings Spoiler:
This is a wildbattle with a Suicune. Firstly, the fadescreen command happens before the battle ends, it happesn when I talk to the Suicune. Secondly, the Suicune temporarily disappears after the battle and then returns when I move. If I put in a random ID code, it disappears permanently. Please help me. Thanks in advance! Pictures Spoiler:
|
lol sorry,
Game: Pokemon Fire red Type: Person Editor: XSE Script: Spoiler:
A kinda noobish question.... When the flag is set, it just ends, it doesn't go to the message @milk thing (don't ask its a very weird script......) |
Quote:
Judging by what your script says, this should be the solution: Quote:
|
Spoiler:
A kinda noobish question.... When the flag is set, it just ends, it doesn't go to the message @milk thing (don't ask its a very weird script......)[/QUOTE] The script is kinda screwed up pretty bad. Spoiler:
Oh, N3O, try running on a different map. :\ |
Slight issue with a give pokemon script
The actual give pokemon script works fine. Don't giet me wrong, it gives you a lv 5 Growlithe if you talk to the right guy. The problem is, i want it to be my starter pokemon. So, how do I get the Pokemon menu to appear when i talk to the guy? Because the pokemon shows up in battle, but not in the start menu. Here is the script, can someone edit it so it also makes the pokemon menu show up and highlight the changes?
Thanks #ORG $begin lock faceplayer checkflag 0x202 if B_true goto $done message $here boxset 6 givepokemon 58 5 0xD setflag 0x202 release end #ORG $done message $nomore boxset 6 release end #ORG $here $here 1 = (Text Here) $ORG $nomore $nomore 1 = (Text Here) |
Quote:
I changed them both for you in the quote above, I just wanted to tell you your mistakes.. And nextime.. remember to add a spoiler. If you need Any scripting assistance , come to me when im online. Ill help you.(Ill help you Fast as i can) |
Wow, thanks so much, i really appreciate it
|
Game:Fire Red
Editor:XSE Type:person event When i talk to the person,the game freezes with not message box appearing. Spoiler:
|
Having trouble with a rather troublesome script.
Script type: Person Script ROM:FR Script Editor:XSE Spoiler:
When I talk to it, the message appears and I move, but the Spearow doesn't, :\ Then the boy talks but doesn't move. He then just disappears. |
Quote:
Example: Example:
Don't use lock, faceplayer, and release. Boxset 0x2 can replace them. :] |
Hi, i'm not sure if this is scripting, but how on earth do you make a trainer battle you, from a sprite you have made from the ground up.
|
Quote:
And another one: Script type: Trigger script ROM: FR Script Editor: XSE Spoiler:
I move and the camera moves, but nothing else. I need help on these BADLY! My beta is due tomorrow and these are the final scripts I need! [/SOLVED!] |
Quote:
Quote:
Edit: I have a question, suppose I want the player to surf, but not use surf. Just the animation. How do I do it? I remember there's a special for it. Thanks. |
could someone help me, I need a script that switchs the OW sprite when a certain event happens.
Example: Changing clothes for Pokemon contest |
Quote:
And Hiche, it's special 0x161. |
Thanks Vrai. Do I need a waitstate under it?
|
Quote:
|
National Dex
In my hack, of Fire Red I have changed one of the starter Pokemon to a Larvitar, which means the player needs the National Dex to have seen it. I can't seem to get Oak to give the player a national dex. I looked around and saw some one said to put in "special 0x1F3" in the script I have tried adding it in, replacing all the other specials with it and putting it after all the specials, but it just makes the game freeze. Can someone please tell me what I'm doing wrong? I'm using XSE
Thanks and Merry Christmas Spoiler:
(Sorry if I put in too much of the script!) |
Quote:
|
Game: FireRed
Type: Person Event Editor: XSE Script: Spoiler:
The problem is you always get the right answer... |
[SOLVED]Game: Firered BPRE
Type: Trigger Editor: XSE Script: This script is supposed to allow the player to cross a canyon with a hoverboard. The game does not activate any of the movements. Spoiler:
|
Not good..
Spoiler:
Spoiler:
[Solved] My Solved Idea is good! |
Quote:
You could put the script like this. Well, this is how I'm putting it and people might put it a different way, but it should have the same result. Changes in bold. Boxset 2= lock, boxset 6 & release. I don't know how to make a bigger earthquake. More specials would make more earthquakes. |
Quote:
Spoiler:
Hackmew probably will fix it, but.. Try this. I do not think it will work, but try. Lol. |
Quote:
Spoiler:
Quote:
Quote:
Spoiler:
Remember that after you compile it, you need to copy the offset shown in the Compiler Output. The #dynamic value is just what XSE use to start searching free space, but it does not mean the script will be compiled at that offset obviously. Quote:
Spoiler:
Quote:
Quote:
Quote:
Spoiler:
Quote:
Did you try compiling it to a clean ROM? Quote:
Spoiler:
|
It must have been the rom I first compiled to that added those in there. However I tried it in a clean rom and it still does not work. I am going to try Hiche's version.
|
Quote:
Besides, new rule: add a [SOLVED] tag to your post when everything is fixed and working. I'll add that to the first post right now. Please edit your old post to meet the new requirements. Don't forget to always use spoilers when posting scripts. |
Yea, you can't return when you use goto. Replace goto with call. I do not think it will work, but it's worth a try.
MSG_KEEPOPEN in the new version of XSE, is boxset 4, right? |
Quote:
|
so i made this pokemart
Spoiler:
it works perfect, except when you enter the buy or sell menu, and then exit the conversation, you control the mart guy until you enter a building. its really wierd and im not sure if its the script or what. |
Mart Script
Please Go Read a Tutorial. You have lots of mistakes in there, not mistakes,
Stuff thats not added. |
Quote:
Spoiler:
Bold = This just makes it look more professional, but it is not nessecary. You can also customize them, by taking the last value of each setvar and changing them. You shouldn't use the same ones all the time, especially in the same map. These values, I found them to be the strongest, realest earthquakes. Enjoy ^_^ |
so i tried it this way.
Spoiler:
still doesn't work. so maybe someone can actually help me this time instead of telling me: "oh you have mistakes" which is obvious. Edit: actually, there were no errors in the first place, its just for some reason, i have to make him face right instead of down. |
Quote:
Also, since you're using an old XSE, please update your copy. |
ok well I updated XSE. whats new in this version? and how did you know I had an old version?
|
can you explan me how to use "callasm" in Ruby?
And when I use "showpokepic", the color of Pokemon is changed? |
Quote:
Code:
Quote:
|
Can someone show me an example of a Wildbattle script (legendary) for Emerald Version...
Thanks in advance ^^ |
Quote:
|
Quote:
thanks anyway... here's my script, the cry and the message box appears, but the battle don't start... please tell me whats wrong Spoiler:
|
The command "battle" doesn't exist in XSE. Try "wildbattle".
|
Quote:
|
Game: Fire Red
Type: Trigger Editor: eXtreme Script Editor Problem: The script won't even start and the game freezes. Script: Spoiler:
|
Quote:
|
[SOLVED]
Quote:
Note: since I don't know what the people # is on AM (the Mewtwo one) I just used 0x1 as a matter of example. Change it eventually. Spoiler:
Quote:
Quote:
Please update your copy of XSE and read the new guide as well. Don't forget to se up the trigger like this: http://i35.*.com/2ev9k40.jpg Spoiler:
EDIT: Proving a proper example for the use of the [SOLVED] tag. |
Quote:
|
Quote:
And that I was missing a param for message. The rest is perfect though. See the script below: Spoiler:
|
Help with this give away script using XSE
Whats wrong with it? He say's something wrong on line 5 Code:
|
You have the new XSE, right?
You have to move the boxset type up to the msgbox line now. So, it'd be: Code:
|
@vrai :
I must change the Code:
Code:
|
Yes, do that. And remove the "boxset 0x5" line. :D
|
Ichiro, I fixed your script
Spoiler:
Also, read the new XSE guide. It's very helpful. |
Thanks a lot both of you.
Can somebuddy tell me how to make a give away script with no trainer? i mean you walk on one spot en then you get that pokemon |
how do I change the title screen, you know the title screen that pops up after the intro with the name of the game on it, how do I change the picture on it
|
I DID IT!! =D
and here's the script: Spoiler:
but how do I change the background and the music by the way... the battle music is strange... |
what does that have to do with my question
|
Quote:
Quote:
|
Quote:
We're starting to get out of the correct format. Everyone else who needs help with a problem here needs to post in the format specified in this post. If you don't, you probably won't get help. :D |
Quote:
Quote:
|
| All times are GMT -8. The time now is 2:55 AM. |
![]()
© 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.