• 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.
Okay, I have two major script problems. (well, major as in, "my hack NEEDS it")

Before I post it, keep in mind I use Diamond Cutter because nothing else works for me =/ (also, I'm using Fire Red)

Okay, here's my script

Spoiler:

I'm trying to make offsets which when given to a person will instantly go into a trainer battle. (not text box or anything, just jump into the fight)
Diamond Cutter won't apply this to the game and I assume it's the script because other scripts have been accepted. What's wrong with this script?


Now, my 2nd scripting question. The following is a script for an Elite 4 member I got directly off of PKSV

Spoiler:

I simply want to edit ONE value in the script, but I have no idea how to re-install this script after it's edited. Whenever I save this as a .rbc file, I get this message

Spoiler:


I do what it says but Diamond Cutter still refuses to apply it to the game.

Does this script need to be translated into a certain format? If so, what parts need to be changed into what?

*is a scripting n00b who read tutorials but still doesn't know about translation from one format to another*
 
What command do I need to make somebody check if you have a certain pokemon? like in the trade scripts or in a Bill's Grandpa script?

Here...
Code:
setvar 0x4036 (pokemon number)
copyvar 0x8004 0x4036
special2 0x800D 0x17C
compare 0x800D 1
if 0x1 goto $poke
Here's an example of it.
Code:
#org $start
lock
faceplayer
message $1
boxset 0x5
compare 0x800D 0x1
if 0x1 goto $check
message $2
boxset 0x6
release
end

#org $check
setvar 0x4036 0x74
copyvar 0x8004 0x4036
special2 0x800D 0x17C
compare 0x800D 0x1
if 0x1 goto $havehorsea
message $2
boxset 6
release
end

#org $havehorsea
message $3
boxset 6
release
end

#org $1
$1 1 =Hi, do you have a HORSEA?\nCould I please see it?

#org $2
$2 1 =Owww. Thanks Anyway.

#org $3
$3 1 =Yay, a HORSEA!

I don't know if checkpokemon 0x0 0x0 0x0 is a command, but it's worth a go.
Otherwise use selectpokemon, I think you use it as selectpokemon 0x?

For instance:

selectpokemon 0x5
if b_true goto $removepoke

And then add a removepokemon command..
(I'll have to search up a bit more)

You've just made up those commands. As far as I know, they don't exist. The way to checkpokemon is listed above.
Selectpokemon is a special that brings you to the select Pokemon screen, where you can pick a pokemon from your party.
special 0x73, but I'm not 100% sure if that's the right number.
Not a command that selects if you have a pokemon.
 
Please help!

Hi everyone, and thanks in advance for any help. Okay... I'm trying to make a simple script (I'm not very good at using PokeScript), but I can't make it work! The screen just freezes on me. Thanks again...
Here's the script; sorry, this is only my second post and I haven't figured out how to do spoilers:

#org $StartWild
lock
faceplayer
cry 52
message $meowCry
$meowCry 1 = Meowth: Dat's right!
boxset 6
checkflag 0x807
if 0x1 goto $WildBatt
release
end
#org $Wildbatt
lock
wildbattle 52 20 0
release
setflag 0x500
fadescreen 0
end
 
@ Sythes :

I'm very very bad at PokeScript (I'm a beginner).
Could it be that you forgot the 1 at message $name?

Spoiler:
 
ok i have a question im useing pokescript how do i make a legendary pokemon battle
 
need help

Spoiler:


dont know why but I tryed to put this script in advance map,it will only work if i put it on a person,not an S

i tryed differnt var numbers,it still doesnt work
 
Last edited:
@ Sythes :

I'm very very bad at PokeScript (I'm a beginner).
Could it be that you forgot the 1 at message $name?

Spoiler:
): It didn't work. I'm new to Pokescript too. Thanks for trying.
 
): It didn't work. I'm new to Pokescript too. Thanks for trying.
theres a great totorial on youtube that explains in great detail googleesearch "how do i us pokescript" and you should find it if not picka video and use the link to find another one.
 
Well, i'm having troubles with a few scripts..
I cant find whats wrong with them, i've re-written the original ones, taken away the move after the pause (pausemove), I cant figure it out.

Here they are:

Code:
#org $begin
lock
checkflag 0x202
if b_true goto $done
message $wait
boxset 6
applymovement 0x10 $coming
pause 0
message $wildpokemon
boxset 6
applymovement 0x10 $comeback
pause 0
message $comehere
boxset 6
applymovement 0xFF $moveback
pause 0
applymovement 0x10 $goaway
pause 0
release
end

#org $wait
=Wait!

#org $wildpokemon
=There are wild Pokemon\nin the grass!

#org $comehere
=Come back here!

#org $coming
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0xFE

#org $comeback
#raw 0x0B
#raw 0x02
#raw 0xFE

#org $moveback
#raw 0x0B
#raw 0xFE

#org $goaway
#raw 0x0B
#raw 0x0B
#raw 0xFE

#org $done
release
end

Code:
#org $begin
lock
checkflag 0x202
if b_true goto $done
message $wait
boxset 6
applymovement 0x10 $coming
pause 0
message $wildpokemon
boxset 6
applymovement 0x10 $comeback
pause 0
message $comehere
boxset 6
applymovement 0xFF $moveback
pause 0
applymovement 0x10 $goaway
pause 0
release
end

#org $wait
=Wait!

#org $wildpokemon
=There are wild Pokemon\nin the grass!

#org $comehere
=Come back here!

#org $coming
#raw 0x09
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0xFE

#org $comeback
#raw 0x0B
#raw 0x02
#raw 0xFE

#org $moveback
#raw 0x0B
#raw 0xFE

#org $goaway
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x08
#raw 0xFE

#org $done
release
end

Code:
#org $begin
lock
checkflag 0x200
if b_true goto $done
checkflag 0x201
if b_true goto $gold 
message $hey
boxset 6
applymovement 0x4 $coming
pause 0
message $pokemon
boxset 6
applymovement 0x4 $going
pause 0
release
end

#org $gold
lock
applymovement 0x4 $coming
pausemove 0
message $goldylox
boxset 6
setflag 0x200
release
end

#org $hey
=Wait!\nYou cant go in there!\pSomething important is happening!

#org $goldylox
=I thinks it's over now...

#org $coming
#raw 0x09
#raw 0x09
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x09
#raw 0xFE

#org $going
#raw 0x08
#raw 0x08
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x08
#raw 0xFE

#org $done
release
end

Also, I don't know how to do a followme script if someone can explain that, i've avoided that so far by adding a movement and then making the person face the hero, then the hero would move..

It would be appreciated.
Thankyou.
 
): It didn't work. I'm new to Pokescript too. Thanks for trying.

Oh well...I tryed it.

By the way, do you work with BufRite?
If yes, then I need help.
I tryed to open a .gba-File in BufRite.
But then the programm freezes!
Can you help me?

I added a video. Watch it.
The file TestScript.rbc is that script that I want to burn into a Rom.
 
Can someone make a script for me please?

I want a Person to give you a level 5, Treeko, with a RARE CANDY.
Then he gives you a POKeDEX.
And once he gives you the POKeDEX he moves to the left.

His offset is $16582F.

P.S It's for ScriptEd!
Any chance?
 
Last edited:
hey could anyone help me with this script?
the script

#org $go
trainerbattle 1 0x059 $before $after
message $beaten
boxset 6
release
end

#org $before
$before 1 = I just lost, so I'm\ntrying to find \pmore POKEMON. Wait!\nYou look weak!\pCome on,Let's battle!

#org $after
$after 1 = Ugh.I don't have\nany more POKEMON

#org $beaten
$beaten 1 = I have to have\nmore POKEMON for battles.\pI'm going to\ncatch some more!

when I defeat him the game freezes does anyone know whats wrong?
 
hey could anyone help me with this script?
the script

#org $go
trainerbattle 1 0x059 $before $after
message $beaten
boxset 6
release
end

#org $before
$before 1 = I just lost, so I'm\ntrying to find \pmore POKEMON. Wait!\nYou look weak!\pCome on,Let's battle!

#org $after
$after 1 = Ugh.I don't have\nany more POKEMON

#org $beaten
$beaten 1 = I have to have\nmore POKEMON for battles.\pI'm going to\ncatch some more!

when I defeat him the game freezes does anyone know whats wrong?

The script looks correct.
Try putting it in this order:

#org $after

then

#org $before

thats how i usually do it.
 
I think you might need a setflag, because the battle will keep repeating.


Code:
#org $begin
lock
checkflag 0x200
if b_true goto $beaten
trainerbattle 1 0x059 $before $after
release
end

#org $before
= I just lost, so I'm\ntrying to find \pmore POKEMON. Wait!\nYou look weak!\pCome on,Let's battle!

#org $after
lock
message $blahblah
$blahblah 1 =Ugh.I don't have\nany more POKEMON
boxset 0x6
setflag 0x200
release
end

#org $beaten
= I have to have\nmore POKEMON for battles.\pI'm going to\ncatch some more!

That should work, it worked for me.
 
Does anybody know how to display the money box in the top left hand corner of the screen?

Thanks
 
help

is it possible for someone to give me a script where a person will follow you form behind for the whole game
 
Hey does anyone know how to make a POKEMART script
because it never tells in tutorals
so can anyone ell me how to make a POKEMART script?
 
Status
Not open for further replies.
Back
Top