• 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 Conquest 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.

Script Requests/Sharing/Discussion

Status
Not open for further replies.
another question, what is "#raw"?
 
#RAW is used to add data to the rom that isn't intended to be read as code (because each command translates into a hex value.
For example msgbox 0x801000 could also be written as
#raw 0F 00 00108008

but that would be totally annoying to try and script like that so now we only use it for movement data if possible.

Sometimes scripts decompiled from the rom will have #raw data in them. This means it's using command we don't yet know how to translate - such as the removeitem command I recently added to pokescripts pkmadv database. Scripted didn't know that command but I found out what it was (from an old post on this forum somewhere) and added it to mine!
 
I want to know why my script aint working
Its a givepokemon script and i am recieving a mew =P
anyway where he says take it or leave it he is meant to give me the pokemon but he doesnt the script then ends
Why does this happen please check my script.
i will put in spoiler box so it wont take up much room
Spoiler:


Please help,
Regards,
Giovanni
 
Well, I'll tell you how the game deals with that. They just have a variable and they set that variable into three possible values. But making things short, as long as you are dealing with FR, and you still use the original Pokeball choosing script, I can tell you what you'd need to do...

compare 0x4031 0x0
if 0x1 call 0xEVENT1
compare 0x4031 0x1
if 0x1 call 0xEVENT2
compare 0x4031 0x2
if 0x1 call 0xEVENT3

[EDIT]: Argh, you were doing things in Ruby, well, at least this may help someone else, if someone knows the value in Ruby...

Thanks for the advice ^_^, this will really help some people out! I'll have a browse around and seen if I can find what I need. Although If anyone knows, please get back to me,

Thanks Again,
~Davie~
 
I want to know why my script aint working
Its a givepokemon script and i am recieving a mew =P
anyway where he says take it or leave it he is meant to give me the pokemon but he doesnt the script then ends
Why does this happen please check my script.
i will put in spoiler box so it wont take up much room

I just played with you're script and I only have one thing to say!
(and two pictures)

First mew is ewither 151 or 0x97. NOT 0x151. (0x151 is electrite I think)
Check the table attached for values. These values are decimal and don't need 0x before them.

Secondly look at the pics here..
(You got the mew, it just doesn't tell you!)
 
Can i get a scripted code for the National Dex in Ruby if its possible i made the starters different and the pokedex don't show up i made it Johto which i changed to sinnoh's
 
How can I give people scripts?How do I enter a script in a game to a certin person?I edited the mew script and it doesn't work.I want porygon not Mew.Can you fix it?#org 0x800000
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 137
setflag 0x200
release
end

#org 0x800200
= Would you like my Porygon?\nI dont like it so you can have it.

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

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

#org 0x800600
= Ok then, Take it or go!

I want porygon on level 5 and with a potion.
 
Last edited:
How can I give people scripts?How do I enter a script in a game to a certin person?I edited the mew script and it doesn't work.I want porygon not Mew.Can you fix it?
#org 0x800000
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 137
setflag 0x200
release
end

#org 0x800200
= Would you like my Porygon?\nI dont like it so you can have it.

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

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

#org 0x800600
= Ok then, Take it or go!

I want porygon on level 5 and with a potion.


I'm not a pro in scripting, but I think it should be like this:

#org 0x800000
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 137 5 0xD
setflag 0x200
release
end

#org 0x800200
= Would you like my Porygon?\nI dont like it so you can have it.

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

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

#org 0x800600
= Ok then, Take it or go!
 
Last edited:
I just love how:
- Everybody asking about their scripts doedn't bother to say why they don't work
and
= How everybody goes and quotes entire posts all the time.. Why don't you just quote the important bits in a post like this:

#org 0x800300
message 0x800600
boxset 0x6
givepokemon 137 5 0xD
setflag 0x200
release
end

Needs a level and object number (object number can be 0)


... See that takes up much less room andis much clearer
 
Idid it and its saying this.When I compile it.I'm using Rubikon ScriptED for ruby scripting.
Loading command database...
Empty command database detected. Program halte
 
Idid it and its saying this.When I compile it.I'm using Rubikon ScriptED for ruby scripting.
Loading command database...
Empty command database detected. Program halte

Your ROM and script must be saved in the same folder as ScriptED with no spaces in the name.
 
Last edited:
Ok I used Diamond cutter to put it on my rom how do I find the script and put it on a person?
 
Now Possible to NAME new pokemon after using GivePokemon!

*shameless plug*

The latest version of the pkmadv database now has a command 'NamePokemon'
Use something like this:
Code:
#org 0x800000
lock
faceplayer
checkflag 0x200
if 0x1 goto $GotMew
message $WantMew
boxset 0x5
compare LASTRESULT 0x1
if 0x1 goto $GiveMew
message $NoMew
boxset 0x6
release
end

#org $GotMew
message $HowMew
boxset 0x6
release
end

#org $GiveMew
[B]countpokemon
compare LASTRESULT 0x6
if 0x1 goto $ErrorMew
[/B]message $RecieveMew
boxset 0x6
givepokemon 151 5 0
[B]message $NewName
callstd 0x5
compare LASTRESULT 0x1
if 0x1 gosub $NameMew[/B]
setflag 0x200
release
end


[b]#org $ErrorMew
message $FullParty
boxset 6
release
end

#org $NameMew
namepokemon
return

$FullParty 1 = Your Party is full!
$NewName 1= Would you like to give the pokemon a name?[/B]
$WantMew 1 = Would you like my Mew?\nI dont want it anymore.
$NoMew 1 = You're Weird!
$HowMew 1 = So how is MY Mew?
$RecieveMew 1 = You recieved a mew

- EDIT - 2320 gmt+8

Now added 'Countpokemon' to command database. Code above adjusted apropriately!
 
Last edited:
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?

Script:
Code:
#org 0x944F00
message 0x944F20
boxset 0x2
applymovement 0xFF 0x944F40
pause 0x10
message 0x944F30
boxset 0x2
applymovement 0x0 0x944F60
pause 0x60
warp 0x2D 0x1 0x0
end

#org 0x944F20
= Mew!?\pWhere am I?

#org 0x944F40
#raw 0x62
#raw 0xFE

#org 0x944F30
= No wait!\pDon't go!

#org 0x944F60
#raw 0x32
#raw 0x32
#raw 0x32
#raw 0x32
#raw 0x32
#raw 0xFE
 
Wtf is wrong with my script?
I've tried it, but it says all text ( without enters etc)

Script:
Code:
#org 0x944F00
message 0x944F20
boxset 0x2
applymovement 0xFF 0x944F40
[B]pausemove 0x0[/B]
message 0x944F30
boxset 0x2
applymovement 0x0 0x944F60
[B]pausemove 0x0[/B]
warp 0x2D 0x1 0x0
end

Try using pausemove instead of pause!
 
could some1 help me with this pokewitch script? its not finished becouse the other stuffs i dont understand and the line TRAINERBATTLE the last 3 things neither

Code:
#org $start
lock
faceplayer
message $battle
TRAINERBATTLE 00 <Trainer> (ptr Intro) <ptr Defeat>
message $lost
end

#org $battle
= Lets battle

#org $lost
= NO! I lost thats not possible!

(is it possible to give this offset to more players?)
 
What is the script of Player Starting Position in Pokewitch?
 
If people are going to start posting the same Q both in this thread and in my Tutorial thread I'm going to tell the modorators to my one!

And I'm looking for that myself!

It's controlled by the opening script which I haven't located yet. There's nothing on the map to indicate a warp point or a flight point so it must be done using -

DUM DUM DUM DUM
RAW CODE
 
Status
Not open for further replies.
Back
Top