![]() |
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:
|
| 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.