• 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.
If this a regular tile script, I don't know what's up. If this is a level script, goto the grayed out offset in a hex editor you should see something like 00variablevalue8008 and if there's FFFF after the 08, put 0000.
 
I need help with a script so that a man gives you a shiny Eevee level 70. I tried this on Emerald, and the game crashed. If anyone could help me, I would greatly appreciate it. Thanks!
 
I need help with a script so that a man gives you a shiny Eevee level 70. I tried this on Emerald, and the game crashed. If anyone could help me, I would greatly appreciate it. Thanks!

As far as i know hacking a shiny is quite difficult, but anyway if you want help then you are gonna have to post your script
 
I cannot add the shiny part, so there's where I need help with. Here is the script:
#Dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x828
if 0x0 goto @give
if 0x1 goto @sry
release
end

#org @give
givepokemon 0x85 0x46 0x0 0x0 0x0 0x0
fanfare 0x13E
waitfanfare
setflag 0x828
message @yay
boxset 6
release
end

#org @sry
message @sorry
boxset 6
end

#org @yay
= You got Eevee!

#org @sorry
= Eevee can evolve into 5 \ndifferent forms.
 
Code:
#Dynamic 0x800000
 
#org @start
lock
faceplayer
checkflag 0x828
if 0x0 goto @give
checkflag 0x828
if 0x1 goto @sry
release
end
 
#org @give
givepokemon 0x85 0x46 0x0 0x0 0x0 0x0
fanfare 0x13E
waitfanfare
setflag 0x828
message @yay
boxset 6
release
end
 
#org @sry
message @sorry
boxset 6
end
 
#org @yay
= You got Eevee!
 
#org @sorry
= Eevee can evolve into 5 \ndifferent forms.

try that i think...
 
Did the way to write applymovement change from Pokescript to XSE?

No, applymovement does not change from Pokescript to XSE, well, not by much...

for instance, this is a simple applymovement command in pokescript...

applymovement 0xXX $move


but XSE is


applymovement 0xXX @move

not much of a difference

Now for my question...

I noticed the "cry" command is different in pokescript than it is in XSE,

Cry in pokescript is made out as:

command bank pokemon
cry 0xa1 0x6 (this is a charizard cry)

but an XSE script for cry is different...

Command pokemon effect?
cry 0x19 0x?? (this would be a pikachu if I knew what effect was...)

What is the "Effect" ???


This is what XSE has in its "Command help"

Spoiler:


If anyone can tell me what to put in the "Effect#" area, that would be great! TY in advanced
 
Last edited:
I have a large XSE script (I'm having trouble switching from pokescript). Here it is:
Spoiler:

I know that the offset might be wrong but I can change that on my own. later
 
Another question on shinies.

Since my last question wasn't answered, I've decided to get a shiny the hard way. Which is to just keep getting pokemon and hoping. So here's my questions:

1. Can a pokemon be shiny if it is given to you by a simple givepokemon script?
2. If I was to give myself 100 of the same pokemon in one script, would that count as 100 different chances to get a shiny or just 1 chance?
3a. Does the likelihood of a shiny rely of the Trainer ID?
3b. If so, does that mean it would be more likely to get a shiny if I keep restarting the game?
4. If I wrote a script up that gave me 5 different pokemon at once, would it be 5 different chances for a shiny or just 1 still?
5. Is there an easier way to specify the number of pokemon given then just repeating
givepokemon 0x0 0x0 0x0 0x0 0x0 0x0
givepokemon 0x0 0x0 0x0 0x0 0x0 0x0
givepokemon 0x0 0x0 0x0 0x0 0x0 0x0
givepokemon 0x0 0x0 0x0 0x0 0x0 0x0?


I'd also really appreciate if somebody could help me out with the shiny hack creator. I understand what callasm means at this point and how it all works, but I cannot seem to get a script working in XSE. If someone could write up a sample script it would help all of us newbies.
 
Since my last question wasn't answered, I've decided to get a shiny the hard way. Which is to just keep getting pokemon and hoping. So here's my questions:

1. Can a pokemon be shiny if it is given to you by a simple givepokemon script?
2. If I was to give myself 100 of the same pokemon in one script, would that count as 100 different chances to get a shiny or just 1 chance?
3a. Does the likelihood of a shiny rely of the Trainer ID?
3b. If so, does that mean it would be more likely to get a shiny if I keep restarting the game?
4. If I wrote a script up that gave me 5 different pokemon at once, would it be 5 different chances for a shiny or just 1 still?
5. Is there an easier way to specify the number of pokemon given then just repeating
givepokemon 0x0 0x0 0x0 0x0 0x0 0x0
givepokemon 0x0 0x0 0x0 0x0 0x0 0x0
givepokemon 0x0 0x0 0x0 0x0 0x0 0x0
givepokemon 0x0 0x0 0x0 0x0 0x0 0x0?


I'd also really appreciate if somebody could help me out with the shiny hack creator. I understand what callasm means at this point and how it all works, but I cannot seem to get a script working in XSE. If someone could write up a sample script it would help all of us newbies.

slow down god it sound like your rushing.
1.yes
2.the odds are way bigger than that and the program doesn't work like that
3.IDK
4.still one
5.yep I think you have to do that
okay if you're trying to get a shiny pokemon look at thethethethe's scripting tutorial it says something about making shiny pokemon at the bottom.
 
Since my last question wasn't answered, I've decided to get a shiny the hard way. Which is to just keep getting pokemon and hoping. So here's my questions:

1. Can a pokemon be shiny if it is given to you by a simple givepokemon script?
2. If I was to give myself 100 of the same pokemon in one script, would that count as 100 different chances to get a shiny or just 1 chance?
3a. Does the likelihood of a shiny rely of the Trainer ID?
3b. If so, does that mean it would be more likely to get a shiny if I keep restarting the game?
4. If I wrote a script up that gave me 5 different pokemon at once, would it be 5 different chances for a shiny or just 1 still?
5. Is there an easier way to specify the number of pokemon given then just repeating
givepokemon 0x0 0x0 0x0 0x0 0x0 0x0
givepokemon 0x0 0x0 0x0 0x0 0x0 0x0
givepokemon 0x0 0x0 0x0 0x0 0x0 0x0
givepokemon 0x0 0x0 0x0 0x0 0x0 0x0?


I'd also really appreciate if somebody could help me out with the shiny hack creator. I understand what callasm means at this point and how it all works, but I cannot seem to get a script working in XSE. If someone could write up a sample script it would help all of us newbies.

Hey, twilight, get your facts straight!
1. Yes
2. Probably 100 different chances of 1/1892 chance of getting a shiny.
3. Dunno
4. 5?
5. Probably like that...Normally you don't get more than one Pokemon at a time...
 
for some reason whene i try burnig any script it says it has to be pushed can some one help with this

it means that you've missed something...
for instance, you wrote...
Code:
#org $start
checkflag 0x200
if b_true goto [COLOR="Red"]$done[/COLOR]
message $hi
boxset 6
release
end

#org $hi
$hi 1 = Elow!

there. as you can see, there's no #org $done...
or you can be misspelled it...
Code:
#org $start
checkflag 0x200
if b_true goto [COLOR="Red"]$done[/COLOR]
message $hi
boxset 6
release
end

#org $hi
$hi 1 = Elow!

#org [COLOR="Red"]$doen[/COLOR]
release
end
that's one example why it asks you to push it... :\

 
I have a large XSE script (I'm having trouble switching from pokescript). Here it is:
Spoiler:

I know that the offset might be wrong but I can change that on my own. later
can someone plz answer me and dark lakitu it is kinda like winning the lottary even if you give your self 1896 pokemon your not garenteed a shiny.
 
hi to all i have made a trainer battle and after you beat him he gives you a pokemon but i have inserted the script and wen i talk to event the game freezes
can anyone help

here is the script:
#org $go
checkflag 0x820
if 0x1 goto $done
trainerbattle 1 0x001 $before $after $further
end
#org $done
message $beaten
boxset 6
release
end
#org $before
$before 1 = Hey,\nlet's battle!
#org $after
$after 1 = I......\nI.......\pI.....\nlost!!!!!
#org $beaten
$beaten 1 = You already won, why are you\nstill here?!
#org $further
lock
faceplayer
checkflag 0x232
if B_true gosub $gotit
message $hi
boxset 6
setflag 0820
release
end
#org $gotit
givepokemon 150 50 1
message $got
boxset 6
return
#org $hi
$hi 1 = Here is your reward\nfor winning.\pThat is MEWTWO,\ntake a care of him.
#org $got
$got 1 = \c\h01\h02You received a MEWTWO!!!

thanks!!!
 
Not your usual post for this thread.

For once, its not just the usual "i have this script that won't work". This time, I need to know how to make a certain kind of script. It's not that I can't do it, I just have no idea how to even make it. The script goes:

1. Message: Pokemon Center Staff--
We are currently closed. Please come back later.

And then you get a pokemon.

2. Warp: (to the inside) (they're open after you get a pokemon)

I know there is probably a simple answer out there, but I don't know what it is.
Any ideas welcome.

EDIT:
1500th POST!!!!!!
(in this thread, not my post count)

 
Last edited:
Spoiler:


Can someone tell me whats wrong with this script?
The person doesn't talk, and whenever I try to talk to him the givepokemon repeats...
 
Status
Not open for further replies.
Back
Top