![]() |
megiddo... maybe it's because your checkflag 0x205 doesn't match with your setflag in #org $further.try to notice that your setflag there is setflag 0x250... :\
|
Script help!
Whenever I try to make a script and put into my hack, it doesn't work! I keep trying to enable the national dex, but whenever I talk to the person, a box with an arrow in the upper-right corner keeps appearing and then the rom will crash/freeze. Can anyone help me?
|
I decided to do a Pokemart script, everything works fine and great but I noticed something. Whenever I talk to the mart person he doesn't do a usual greeting (like "hey what do you need.") and it just shows the Buy, Sell, and See Ya option box. I thought it would be simple to fix and just smack in a textbox command with the appropriate greeting. Whenever I do I get weird results whatever textbox I do (6, 4, etc.)
So my question is how do I make a greeting appear in the beginning of a pokemart script without it messing up? Here's the script. HTML Code:
|
The 0x205 flag is already set. That 0x250 is to make the overworlds permanently disappear.
|
Quote:
I'm not so fond of mart scripts, I'd rather just edit them in A-Mart. I'll edit this post in a few minutes, just lemme check :). |
Quote:
About the second problem, the flag 0x209 isn't setting. I can tell because of this. Code:
Quote:
Code:
If not the boxset 4 does pretty much the same thing. |
Okay thanks. I'll try that. I hope it works.
|
*looks for scripting help all over the place*
How the heck did I miss this topic? XD Well, I posted this in the "Simple questions" topic because somehow, I didn't notice this topic was here. Quote:
The following is the one script that worked Code:
or at least point me in the direction of a tutorial that uses this format AND explains how to do what I need done... So far, all the tutorials I've found show how to do it, but in the wrong format, or show me how to script in the right format but not how to script this particular event. Just in case anyone willing to help is unclear on what I'm looking for, the script should do the following. 1) Can be applied to an object or person 2) Only activates when clicked on/spoken to 3) Makes the screen shake a bit 4) Initiates a Pokemon Cry of choice 5) Text box goes here (I can edit this myself) 6) Initiates a pokemon battle against a specified pokemon of specified level 7) After the battle, the event cannot be re-triggered unless game is reset to a point before the event took place. I'll worship anyone who helps me get this thing over with. I've been gnawing at this for months ;_; |
It worked, but now this one, which is almost exactly the same, except it checks for a different pokemon doesn't work.
#ORG $begin checkflag 0x209 if b_true goto $done checkflag 0x207 if b_true goto $battle release end #ORG $done release end #ORG $battle setflag 0x209 playsound 0x13B nop nop applymovement 0x01 $rivwalk applymovement 0x03 $compan pausemove 0 applymovement 0xFF $hr pausemove 0 trainerbattle 1 0x148 $before $after $further release end #ORG $rivwalk #RAW 0x12 #RAW 0x12 #RAW 0x12 #RAW 0x12 #RAW 0x10 #RAW 0xFE #ORG $compan #RAW 0x12 #RAW 0x12 #RAW 0x10 #RAW 0x10 #RAW 0xFE #ORG $hr #RAW 0x01 #RAW 0x62 #RAW 0xFE #ORG $before $before 1 = Before we leave I want to kick\nyour butt. #ORG $after $after 1 = Wha?! #ORG $further message $your boxset 6 applymovement 0x01 $again applymovement 0x03 $again2 pausemove 0 #raw 0x53 #raw 0x01 #raw 0x00 #raw 0x53 #raw 0x03 #raw ox00 setflag 0x250 fadesound 0x117 nop nop release end #ORG $your $your 1 = You're better than I thought...\p\v\h01.\p\v\h01.I'll win next time. #ORG $again #RAW 0x12 #RAW 0x10 #RAW 0x10 #RAW 0x10 #RAW 0x10 #RAW 0x13 #RAW 0x10 #RAW 0xFE #ORG $again2 #RAW 0x10 #RAW 0x10 #RAW 0x10 #RAW 0x10 #RAW 0x12 #RAW 0x10 #RAW 0xFE It does nothing. I only changed the trainer battle #, the movements, and one of the checkflags. |
Thx Aquila, it finally compiled.
The problem is, it doesn't burn. It says enter offset for $3, but I can't see the mistake O.o edit: figured it out, you use $binary instead of #binary. |
Quote:
|
Quote:
If I need to insert that into hex, I'm willing to. I'll be more than happy to learn how to. |
megiddo, what seems to be the problem? :\
what happens to the script? :\ |
The problem is that this one does absolutely nothing, while as this one works perfectly.
#ORG $begin checkflag 0x209 if b_true goto $done checkflag 0x205 if b_true goto $battle release end #ORG $done release end #ORG $battle playsound 0x13B nop nop applymovement 0x01 $rivwalk applymovement 0x03 $compan pausemove 0 applymovement 0xFF $hr pausemove 0 trainerbattle 1 0x147 $before $after $further release end #ORG $rivwalk #RAW 0x12 #RAW 0x12 #RAW 0x12 #RAW 0x10 #RAW 0xFE #ORG $compan #RAW 0x10 #RAW 0x12 #RAW 0x12 #RAW 0x12 #RAW 0xFE #ORG $hr #RAW 0x01 #RAW 0x62 #RAW 0xFE #ORG $before $before 1 = Before we leave I want to kick\nyour butt. #ORG $after $after 1 = Wha?! #ORG $further message $your boxset 6 applymovement 0x01 $again applymovement 0x03 $again2 pausemove 0 #raw 0x53 #raw 0x01 #raw 0x00 #raw 0x53 #raw 0x03 #raw ox00 setflag 0x250 fadesound 0x117 nop nop setflag 0x209 release end #ORG $your $your 1 = You're better than I thought...\p\v\h01.\p\v\h01.I'll win next time. #ORG $again #RAW 0x12 #RAW 0x10 #RAW 0x10 #RAW 0x10 #RAW 0x10 #RAW 0x10 #RAW 0x13 #RAW 0x10 #RAW 0xFE #ORG $again2 #RAW 0x10 #RAW 0x10 #RAW 0x10 #RAW 0x10 #RAW 0x10 #RAW 0x12 #RAW 0x10 #RAW 0xFE |
Can i post a Gold/Silver scripting problem?
|
Quote:
|
Hi guys!
I made a script and it doesn't work how I wanted (everytime I make a script, the script does do cra*) I want to check 9 trainers if they're beaten. If yes, then he says something and moves. When not, then he only print a message. Here's the script : Quote:
----------------------------------------------------------------------------------------------------------------------- I have also a problem with this simple GiveEgg-Script (a person gives you a Dratini Egg and says something) : Quote:
I would be glad if you can help me. Thanks in Advance. |
megiddo, I think I found the problem to your script...
the script that worked, well, worked fine, why? Because the flag 209 isn't set yet, but after the script was finished, the flag was set... And in the second script, and since the flag 209 was already set, it automatically proceeds to #org $done... I hope you get what I meant... Code:
Code:
|
No. It was when the 209 was not set. Instead of checking for one starter, it checks for another. Only one event happens.
|
Quote:
The script would look like this. Code:
|
would someone know how to change the magma event in rustburo city so that the event happens after you get the second badge?
coz i switched the first and second gyms around... |
How do I change what happens when you get gym badges (Fire Red). Like when you get badge whatever to get surf. Is it possible to change it so a different gym badge is required?
|
#org $start
checkflag 0x200 if b_true goto $done message $go boxset 6 pausemove 0 checkflag 0x60 setflag 0x60 release end #org $done release end #org $go $go 1 = To the lake! #raw 53 #raw 3 #raw 00 Release End why wont this work, its a vanish sprite. it wont compile either. help asap |
@ megiddo,
I don't get you... but the flag has been set, so the script will proceed to $done. @ drevilg, it's because you didn't separated them. Code:
|
No it hasn't. That event only happens if you have a certain starter. It sets it then, yes. I chose another starter, the event never happened, thus that 209 was never set.
|
| All times are GMT -8. The time now is 2:34 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.