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)

Geeked April 2nd, 2008 4:35 AM

Is the script above supposed to be a script for the beginning? where it displays the pokemon in 3 different pokeballs?

destinedjagold April 2nd, 2008 5:22 AM

MasterCloud, that's easy to explain.
The reason is that, the script compiler tells you that something has been written, and then a new one has the same name and it will no longer accept it.
Here's your error.

Spoiler:
#org $option2
givepokemon 145 5 0
#raw 0x7A 0x0 0xFB
#raw 53
#raw 3
#raw 00
end
release

#org $option2
givepokemon 146 5 0
#raw 0x7A 0x01 0x99
#raw 53
#raw 3
#raw 00
end
release


See that? The underlined ones are the same.
Change one of them, okies? :)

MasterCloud April 2nd, 2008 6:50 AM

Oh thanks, I didn't see this big mistake :embarrass

I have a question :tongue:
I wanna make a character (a NPC) fly (like when you fly with a pokemon) and make him disappear, how do it ?

Tyrantrum April 2nd, 2008 3:17 PM

I'm having right now is scripting.
I think when everyone helps me get the right script, I compile and test it out, but in Ruby it crashes, and Fire Red it freezes.
I think I get closer to it in Fire Red.

destinedjagold April 2nd, 2008 3:28 PM

@shinypkmnfan13...
I think it has something to do with the variables you used on your scripts, and the unknown variables you put on the NPC's...

@MasterCloud...
sorry, I can't help you there...

Tyrantrum April 2nd, 2008 5:23 PM

Oh...well I've been using the ones people have been telling me to use.
I don't get it.
Is there a difference between Fire Red and Ruby?

Kenneth Alog April 2nd, 2008 6:27 PM

Here is a wildbattle script can anyone check if i have a lot of mistakes?
#org $start
lock
faceplayer
message $$2
$$2 1 =
boxset 0x6
cry 0xA1 254
#raw 0x02 0x00
nop
nop
wildbattle 254 70 1
fadescreen 0
#raw 0x53 0x0F 0x80
setflag 0x200
release
end

#org $1
$1 1 =DIALGA: Doguyunn!

Geeked April 3rd, 2008 3:40 AM

@shinypkmnfan Yes Theres alot of differences, theres different flags set, etc.

@ I WANT DIALGA theres mistakes in your script

Also, I've fixed it so i wont repeat itself...

Code:

#org $start
checkflag 0x200
if b_true goto $done

lock
faceplayer
message $1
boxset 6
cry 0xA1 254
#raw 0x02 0x00
nop
nop
wildbattle 254 70 1
fadescreen 0
#raw 0x53 0x0F 0x80
setflag 0x200
release
end

#org $done
release
end

#org $1
$1 1 =DIALGA: Doguyunn!


Changes are in bold...

WindBlows April 3rd, 2008 5:06 AM

Quote:

Originally Posted by Dr.Razor (Post 3453315)
hi,
when i insert this script the game just freeze,
so what's the probleme?
Code:

#org $start
message $1
boxset 6
applymovement 0x11 $move
pausemove 0x0
applymovement 0x10 $move2
pausemove 0x0
applymovement 0x09 $move2
pause 0x30
playsound 0x112
#raw 33
message $2
boxset 6
applymovement 0x04 $move3
applymovement 0xFF $move3
pausemove 0
fadesound 0x112
release
end

#org $move
#raw 0x1D 0x1D 0x1D 0x1D 0x1D 0x14 0x1F 0xFE

#org $move2
#raw 0x1D 0x1D 0x1D 0x1D 0x1D 0xFE

#org $move3
#raw 0x1E 0x1E 0x1E 0x1E 0x1E 0x1E 0xFE

#org $1
$1 1 = Ahhhhhhh!!!

#org $2
$2 1 = Qui ose se mettre sur la\nroute de la TEAM ROCKET?\pOn se reverra...



I think I have fixed it try it then. :P

All errors are in Bold

Piplup-Trainer April 3rd, 2008 7:06 AM

Is here a guy who is PERFECT at scripting?
If yes, can you help me?
Look at Page 32 Post #779.

Night_Blue April 3rd, 2008 11:39 AM

A script like that would take long.
You have to make new trainers and give them a setflag
(Or the checktrainer command which I never used)

#org $start
checkflag 0x200
if B_true goto $done
message $the
$the 1 = We're still not in Vermillion City.
boxset 6
release
end

#org $done
message $we
$we 1 = We arrived at Vermillion.
boxset 6
applymovement 0x__ $2
pausemove 0
release
end

#org $2
$2 1 ; #binary 0x12 0x00 0xFE

Piplup-Trainer April 3rd, 2008 2:40 PM

Quote:

Originally Posted by Night_Blue (Post 3463372)
A script like that would take long.
You have to make new trainers and give them a setflag
(Or the checktrainer command which I never used)

#org $start
checkflag 0x200
if B_true goto $done
message $the
$the 1 = We're still not in Vermillion City.
boxset 6
release
end

#org $done
message $we
$we 1 = We arrived at Vermillion.
boxset 6
applymovement 0x__ $2
pausemove 0
release
end

#org $2
$2 1 ; #binary 0x12 0x00 0xFE

That means that I've got to make 10 trainer scripts and 1 script which checks the flags/trainers, right?

Kenneth Alog April 3rd, 2008 2:46 PM

@xray thanks that was my first script!

Kenneth Alog April 3rd, 2008 2:47 PM

how can you insert scripts to your rom?

Night_Blue April 3rd, 2008 2:54 PM

Yes,give each trainer a differnt setflag.
And give the guy that checks if you have beaten them the checkflag
If your having trouble making it,I'll give you one I made before

Jack of Bl♠des April 3rd, 2008 3:00 PM

Quote:

Originally Posted by I WANT DIALGA (Post 3464015)
how can you insert scripts to your rom?

You would have to compile the script, then burn it to your ROM. There should be a tutorial of that on any pokescript guide.

ksunwoo6 April 3rd, 2008 10:08 PM

I NEED HELP!!!

So I wrote this script:
#org $start
checkflag 0x200
if b_true goto $done
lock
faceplayer
message $1
boxset 6
cry 0xA1 151
#raw 0x02 0x00
nop
nop
wildbattle 151 70 1
fadescreen 0
#raw 0x53 0x0F 0x80
setflag 0x200
release
end
#org $done
release
end
#org $1
$1 1 =MEW: Me..w.. Mew!

And Got This Result:

#PROCESS: C:\Documents and Settings\김선우\바탕 화면\Pokemon Hacking\Pokemon Hack Projects\Pokemon ThunderYellow\PKMN Fire Red Version E.gba F:2 for read
-------------------------------------------------------------------------------------------------------------------------------------------------
#PROCESS: C:\Documents and Settings\김선우\바탕 화면\Pokemon Hacking\Pokemon Hack Projects\Pokemon ThunderYellow\PKMN Fire Red Version E.gba F:3 for read
-------------------------------------------------------------------------------------------------------------------------------------------------
- Pushed mew script.$start to 80092E
#PROCESS: C:\Documents and Settings\김선우\바탕 화면\Pokemon Hacking\Pokemon Hack Projects\Pokemon ThunderYellow\PKMN Fire Red Version E.gba F:4 for read
-------------------------------------------------------------------------------------------------------------------------------------------------
#PROCESS: C:\Documents and Settings\김선우\바탕 화면\Pokemon Hacking\Pokemon Hack Projects\Pokemon ThunderYellow\PKMN Fire Red Version E.gba F:5 for read
-------------------------------------------------------------------------------------------------------------------------------------------------
- Pushed mew script.$done to 80095D
#PROCESS: C:\Documents and Settings\김선우\바탕 화면\Pokemon Hacking\Pokemon Hack Projects\Pokemon ThunderYellow\PKMN Fire Red Version E.gba F:6 for read
-------------------------------------------------------------------------------------------------------------------------------------------------
#PROCESS: C:\Documents and Settings\김선우\바탕 화면\Pokemon Hacking\Pokemon Hack Projects\Pokemon ThunderYellow\PKMN Fire Red Version E.gba F:7 for read
-------------------------------------------------------------------------------------------------------------------------------------------------
- Pushed mew script.$1 to 800960
#PROCESS: C:\Documents and Settings\김선우\바탕 화면\Pokemon Hacking\Pokemon Hack Projects\Pokemon ThunderYellow\PKMN Fire Red Version E.gba F:8 for read
-------------------------------------------------------------------------------------------------------------------------------------------------
- Adjusting mew script.$done in 0 at 880095D
- Adjusting mew script.$1 in 0 at 8800960
- Putting [+
- Putting [l] at 80095D
- Putting [C¿Nð
|
\- Processed 0 Lines

Now In my Advance Map (1.9)
What offset am I supposed to use?
And what am I supposed to do with
The movement code, the Unknown codes, and etc in ADVANCE MAP??
IT's URGENT... HELP ME PLZ!!!

Night_Blue April 3rd, 2008 10:31 PM

Don't worry about the movement permission,just put the offset where it says ''Script Offset''
If it's an S,put :
____________________
Unknown l 0300
Var Number l 5040

ksunwoo6 April 3rd, 2008 10:55 PM

Quote:

Originally Posted by Night_Blue (Post 3465310)
Don't worry about the movement permission,just put the offset where it says ''Script Offset''
If it's an S,put :
____________________
Unknown l 0300
Var Number l 5040

Which offset do I use? Do I use the start$ offset?? or whaT?
And where's the Var Number Box?? I can't Find It...

Night_Blue April 3rd, 2008 11:41 PM

Yeah,use the first offset.
A person doesn't need a var nmber,just those S (I don't know how to call them)

ksunwoo6 April 4th, 2008 2:23 AM

Quote:

Originally Posted by Night_Blue (Post 3465459)
Yeah,use the first offset.
A person doesn't need a var nmber,just those S (I don't know how to call them)

I tried them... but it dosen't work...
It's a person event. though.

a new killer, ramoteh April 4th, 2008 2:28 AM

Dont give the person the unknown,only for the Scrpt tiles (Or the S tiles)

What happen's? (Filer)

Geeked April 4th, 2008 8:32 AM

I fixed my error, Know need for it to e here anymore...

Morfeo April 4th, 2008 9:37 AM

Hello, I have a question. I want to know if anybody knows if some commands Script Basic Advance Pokemon are used or are the same as those used in Pokemon Colosseum and XD or are completely different?. Only I refer to basic commands as givepokemon (79) or pokemart (86).

I hope somebody knows the answer or finds corroborated. In advance thank you.

/Circa April 4th, 2008 2:39 PM

Quote:

Originally Posted by ksunwoo6 (Post 3465766)
I tried them... but it dosen't work...
It's a person event. though.

When you compile your script, you should get some offsets.
800000 and so on.
They should have six numbers.
Use the first offset next to $start.


All times are GMT -8. The time now is 2:35 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.