The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   [Archive] Script help thread (https://www.pokecommunity.com/showthread.php?t=120081)

+Sneasel™ August 2nd, 2008 12:24 PM

Quote:

Originally Posted by Austinia (Post 3819431)
What does it mean when you get this error?

http://i48.photobucket.com/albums/f246/1918293456/errorrr.png

EDIT: I doubt anyone wants to look at the script... lol... but here it is!

Spoiler:
#org $start
checkflag 0x206
if b_true goto $alreadygotrainbowpass
checkflag 0x200
if b_true goto $200
checkflag 0x828
if b_true goto $828
message $1
boxset 6
checkflag 0x203
if b_true goto $203
checkflag 0x204
if b_true goto $204
checkflag 0x205
if b_true goto $205
release
end

#org $203
givepokemon 238 5 0
fanfare 0x13E
message $2
boxset 4
waitfanfare
#raw 0x68
message $3
boxset 5
compare LASTRESULT 0x1
if b_true goto $name
goto $dex
release
end

#org $204
givepokemon 239 5 0
fanfare 0x13E
message $6
boxset 4
waitfanfare
#raw 0x68
message $7
boxset 5
compare LASTRESULT 0x1
if b_true goto $name
goto $dex
release
end

#org $205
givepokemon 240 5 0
fanfare 0x13E
message $10
boxset 4
waitfanfare
#raw 0x68
message $11
boxset 5
compare LASTRESULT 0x1
if b_true goto $name
goto $dex
release
end

#org $200
message $13
boxset 6
giveitem 368 1
message $14
boxset 6
setflag 0x206
release
end

#org $828
message $15
boxset 6
release
end

#org $alreadygotrainbowpass
message $16
boxset 6
release
end

#org $name
call 0x1A74EB
return

#org $dex
setflag 0x828
message $17
boxset 6
applymovement 0x04 $move
pausemove 0x0
setflag 0x829
Special 0x16F
message $18
boxset 6
giveitem 4 5
message $19
boxset 6
release
end

#org $1
$1 1 =So you are the young detective that\nlives next door, eh?\lAre you trying to solve the mystery\lof Professor Oak?\lYou are? Well, in order to find the\lkiller, you will need to talk to\lthe witnesses, the gym leaders. How\lcan you do that? Well, you will\lneed to start a journey with\lpokemon. You'll need to travel to\lnew lands to meet the gym leaders.\lIt's not so easy as to just be able\lto walk to all the gyms. There are\lwild pokemon out there. Dangerous\lpokemon.\lI am also sure that the gym leaders\lare not going to give evidence to\leveryone. You'll need to gain their\lrespect, and assure them you can\lsolve the mystery. How can this be\ldone? Well, you'll need to defeat\lthem. They are all good friends,\land whoever it was who killed Oak,\lthey will not give out information.\lYou will need to make a deal with\lthem first. If you win they give\lyou a clue. This is how you are to\lfind out who killed professor Oak.\lUnderstood?\lGood.\lNow, you'll need a pokemon, won't\lyou? Luckly, in my old age I have\ltaken on pokemon breeding. I can\lgive you your first pokemon. Would you like one?

#org $2
$2 1 =You received a Smoochum!

#org $3
$3 1 =Would you like to give a nickname\nto Smoochum?

#org $6
$6 1 =You received an Elekid!

#org $7
$7 1 =Would you like to give a nickname\nto Elekid?

#org $10
$10 1 =You reveived a Magby!

#org $11
$11 1 =Would you like to give a nickname\nto Magby?

#org $13
$13 1 =Congratulations on saving Professor\nOak and becoming a famous\ldetective! For doing such a good\ljob, I got a little present for\lyou....

#org $14
$14 1 =That Rainbow Pass will allow you\naccess to a large island barely\lanyone has seen before. Go talk to\lthe sailor in Pina City. If you\lshow him this pass he will take you\lthere.

#org $15
$15 1 =Take good care of my pokemon and be\nsure to solve the mystery!

#org $16
$16 1 =Have you explored the new island\nyet?

#org $17
$17 1 =You will need to capture wild\npokemon and tame them so you can\lhave a bigger, stronger party.\lRight before Professor Oak was\lmurdered, he gave me this pokedex\lin order to record information I\lfind when breeding my pokemon. It\lwas always Oak's dream to record\ldata of all the pokemon in this\lregion on a pokedex. In respects to\lOak, I would like you to take this\lpokedex and record as much pokemon\ldata as you can. Here it is:

#org $18
$18 1 =You will also need pokeballs to\ncatch the wild pokemon in.

#org $19
$19 1 =Now go begin your journey as a\npokemon trainer and detective!\lSolve the mystery of who killed\lProfessor Oak!

#org $move
#raw 0x60 0xFE

^^I fixed the easy thing I saw wrong, if it still says that message, I will look harder, until then, try it.

Austinia August 2nd, 2008 12:26 PM

Quote:

Originally Posted by itman1234 (Post 3819470)
^^I fixed the easy thing I saw wrong, if it still says that message, I will look harder, until then, try it.

Thanks!! It worked :] I was thinking about changing that, but other scripts I've done that in it worked fine :x

but thanks!

Also thanks megiddo too!


now lets hope the script does what I want it to do and works XD

.Seth August 2nd, 2008 5:06 PM

As in:

The stinking flag won't set. Is there a certain place in the script I have to put it?

OutOfOrder August 2nd, 2008 5:26 PM

I actually have some multiple questions at the moment...

1) How do you do a applymovement script for XSE and not pokescript? The only ones that i have seen around are the pokescript ones... :/

2) How do you make a give pokemon script for XSE? Again, all i have seen are ones for pokescript.

3) If I want pokemon to come up every 25 steps or so how high should i set the ratio for finding pokemon in grass?

(Most important question here:) 4) I want to upload 25 pokemon onto my emerald rom, and when i use UNLZ-GBA and go the empty spaces called ? i can only find one ? and not 25. (I found 25 of them when i was making new wild pokemon data... it says there are 25 slots open between the 2nd gen and the 3rd gen...)

Thank you in advance for helping me!

:)

cooley August 2nd, 2008 5:29 PM

Quote:

Originally Posted by Seth the ROM master (Post 3820248)
As in:

The stinking flag won't set. Is there a certain place in the script I have to put it?

No, not really. I haven't been here for a while, so what would be your problem again?

.Seth August 2nd, 2008 5:40 PM

I made the script where you choose a pokemon among other pokemon (dif. scripts for the others) and some how the flag 0x828 won't set.

Ninja Caterpie August 2nd, 2008 5:57 PM

Quote:

(Most important question here:) 4) I want to upload 25 pokemon onto my emerald rom, and when i use UNLZ-GBA and go the empty spaces called ? i can only find one ? and not 25. (I found 25 of them when i was making new wild pokemon data... it says there are 25 slots open between the 2nd gen and the 3rd gen...)
There's only one sprite for all ?? Pokemon.
You can just click "write to ROM" and put it into free space.

Thrace August 2nd, 2008 11:56 PM

Quote:

Originally Posted by Seth the ROM master (Post 3820248)
As in:

The stinking flag won't set. Is there a certain place in the script I have to put it?

Try posting your script, it'll be easier to for people to fix the problem if you do.

Quote:

Originally Posted by OutOfOrder (Post 3820298)
I actually have some multiple questions at the moment...

1) How do you do a applymovement script for XSE and not pokescript? The only ones that i have seen around are the pokescript ones... :/

2) How do you make a give pokemon script for XSE? Again, all i have seen are ones for pokescript.

3) If I want pokemon to come up every 25 steps or so how high should i set the ratio for finding pokemon in grass?

(Most important question here:) 4) I want to upload 25 pokemon onto my emerald rom, and when i use UNLZ-GBA and go the empty spaces called ? i can only find one ? and not 25. (I found 25 of them when i was making new wild pokemon data... it says there are 25 slots open between the 2nd gen and the 3rd gen...)

Thank you in advance for helping me!

:)

1) its the same
2) its the same except you need 3 0x0s after
3) Trial and error
4) They are all pointed to the same image, you must insert the image to empty space and repoint the image for each new pokemon.

willj016 August 3rd, 2008 12:39 AM

i have changed the scriptbut it still doesnt work

Spoiler:
#org $start
Lock
Faceplayer
setflag 0x829
Special 0x16F
Message $Getdex
Boxset 6
Release
End

Org $Getdex
$getdex1 =Here have this pokedex./nit'll help you on/lyour journey

Austinia August 3rd, 2008 11:25 AM

I believe it needs a space in between the "getdex" and "1"

#org $start
Lock
Faceplayer
setflag 0x829
Special 0x16F
Message $Getdex
Boxset 6
Release
End

Org $Getdex
$getdex 1 =Here have this pokedex./nit'll help you on/lyour journey

linkandzelda August 3rd, 2008 3:19 PM

willj016:

i think i spoted the error. this should do the trick:

#org $start
Lock
Faceplayer
setflag 0x829
Special 0x16F
Message $Getdex
Boxset 6
Release
End

#org $Getdex
$getdex 1 = Here have this pokedex.\nit'll help you on\lyour journey.

if it dosnt work tell me.
link

KhaosKnight August 4th, 2008 12:00 PM

Quote:

Originally Posted by Austinia (Post 3822293)
I believe it needs a space in between the "getdex" and "1"

#org $start
Lock
Faceplayer
setflag 0x829
Special 0x16F
Message $Getdex
Boxset 6
Release
End

#org $Getdex
$Getdex 1 =Here have this pokedex./nit'll help you on/lyour journey

there we go fix'd

that is a rookie mistake bud, i think pokescript is really case sensitive and you forgot the #

linkandzelda August 4th, 2008 12:16 PM

Quote:

Originally Posted by khaosknight1 (Post 3825934)
there we go fix'd

that is a rookie mistake bud, i think pokescript is really case sensitive and you forgot the #

i already fixed that for him lol but whatever.

Jack-s-b August 4th, 2008 12:49 PM

When i click on the person that ive added the script to the game freezes on a bright red screen, my script is

#ORG $ShowText
Lock
Faceplayer
message $Newpokemon
$NoCookie 1 = Professor Birch has been catching some new pokemon!\lhis probably studying them now
boxset 6
release
end

KhaosKnight August 4th, 2008 12:57 PM

Quote:

Originally Posted by Jack-s-b (Post 3826065)
When i click on the person that ive added the script to the game freezes on a bright red screen, my script is

#ORG $ShowText
Lock
Faceplayer
message $Newpokemon
$NoCookie 1 = Professor Birch has been catching some new pokemon!\lhis probably studying them now
boxset 6
release
end


Well from this, it is messed up(or you didnt give us the whole script or its incomplete), the message pointer isnt there and the NoCookie pointer isnt either. Try this:

Code:

#org $ShowText
Lock
Faceplayer
message $Newpokemon
boxset 6
release
end

#org $Newpokemon
$NewPokemon 1 = Professor Birch has been catching some new pokemon!\lhis probably studying them now


Well i worked with what you gave, so i am sorry if it isnt what you needed(plus i am not very fluent in the*coughpointlesscough* format that pokescript uses) so forgive me if the format is wrong.

linkandzelda August 4th, 2008 1:05 PM

#ORG $ShowText
Lock
Faceplayer
message $Newpokemon
$Newpokemon 1 = Professor Birch has been catching some new pokemon!\lhis probably studying them now
boxset 6
release
end

try that

now i need some help. i'm getting sick of this stupid script:

#org $begin
checkflag 0x1434
if 0x1 goto $unlock
#raw 0x39 0x02 0x11 0x01
end

#org $unlock
#raw 0x39 0x04 0x1D 0x01
end

i dont see anything wrong with it but all it does is make the screen constantly flash white making a clicking sound.

thanks in advance
link

KhaosKnight August 4th, 2008 1:07 PM

touche LinkandZelda :P hahaha

Kendosis August 4th, 2008 4:31 PM

what script makes your pokemon follow you something like pokemon yellow version?

+Sneasel™ August 4th, 2008 5:40 PM

Quote:

Originally Posted by Kendosis (Post 3826760)
what script makes your pokemon follow you something like pokemon yellow version?

You can't do that unless you edit the OW with a pokemon following you.

.:God:. August 4th, 2008 5:58 PM

How do I make a script (I'm new) where

1st, you begin to walk down a path when
2nd, a group of people come out and walk with you when
3rd, they stop every so often to say something.

how can I make that?

Megiddo-san August 4th, 2008 6:25 PM

#org $begin
applymovement 0xFF
pausemove 0
applymovement times X 0xppl#
messages
and so on.

Jack-s-b August 5th, 2008 3:05 AM

Ive tried both the scripts that were given to me, both resulted in the same bright red frozen screen, also i have to use pokescript and encode as theres not a complile option, when i do this it says it has processed 0 lines and there is 3 invalid commands, has this got anything to do with the red screen
help would be appreciated

Rescue Team Thunder August 5th, 2008 7:51 AM

Megiddo, that doesn't really help. I want this to happen. (I've read tutorials and they don't help me) (I'm using XSE)

1: Brock, May, and a Youngster come out.
2: You walk for 1 step together, then this message comes up:
ASH: Tell me again Brock, are you really sure this is the right way to go?
BROCK: I used to think so, but now I’m not so sure.

MAY: We haven’t seen a town or anything!
MAX: And the PokeNav’s not picking up a signal at all!
PIKACHU: Pika!
3rd: Walk 2 more steps and this message:

MAX: Man, I’m so thirsty! Can I have some water, OK?
MAY: Just don’t drink it all!
MAX: I won’t. Thanks.
MAY: Max! I told you not to drink it all, didn’t I?
MAX: It wasn’t exactly full, ya know?

MAY: But know I know that there’s none left I’m thirstier then ever!
Walk 3 steps and message:
ASH: Water…
ALL: Ah!
and the script ends.

by the way, I'm working on the same hack RTW is. we're bros.

linkandzelda August 5th, 2008 10:34 AM

this isnt a script request thread its a script help thread.

i know its hard to learn scripting but if your doing you own hack then it is much easyer to be able to script yourself.

link

.:God:. August 5th, 2008 11:01 AM

Quote:

Originally Posted by linkandzelda (Post 3828950)
this isnt a script request thread its a script help thread.

i know its hard to learn scripting but if your doing you own hack then it is much easyer to be able to script yourself.

link

1st: I am doing my own hack. Pokemon revelation. You should keep your eyes open.
2nd: I've read every scripting tutorail there is.


All times are GMT -8. The time now is 2:34 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.