• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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.

Script Requests/Sharing/Discussion

Status
Not open for further replies.

zel 2.0

Gold Remaker
1,955
Posts
17
Years
Wtf is wrong with my script?
I've tried it, but it says all text ( without enters etc, new message commands right after the others. like: (#900000)Hi i'm frank.(#900100)How are you?

In fact, Irish Witch and frank$or, you didn't realize you were overwriting offsets! :P

I'll avoid using much space so I'll spoil the fixings in the script, ok?

Spoiler:


Just be careful... Messages usually take a lot of space, if you want to make sure, count the letters (and the wild card counts as one letter, and don't forget to add 1 because of the end of text thing...)
Also, careful with the script blocks length, because your main block (the one that starts at 0x944F00 is quite longer than 32 bytes, and you were starting the text quite close to it, thus crushing the main script. Just be careful... However, don't worry, because it happens to me, even though it happens because I'm stubborn and I want to save as much rom space as possible jojo!;))
 

Irish Witch

Office Jenny
147
Posts
17
Years
:t311:Well you see, that's why I didn't have any troubles. Cause I compiled using pokescript and re-position the offsetts using bufrite so no overlap!

So there :P
EDIT - Just so you know this problem what what inspired me to make pokescript in the first place.

What is the script of Player Starting Position in Pokewitch?

Hold the phones, horses AND potatos!

I just came up with a novel way of doing this while working on my own hack.
I used advanced map to replace the truck map with a 'clone' of the map I want. Many of the scripts I use in this clone are different but the trick is that you think you'r in the same room. I then programme a few small events that can only take place there (easter egg time) and make it so that once you leave you can't go back. When you go back through the door you come out of you go into the real room!
 
Last edited:

Irish Witch

Office Jenny
147
Posts
17
Years
Well in my case the lounge room yes.

I replace the map of the inside or the truck with a duplicate of the room I want you to go to and make all the warps go one way (no way back in)!...

Do this by going to you're original map and clicking file/map/save map as...

Then go filemap/insert map

Open the map you just saved.
In the 'Replace Map' area set the bank to 25 and the map to 40.
When you insert it it will re-point the map and you're done!
 
Last edited:
91
Posts
17
Years
  • Seen Nov 1, 2010
Thanks zel. :)

Last question, how can you create a pokemon following you al the time?
( like in yellow, that pikachu? )
 

O.G. Duke

a.k.a OmegaGroudon
974
Posts
17
Years
  • Seen May 18, 2016
Well in my case the lounge room yes.

I replace the map of the inside or the truck with a duplicate of the room I want you to go to and make all the warps go one way (no way back in)!...

Do this by going to you're original map and clicking file/map/save map as...

Then go filemap/insert map

Open the map you just saved.
In the 'Replace Map' area set the bank to 25 and the map to 40.
When you insert it it will re-point the map and you're done!

I tried it but there is something strange here:
Look at this screenies:
untitledej4.png

There is 3 tile have strange look...
 

Irish Witch

Office Jenny
147
Posts
17
Years
:12: Huh!
Oh-Kay. I wonder whether that has something to do with the 'driving truck' sequence or something...............

Sorry I don't have an answer for that. I'll have to play with it myself, it was just an idea after all.....
 
6,355
Posts
18
Years
  • Seen Apr 16, 2020
I tried it but there is something strange here:
Look at this screenies:
untitledej4.png

There is 3 tile have strange look...

Those tiles change because of the script in the start. If you have the truck's tileset the tiles will change so that it will look like the truck's open.
 

Irish Witch

Office Jenny
147
Posts
17
Years
I suppose the only way around that then is to either:

-reverse engineer the thing that changes those tile (Good luck there)
-change the tileset so the tiles being changed are identical,
-or lastly put a sprite over the spot (sweep the problem under the rug so to speek).

I think there is a 'map script' somewhere that you might be able to change, I know elite map can open it but whenever I've tried to edit it the game freezes on entering that point!

-----

While I'm here, ANOTHER NEW COMMAND: selectpokemon

If you don't want to download then it consists of the following commands joined into an alias:
Code:
special &h009F
#73 
copyvar &h800A &h8004

Put either the new command or the three above in place of the givepokemon command in the previous name pokemon script script to make a script to re-name any pokemon already in your party!


(In case you haven't figured out, I'm trying to figure out a 'tradepokemon' command and while I'm at it hopefully giving things like eggs!
 
Last edited:

El Diabeetus

Amateur Voice Actor / ROM Editor ('Hacker')
1,064
Posts
17
Years
  • Age 30
  • Seen Jun 10, 2020
When I try to put this script in Scripted or Pokescript it doesn't write it to the rom:

Ok I have another question why is it in scripted I can't get this script to work:
when i insert it it says "Run Time Error 53 File Not found"

This is the script I'm trying to make:

'-----------------------
#org 0xD90380
lock
faceplayer
checkflag 0x200
if 0x1 goto 0x800100
message 0x800200
boxset 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x800300
message 0x800400
boxset 0x6
release
end
#org 0x800100
message 0x800500
boxset 0x6
release
end

#org 0x800300
message 0x800600
boxset 0x6
givepokemon 404 47 0
setflag 0x200
release
end

#org 0x800200
= Want my PALKIA?\nI don't want it so you can have it.

#org 0x800400
= Don't be like that.

#org 0x800500
= So how do you like PALKIA?
 

Irish Witch

Office Jenny
147
Posts
17
Years
When I try to put this script in Scripted or Pokescript it doesn't write it to the rom:

Ok I have another question why is it in scripted I can't get this script to work:
when i insert it it says "Run Time Error 53 File Not found"

This is the script I'm trying to make:

'-----------------------
#org 0xD90380
lock
faceplayer
checkflag 0x200
if 0x1 goto 0x800100
message 0x800200

D ?????
Are you sure that shouldn't be
#ORG 0X890380
It is a weird offset, but otherwise that script looks normal.
Make sure the rom you are writing to is for the gameboy advanced!
And remember if you modify one offset you need to modify them all to suit. (Why I use floating offsets in pokescript where possible)

-------

EDIT: I just found a tiny glitch in bufrite. Because you used absolute offsets in this script the first offset auto assigns. I just fixed a buf with that that occurred if you then tried to change the offset.

May have been causing some confusion.
 

El Diabeetus

Amateur Voice Actor / ROM Editor ('Hacker')
1,064
Posts
17
Years
  • Age 30
  • Seen Jun 10, 2020
Okay now when I insert the new script it says

--------------------------------------------------------------
Loading command database...
Empty command database detected. Program halted.
 

foofatron

Banned
309
Posts
17
Years
  • Age 22
  • Seen Sep 2, 2007
Your ROM and script must be saved in the same folder as ScriptED with no spaces in the name.

I had the same problem Cristos answered it.

I'm quite aware that there is a script command for CheckItem but I was wondering whether there is a command for CheckPokemon. The idea behind this is say for example you picked the fire type pokemon at the start of the game then a certain event would occur however if you picked another then a different event would occur.
 
Last edited:

El Diabeetus

Amateur Voice Actor / ROM Editor ('Hacker')
1,064
Posts
17
Years
  • Age 30
  • Seen Jun 10, 2020
Can someone tell me where I put the flags thats all I'm confused about:
#org 0x900000
cry 0x28 0x14
wildbattle 0x194 0x46 0x2
cry 0xA1 0x194
end
 
4
Posts
17
Years
  • Seen Apr 6, 2008
Not sure if this is the place to post this but.
I'm stuck on how to insert (or whatever you need to do) a script into the game.
can someone help me?
 
6,355
Posts
18
Years
  • Seen Apr 16, 2020
I had the same problem Cristos answered it.

I'm quite aware that there is a script command for CheckItem but I was wondering whether there is a command for CheckPokemon. The idea behind this is say for example you picked the fire type pokemon at the start of the game then a certain event would occur however if you picked another then a different event would occur.

There's not a command like that but you can use different flags for each pokemon you choose to make the events.

Not sure if this is the place to post this but.
I'm stuck on how to insert (or whatever you need to do) a script into the game.
can someone help me?

Your ROM and script must be saved in the same folder as ScriptED with no spaces in the name. Then open your script with ScriptED, choose compile and select your ROM.
 
4
Posts
17
Years
  • Seen Apr 6, 2008
Ok thanks i'll try right now...

got a error message:
Code:
Rubikon 1.3 by Kyoufu Kawa
--------------------------------------------------------------
Loading command database...
Empty command database detected. Program halted.
maybe my script which is:
Code:
#org 0x800000
message 0x800100
boxset 0x02
end
#org 0x800100
= Hello World!
 

Hyunbin

w00t!~
166
Posts
17
Years
this is my first script
i used irish witch's give script and modified it a bit
it goes in fine but when i try to open it in elite map it says the rom is not supported but i can edit it anyway and when i try to play it on vba all i get is a white screen
what's wrong with it?:

Code:
#org $Startscript
lock
faceplayer
checkflag 0x200
if 1 goto $Gotit
message $AskMe
$AskMe 1 = Hey, you're a trainer right?
boxset 5
compare LASTRESULT 1
if 1 goto $Asktogive
message $No
$No 1 = Oh... alright...
boxset 6
release
end

#org $Gotit
message $Howis
$Howis 1 = How's that CHIKORITA doing?
boxset 6
release
end

#org $Asktogive
message $Ask
$Ask 1 = A CHIKORITA wandered into my backyard... but I don't think I can raise it. Will you take it?
boxset 5
compare LASTRESULT 1
if 1 goto $Givechikorita
message $Nono
$Nono 1 = Oh... but who can I get to take care of it?
boxset 6
release
end

#org $Givechikorita
message $Give
$Give 1 = Recieved the CHIKORITA!
boxset 6
givepokemon 0x152 5 0
release
setflag 0x200
end

i also want to put a message before "Recieved the CHIKORITA!"
"Oh... thank you!"
 
6,355
Posts
18
Years
  • Seen Apr 16, 2020
Ok thanks i'll try right now...

got a error message:
Code:
Rubikon 1.3 by Kyoufu Kawa
--------------------------------------------------------------
Loading command database...
Empty command database detected. Program halted.
maybe my script which is:
Code:
#org 0x800000
message 0x800100
boxset 0x02
end
#org 0x800100
= Hello World!

Did you see my answer before? Follow my instructions in that post and this won't happen.

Questions~

1. What does org and raw exactly do?

2. How do I find offsets for scripts?(Noob question, I know :P )

The "org" is for the script's offset when you start a script and the "raw" is another command mostly used for the "applymovement" command.
 
Status
Not open for further replies.
Back
Top