• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Archive] Script help thread

Status
Not open for further replies.
Why do you need that checkflag?
O.o
Anyway, if it only freezes, it's probably the script tile.
On the script tile, put Unknown 0003 and Var Number 5040.

Ryousha, I copied that out of XSE.
After it got decompiled, I added that part...
Hmm...I should never trust FSF again. It said there was 4000 bytes of free space. And it still says there's over 2000!
:D
 
Why do you need that checkflag?
O.o
Anyway, if it only freezes, it's probably the script tile.
On the script tile, put Unknown 0003 and Var Number 5040.

Ryousha, I copied that out of XSE.
After it got decompiled, I added that part...
Hmm...I should never trust FSF again. It said there was 4000 bytes of free space. And it still says there's over 2000!
:D

I use hex to find my free space :\

FSF is bad, cause you can find a space that doesnt really have space and overwrite something important like the battle system(I accidently erased it on Dark Era, good thing I backed up.)
 
Heh. Me too. Well, until 3 days ago. When I forgot.
Nope, Ryousha, the thing doesn't work.
Repointed it into free space (after 800000) and it still reverts.

EDIT: I accidentally put it into used space.
And it screwed up your house.
Luckily, I have a backup with the script unreverted and all.
Now I just have to remap Viridian Forest and Pewter City. Damn.
 
Last edited:
You're supposed to put in here People Number.
This script is missing a lot. Wheres the animation, healing place, sound etc.

Well, That was my first script, I have gotten MUCH better at this whole "scripting" thing now, but I don't know how to make her turn to the side and make the animation of the pokeballs glowing from healing, or the screen behind her flash... To make her turn to the side, do I just use applymovement? or is there a "special 0xXX" command that I use, and the same question goes for the screen in that is behind her, and the flashing pokeballs... And for sound, I haven't ever used it before... I have a general idea though... I know that was alot to ask, but if you can help, that would be great! Also, sorry for mangling your quote...
 
Last edited:
Why do you need that checkflag?
O.o
Anyway, if it only freezes, it's probably the script tile.
On the script tile, put Unknown 0003 and Var Number 5040.

Ryousha, I copied that out of XSE.
After it got decompiled, I added that part...
Hmm...I should never trust FSF again. It said there was 4000 bytes of free space. And it still says there's over 2000!
:D
Thanks so muchh! That fixed it :)
 
Shinies?

Alright, I have searched around and around and it seems that there are some example scripts for shiny pokemon and i can not seem to find a decent one.

I'm using XSE and the shiny hack maker. I have basic (very basic) scripting knowledge and have tried to use pokescript, scripted, pksv, and countless others with out luck. XSE is what I've been using for all of my beginner scripting and I wouldn't like to stop and try to learn a new or slightly different scripting language.

So what I'm asking for is a guide for shiny pokemon, telling me what the shiny hack generator does and what I'm calling when I use the callasm function or whatnot on XSE. An example of a question would be: Is it calling on the alternate pallet of that specific pokemon or just giving sort of an alternate pallet function?

So please, if any of the scripting gods lurking around the forums want to give an in depth guide on shinies and what is actually going on, it would be much appreciated.
 
Alright, I have searched around and around and it seems that there are some example scripts for shiny pokemon and i can not seem to find a decent one.

I'm using XSE and the shiny hack maker. I have basic (very basic) scripting knowledge and have tried to use pokescript, scripted, pksv, and countless others with out luck. XSE is what I've been using for all of my beginner scripting and I wouldn't like to stop and try to learn a new or slightly different scripting language.

So what I'm asking for is a guide for shiny pokemon, telling me what the shiny hack generator does and what I'm calling when I use the callasm function or whatnot on XSE. An example of a question would be: Is it calling on the alternate pallet of that specific pokemon or just giving sort of an alternate pallet function?

So please, if any of the scripting gods lurking around the forums want to give an in depth guide on shinies and what is actually going on, it would be much appreciated.

I would like to ask this same question.. I am sorry I cant give you much information, but I can tell you the definition of "callasm"

callasm is like the call command, only callasm, brings up a custom function (One that isn't originally part of the ROM [an extreme example would be the "Day and night" function]) The action of fighting a shiny pokemon is not part of the original game, and is usually a random event, but using the shiny hack maker inserts a special script that calls forth a shiny pokemon.

I do not know how to use the shiny hack maker, and would like to know how as well, thank you.
 
I have a few scripting questions relating to time. I'm no n00b to hacking or scripting (since I'm not far from becoming an advance scripter). I'm wondering....

Spoiler:


Spoiler:
 
I think there's boxset 2 aka msgbox2. It's used for multiple choice. Zel did something with how many steps you take. There's probably a way to do it with level scripts as well.
 
Thanks megiddo that is what i was looking for =]

Now for my next question how do i make it so at least one of your pokemon have to know a move to do something. Like HMs. How do i make it so that your Pokemon has to know like uhm...Water Spout to do something..that would work like a check attack (which im pretty sure that command doesnt exist)
 
Can you tell me about "cleartrainer flag"?
And What is flags which make HM can use outside Battle? (Ruby Version)
 
There is a raw for that. #raw 0x7C 0x01 0x00 The last two values are the attack value reversed. That's pound. You can find a table here

once again Megiddo comes thru =] thanks...and BTW is the raw followed by an if line?
 
Clear trainer flag allows you to battle a trainer again. The flag list for hm use aka badges' flags can be found in thethethethe's tutorial.

QM - Use this
compare LASTRESULT 0x06
if 1 call $
That makes it goto $ if none of your pokes have the attack.
 
Clear trainer flag allows you to battle a trainer again. The flag list for hm use aka badges' flags can be found in thethethethe's tutorial.

QM - Use this
compare LASTRESULT 0x06
if 1 call $
That makes it goto $ if none of your pokes have the attack.

i get it...the 0x06 means that none of your pokemon know the move right? so in reverse i could put 0x05 to make it if one of my pokemon do kno the move then i cant do whatever?
 
Well if you use 0x05 I think it'll only check your last pokemon for the move.

ah i c..thanks a bunch for all your help..
 
ppl i'm trying to learn how to script but i dont know a thing. seriously. i opened some scripting tutorials here at pc's and i felt like spinda. my question is: can u point me to the most rookie-friendly around, or at least give me some starter tips to at least understand the tutorials?
tkx

i have alredy downloaded XSE
 
I need some help with this script.

Code:
#Dynamic 0x26D37C

#org @main
checkflag 0x828
if 0x1 goto @end
applymovement 0x1 @exclaim
waitmovement 0
msgbox @wait
boxset 6
applymovement 0xff @playermove
applymovement 0x1 @move1
waitmovement 0
msgbox @here
boxset 6
givepokemon 0x155 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @recieve
boxset 4
waitfanfare
#raw 0x68
msgbox @rename
boxset 5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @care
boxset 6
setflag 0x828
release
end

#org @name
call 0x1A74EB
return

#org @end
release
end

#org @exclaim
#raw 0x52 0x62 0xFE

#org @move1
#raw 0x10 0x10 0x10 0x10 0x12 0x12 0x12 0xFE

#org @playermove
#raw 0x03 0xFE

#org @wait
= Wait, dont leave yet.

#org @here
= Here is you pokemon sweetie!

#org @recieve
= You recieved a Cyndaquil!

#org @rename
= Would you like to rename him?

#org @care
= Take good care of you and your\nPokemon sweetie!

The entire script works fine, but the Pokemon u get is Spheal, when it's supposed to be Cyndaquil.
How do I fix this? :\
 
I need some help with this script.

Code:
#Dynamic 0x26D37C
Code:
[B]#org @main[/B]
[B]checkflag 0x828[/B]
[B]if 0x1 goto @end[/B]
[B]applymovement 0x1 @exclaim[/B]
[B]waitmovement 0[/B]
[B]msgbox @wait[/B]
[B]boxset 6[/B]
[B]applymovement 0xff @playermove[/B]
[B]applymovement 0x1 @move1[/B]
[B]waitmovement 0[/B]
[B]msgbox @here[/B]
[B]boxset 6[/B]
[B]givepokemon 0x155 0x5 0x0 0x0 0x0 0x0[/B]
[B]fanfare 0x13E[/B]
[B]msgbox @recieve[/B]
[B]boxset 4[/B]
[B]waitfanfare[/B]
[B]#raw 0x68[/B]
[B]msgbox @rename[/B]
[B]boxset 5[/B]
[B]compare LASTRESULT 0x1[/B]
[B]if 0x1 gosub @name[/B]
[B]msgbox @care[/B]
[B]boxset 6[/B]
[B]setflag 0x828[/B]
[B]release[/B]
[B]end[/B]
 
[B]#org @name[/B]
[B]call 0x1A74EB[/B]
[B]return[/B]
 
[B]#org @end[/B]
[B]release[/B]
[B]end[/B]
 
[B]#org @exclaim[/B]
[B]#raw 0x52 0x62 0xFE[/B]
 
[B]#org @move1[/B]
[B]#raw 0x10 0x10 0x10 0x10 0x12 0x12 0x12 0xFE[/B]
 
[B]#org @playermove[/B]
[B]#raw 0x03 0xFE[/B]
 
[B]#org @wait[/B]
[B]= Wait, dont leave yet.[/B]
 
[B]#org @here[/B]
[B]= Here is you pokemon sweetie![/B]
 
[B]#org @recieve[/B]
[B]= You recieved a Cyndaquil![/B]
 
[B]#org @rename[/B]
[B]= Would you like to rename him?[/B]
 
[B]#org @care[/B]
[B]= Take good care of you and your\nPokemon sweetie![/B]

The entire script works fine, but the Pokemon u get is Spheal, when it's supposed to be Cyndaquil.
How do I fix this? :\


Find Cyndaquils National Dex number then put it in hex, then replace the 155

replace 155 with 9B
 
Status
Not open for further replies.
Back
Top