The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page [Archive] Script help thread

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Closed Thread
 
Thread Tools
  #26   Link to this post, but load the entire thread.  
Old December 21st, 2007 (6:49 PM).
~*Pikafan*~'s Avatar
~*Pikafan*~ ~*Pikafan*~ is offline
Man I gotta stop leaving!
 
Join Date: Sep 2007
Age: 29
Gender:
Nature: Jolly
Posts: 202
I just tried this script for FireRed and 2 things happened. When you click yes for the first Question, It acts as no and when you click no, it acts as yes but the screen goes red. Anyone know why?

Code:
#org $begin
checkflag 0x200
if B_true goto $done
message $it
boxset 6
release
end

#org $it
$it 1 = It's a pokeball.

#org $done
message $do
boxset 5
compare LASTRESULT 1
if B_true goto $end
givepoke 280 5 0
setflag 0x828
setflag 0x203
message $gotpoke
boxset 6
message $namepoke
boxset 5
compare LASTRESULT 1
if B_true goto $continue
goto $namepoked

#org $namepoked
namepokemon
goto $continue

#org $end
message $putback
boxset 6
release
end

#org $putback
$putback 1 = You put the pokeball back.

#org $do
$do 1 = Do you want to take\nthe Chick Pokemon Torchic?

#org $gotpoke
$gotpoke 1 = You obtained a Torchic!

#org $namepoke
$namepoke 1 = Would you like to nickname Torchic?

#org $continue
applymovement 8 $mw1
pausemove 0
setflag 0x204
message $finally
boxset 6
clearflag 0x206
applymovement 1 $mw2
pausemove 0
message $mine
boxset 6
setflag 0x205
message $who
boxset 6
message $thanks
boxset 6
applymovement 1 $mw3
pausemove 0
setflag 0x206
message $wait
boxset 6
applymovement 8 $mw4
applymovement 0xFF $mw4
pausemove 0
message $now
boxset 6
applymovement 4 $mw5
pausemove 0
setflag 0x207
applymovement 4 $mw6
pausemove 0
setflag 0x829
message $pokedex
boxset 6
release
end

#org $mw1
$mw1 1 ; #binary 0x13 0x13 0x10 0x10 0x13 0x13 0x11 0x11 0xFE

#org $finally
$finally 1 = Finally I get my pokemon!\nI'll take this one,\pIt has to be stronger.

#org $mw2
$mw2 1 ; #binary 0x11 0x11 0x11 0x11 0x11 0x13 0x13 0x13 0x11 0xFE

#org $mine
$mine 1 = ????: Ok, then this one is mine!

#org $who
$who 1 = PROF. MAGNOLIA: You must\nbe the other trainer\pthat I was expecting.\nYou're finally here.\pYou can have that pokemon,\nfor it is the only one left.

#org $thanks
$thanks 1 = ????: Thanks, now I gotta go!  Bye!

#org $mw3
$mw3 1 ; #binary 0x10 0x10 0x12 0x12 0x12 0x12 0x10 0x10 0x10 0x10 0x10 0xFE

#org $wait
$wait 1 = PROF. MAGNOLIA: Wait!\n..Oh nevermind.\pYou two, come here.

#org $mw4
$mw4 1 ; #binary 0x12 0x12 0x11 0x11 0xFE

#org $now
$now 1 = Now, there's one thing that I\nhave to give the two of you.

#org $mw5
$mw5 1 ; #binary 0x12 0x11 0xFE

#org $mw6
$mw6 1 ; #binary 0x10 0x13 0x4A 0xFE

#org $pokedex
$pokedex 1 = You got the Pokedex!
__________________
I have returned ONC AGAIN!

Guitar Hero and Rock Band Rock. 'Nuff Said :P

I have a bunch of Friend Codes for Wii. These games I have Friend Codes for:

Guitar Hero World Tour (GHWT)
Super Smash Bros. Brawl (SSBB)
Guitar Hero 3 (GH3)
Pokemon Battle Revolution (PBR)
Rock Band 2, once I get it >_> (RB2)

RAWR. I NEED SHTUFF FOR MAH SIGNATURE. RAWR.
  #27   Link to this post, but load the entire thread.  
Old December 21st, 2007 (7:02 PM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by EarthsVisitor View Post
Lots of mistakes.

#org $StartMarket
lock
faceplayer
message $buy
$buy 1 =Do you want to buy anything?
boxset 5
compare lastresult 1
if B_TRUE goto $yes
message $no
$no 1 =Alright see you next time!
boxset 6
release
end

#org $yes
message $yesmes
$yesmes 1 =Alright this is what I got.
boxset 6
pokemart $marketValues
message $nice
$nice 1 =Thanks!\nHave a nice day!
boxset 6
release
end

#org $marketValues
#binary int 0x4 0xD 0x11 0x12 0xE 0x56 0x1B 0x22 0x0
You missed one problem EV. THe end of the Pokemart line. The Pokemart values need to end with 0x0.
__________________
Gone.
  #28   Link to this post, but load the entire thread.  
Old December 21st, 2007 (8:32 PM).
Scorp Con's Avatar
Scorp Con Scorp Con is offline
 
Join Date: Sep 2007
Location: Sydney, Australia
Age: 26
Gender:
Posts: 92
Code:
#org $CantGo
message $CantGo
$WCantGo 1 = You need a Pokemon\nto go in there!\nHere, take this Absol!
boxset 6
givepokemon 359 5 0
jingle
message $GotAbsol
$GotChick 1 = You Recieved a Absol
boxset 6
message $NameAbsol
$NameChick 1 = Would You like to give Absol a name?
boxset 5
compare LASTRESULT 1
if b_False goto $GiveDex
Namepokemon
setflag 0x203
goto $GiveDex

#org $GiveDex
setflag 0x800
setflag 0x801
message $Pokedex
$Pokedex 1 = I hope you like it!
boxset 6
jingle
message $GotDex
$Gotdex 1 = You got the Pokedex!
boxset 6
end
Is it allright? All it need some changes?
__________________
My PokeCommunity Friends
Concorde - Heatran
  #29   Link to this post, but load the entire thread.  
Old December 21st, 2007 (9:23 PM). Edited December 21st, 2007 by thethethethe.
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by Madridista View Post
Code:
#org $CantGo
message $CantGo
$CantGo 1 = You need a Pokemon\nto go in there!\lHere, take this Absol!
boxset 6
givepokemon 359 5 0
jingle
message $GotAbsol
[B]$GotAbsol[b] 1 = You Recieved an Absol
boxset 6
message $NameAbsol
$NameAbsol 1 = Would You like to give Absol a name?
boxset 5
compare LASTRESULT 1
if b_False goto $GiveDex
Namepokemon
setflag 0x203
goto $GiveDex

#org $GiveDex
setflag 0x800
setflag 0x801
message $Pokedex
$Pokedex 1 = I hope you like it!
boxset 6
jingle
message $GotDex
$Gotdex 1 = You got the Pokedex!
boxset 6
end
Is it allright? All it need some changes?
I changed some things. They're in bold.

Okay, it's been a while since I posted a problem here. I'm not sure if this should be in simple questions or here, since it's level scripts, I posted it here.
I got the idea from Crashlink(seen on previous page), how he wants to make the weather change from dark to light, with scripting. That gave me an idea of trying to involve random weather. So I started thinking of ways to do it. I didn't want to do it with lots of little scripts lying around. I wanted to alter the level scripts.
Here's what I did. Sorry, if it's a little confusing.
I went to the level script of pallet town and it led me to 0x16545A.
So I opened it in a hex editor and it led me to this.
03 65 54 16 08 02 CE 54 16 08.
Working with the second pointer I looked at 1654CE and changed...
50 40 02 00 D8 54 16 08
to...
98 40 01 00 0D 02 80 08
which was where my script was.
If it's important this is the script it pointed to.
Spoiler:
Code:
#org $script
compare 0x4099 0x0
if 1 goto $normal
compare 0x4099 0x1
if 1 goto $clouds
compare 0x4099 0x2
if 1 goto $snow
compare 0x4099 0x3
if 1 goto $rain
compare 0x4099 0x4
if 1 goto $Dark
compare 0x4099 0x5
if 1 goto $thunder
compare 0x4099 0x6
if 1 goto $Fog
compare 0x4099 0x7
if 1 goto $flakes
compare 0x4099 0x8
if 1 goto $thunder2
end

#org $normal
#raw 0xA4 0x02 0x00
#raw 0xA5
goto $random

#org $clouds
#raw 0xA4 0x01 0x00
#raw 0xA5
goto $random

#org $rain
#raw 0xA4 0x03 0x00
#raw 0xA5
goto $random

#org $flakes
#raw 0xA4 0x04 0x00
#raw 0xA5
goto $random

#org $thunder
#raw 0xA4 0x05 0x00
#raw 0xA5
goto $random

#org $Fog
#raw 0xA4 0x06 0x00
#raw 0xA5
goto $random

#org $snow
#raw 0xA4 0x07 0x00
#raw 0xA5
goto $random

#org $dark
#raw 0xA4 0x0B 0x00
#raw 0xA5
goto $random

#org $thunder2
#raw 0xA4 0x0D 0x00
#raw 0xA5
goto $random

#org $random
#raw 0x8F 0x10 0x00
compare 0x800D 0x0
if 1 goto $cnormal
compare 0x800D 0x1
if 1 goto $cclouds
compare 0x800D 0x2
if 1 goto $csnow
compare 0x800D 0x3
if 1 goto $cnormal
compare 0x800D 0x4
if 1 goto $cclouds
compare 0x800D 0x5
if 1 goto $cnormal
compare 0x800D 0x6
if 1 goto $crain
compare 0x800D 0x7
if 1 goto $cnormal
compare 0x800D 0x8
if 1 goto $csnow
compare 0x800D 0x9
if 1 goto $cDark
compare 0x800D 0xA
if 1 goto $cthunder
compare 0x800D 0xB
if 1 goto $cnormal
compare 0x800D 0xC
if 1 goto $cFog
compare 0x800D 0xD
if 1 goto $cflakes
compare 0x800D 0xE
if 1 goto $cdark
compare 0x800D 0xF
if 1 goto $cnormal
compare 0x800D 0x10
if 1 goto $cthunder2
end

#org $cnormal
setvar 0x4099 0x0
end

#org $cclouds
setvar 0x4099 0x1
end

#org $crain
setvar 0x4099 0x3
end

#org $cflakes
setvar 0x4099 0x7
end

#org $cthunder
setvar 0x4099 0x5
end

#org $cFog
setvar 0x4099 0x6
end

#org $csnow
setvar 0x4099 0x2
end

#org $cdark
setvar 0x4099 0x4
end

#org $cthunder2
setvar 0x4099 0x8
end

So I wrote another script that would setvar 0x4098 0x1.
In hope that it would activate the level script.
When I went into the game and spoke to the person the set the variable, the game froze.
I went to back to the hex editor and changed
02 CE 54 16 08.
to this
00 CE 54 16 08.
Now the game no longer freezes but the level script won't activate.
So I'm wondering, does anybody know the problem?
Would it work if I changed the first byte to something else? What other bytes could I use?
If you think you know what the problem is, I'd love to know.
I know that the problem isn't the script that the level script points to, I tested it in a normal manner and it worked fine.
__________________
Gone.
  #30   Link to this post, but load the entire thread.  
Old December 21st, 2007 (11:39 PM).
0m3ga_S1nn3r's Avatar
0m3ga_S1nn3r 0m3ga_S1nn3r is offline
Beginner Hacker :)
 
Join Date: Dec 2007
Location: In my house
Age: 26
Gender:
Posts: 80
Quote:
Originally Posted by kingdude256 View Post
OK, i really suck at scripting so if someone could, could they explain how to use it for noobs and where do i get script ed?? if someone could tell me then thank you sooooooooooo much.(they'll become my new bestfriend)
could someone please help me with this please i really need some help!!!!
__________________
Things I like:
Music Genre: R&B
Song: We Run This [Stick it Edit]
Ice-Cream: Chocolate
Tv Show: Simpsons
Pokemon: Chimchar
Pokemon Game: Pokemon Red

¨°-_,,_-°¨
::~- Elite -~::
..-v'' ''v-...




  #31   Link to this post, but load the entire thread.  
Old December 22nd, 2007 (12:11 AM).
Twinx's Avatar
Twinx Twinx is offline
s o m e t h i n g M O R E
 
Join Date: Nov 2006
Location: m i l e s A W A Y
Age: 33
Gender:
Nature: Brave
Posts: 1,802
Quote:
Originally Posted by kingdude256 View Post
could someone please help me with this please i really need some help!!!!
For your tools, go here: http://www.pokecommunity.com/forumdisplay.php?f=66

For simple tutorials and what tools you need go here:
http://www.pokecommunity.com/forumdisplay.php?f=58
__________________
coming back looking delicious

:: my deviantArt ::
  #32   Link to this post, but load the entire thread.  
Old December 22nd, 2007 (2:15 AM).
akash's Avatar
akash akash is offline
Pikachu is the best.
 
Join Date: Dec 2007
Location: India
Age: 29
Gender:
Nature: Calm
Posts: 21
Guys please dont laugh at me because I am new. Well my prob is I typed my first script and I gave the offset as 0x800000 and then when I tried to make the second I gave the offset as 0x800100 and then I tried to play the game but it keeps getting hanged. And sometimes the message what I have given to the first guy gets mixed up with the message of the 2nd guy. The message becomes something like 'can I get your Beware of pokemon'. So please help me.
  #33   Link to this post, but load the entire thread.  
Old December 22nd, 2007 (2:34 AM).
/Circa's Avatar
/Circa /Circa is offline
a face in the clouds.
 
Join Date: Nov 2007
Location: Melbourne, Victoria
Gender: Male
Nature: Quiet
Posts: 881
Could you show us your script?
The only other things I can suggest is you compiled wrong or did two scripts in one?
I'm sought of confused by whats going on, thats never happened before...

thethethethe:

You'll have to ask Teh Baro, not many of us know many level scripts.
Sometimes the simplest answer is a typo, I really don't know.
Try looking through the whole thing over.
__________________
dragging himself, forw
ard again, the pain has
still not diminished. E
ventually though, he e
merges inside a v
ery large room w

here everything about

the house

suddenly

changes.
  #34   Link to this post, but load the entire thread.  
Old December 22nd, 2007 (3:36 AM).
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by Crashink View Post
thethethethe:

You'll have to ask Teh Baro, not many of us know many level scripts.
Sometimes the simplest answer is a typo, I really don't know.
Try looking through the whole thing over.
I already searched the log, to look for a typo, but yeah, it doesn't matter.
I probably should have asked Teh Baro from the start but it's a bit late for that now, I just figured it out on my own. Thanks anyway.
__________________
Gone.
  #35   Link to this post, but load the entire thread.  
Old December 22nd, 2007 (5:19 AM).
~*Pikafan*~'s Avatar
~*Pikafan*~ ~*Pikafan*~ is offline
Man I gotta stop leaving!
 
Join Date: Sep 2007
Age: 29
Gender:
Nature: Jolly
Posts: 202
Quote:
Originally Posted by ~*Pikafan*~ View Post
I just tried this script for FireRed and 2 things happened. When you click yes for the first Question, It acts as no and when you click no, it acts as yes but the screen goes red. Anyone know why?

Code:
#org $begin
checkflag 0x200
if B_true goto $done
message $it
boxset 6
release
end

#org $it
$it 1 = It's a pokeball.

#org $done
message $do
boxset 5
compare LASTRESULT 1
if B_true goto $end
givepoke 280 5 0
setflag 0x828
setflag 0x203
message $gotpoke
boxset 6
message $namepoke
boxset 5
compare LASTRESULT 1
if B_true goto $continue
goto $namepoked

#org $namepoked
namepokemon
goto $continue

#org $end
message $putback
boxset 6
release
end

#org $putback
$putback 1 = You put the pokeball back.

#org $do
$do 1 = Do you want to take\nthe Chick Pokemon Torchic?

#org $gotpoke
$gotpoke 1 = You obtained a Torchic!

#org $namepoke
$namepoke 1 = Would you like to nickname Torchic?

#org $continue
applymovement 8 $mw1
pausemove 0
setflag 0x204
message $finally
boxset 6
clearflag 0x206
applymovement 1 $mw2
pausemove 0
message $mine
boxset 6
setflag 0x205
message $who
boxset 6
message $thanks
boxset 6
applymovement 1 $mw3
pausemove 0
setflag 0x206
message $wait
boxset 6
applymovement 8 $mw4
applymovement 0xFF $mw4
pausemove 0
message $now
boxset 6
applymovement 4 $mw5
pausemove 0
setflag 0x207
applymovement 4 $mw6
pausemove 0
setflag 0x829
message $pokedex
boxset 6
release
end

#org $mw1
$mw1 1 ; #binary 0x13 0x13 0x10 0x10 0x13 0x13 0x11 0x11 0xFE

#org $finally
$finally 1 = Finally I get my pokemon!\nI'll take this one,\pIt has to be stronger.

#org $mw2
$mw2 1 ; #binary 0x11 0x11 0x11 0x11 0x11 0x13 0x13 0x13 0x11 0xFE

#org $mine
$mine 1 = ????: Ok, then this one is mine!

#org $who
$who 1 = PROF. MAGNOLIA: You must\nbe the other trainer\pthat I was expecting.\nYou're finally here.\pYou can have that pokemon,\nfor it is the only one left.

#org $thanks
$thanks 1 = ????: Thanks, now I gotta go!  Bye!

#org $mw3
$mw3 1 ; #binary 0x10 0x10 0x12 0x12 0x12 0x12 0x10 0x10 0x10 0x10 0x10 0xFE

#org $wait
$wait 1 = PROF. MAGNOLIA: Wait!\n..Oh nevermind.\pYou two, come here.

#org $mw4
$mw4 1 ; #binary 0x12 0x12 0x11 0x11 0xFE

#org $now
$now 1 = Now, there's one thing that I\nhave to give the two of you.

#org $mw5
$mw5 1 ; #binary 0x12 0x11 0xFE

#org $mw6
$mw6 1 ; #binary 0x10 0x13 0x4A 0xFE

#org $pokedex
$pokedex 1 = You got the Pokedex!
Did anyone notice my post? I can't understand what's wrong and why it does this.
__________________
I have returned ONC AGAIN!

Guitar Hero and Rock Band Rock. 'Nuff Said :P

I have a bunch of Friend Codes for Wii. These games I have Friend Codes for:

Guitar Hero World Tour (GHWT)
Super Smash Bros. Brawl (SSBB)
Guitar Hero 3 (GH3)
Pokemon Battle Revolution (PBR)
Rock Band 2, once I get it >_> (RB2)

RAWR. I NEED SHTUFF FOR MAH SIGNATURE. RAWR.
  #36   Link to this post, but load the entire thread.  
Old December 22nd, 2007 (6:36 AM).
linkandzelda's Avatar
linkandzelda linkandzelda is offline
n00b desu ka?
 
Join Date: Dec 2006
Location: Hastings, England
Gender: Male
Nature: Careful
Posts: 776
#org $begin
checkflag 0x200
if B_true goto $done
message $it
boxset 6
release
end

#org $it
$it 1 = It's a pokeball.

#org $done
message $do
boxset 5
compare LASTRESULT B_TRUE
if B_FALSE goto $end
givepokemon 280 5 0
setflag 0x828
setflag 0x203
message $gotpoke
boxset 6
message $namepoke
boxset 5
compare LASTRESULT B_TRUE
if B_FALSE goto $continue
goto $namepoked
release
end


#org $namepoked
namepokemon
goto $continue
release
end


#org $end
message $putback
boxset 6
release
end

#org $putback
$putback 1 = You put the pokeball back.

#org $do
$do 1 = Do you want to take\nthe Chick Pokemon Torchic?

#org $gotpoke
$gotpoke 1 = You obtained a Torchic!

#org $namepoke
$namepoke 1 = Would you like to nickname Torchic?

#org $continue
applymovement 8 $mw1
pausemove 0
setflag 0x204
message $finally
boxset 6
clearflag 0x206
applymovement 1 $mw2
pausemove 0
message $mine
boxset 6
setflag 0x205
message $who
boxset 6
message $thanks
boxset 6
applymovement 1 $mw3
pausemove 0
setflag 0x206
message $wait
boxset 6
applymovement 8 $mw4
applymovement 0xFF $mw4
pausemove 0
message $now
boxset 6
applymovement 4 $mw5
pausemove 0
setflag 0x207
applymovement 4 $mw6
pausemove 0
setflag 0x829
message $pokedex
boxset 6
release
end

#org $mw1
$mw1 1 ; #binary 0x13 0x13 0x10 0x10 0x13 0x13 0x11 0x11 0xFE

#org $finally
$finally 1 = Finally I get my pokemon!\nI'll take this one,\pIt has to be stronger.

#org $mw2
$mw2 1 ; #binary 0x11 0x11 0x11 0x11 0x11 0x13 0x13 0x13 0x11 0xFE

#org $mine
$mine 1 = ????: Ok, then this one is mine!

#org $who
$who 1 = PROF. MAGNOLIA: You must\nbe the other trainer\pthat I was expecting.\nYou're finally here.\pYou can have that pokemon,\nfor it is the only one left.

#org $thanks
$thanks 1 = ????: Thanks, now I gotta go! Bye!

#org $mw3
$mw3 1 ; #binary 0x10 0x10 0x12 0x12 0x12 0x12 0x10 0x10 0x10 0x10 0x10 0xFE

#org $wait
$wait 1 = PROF. MAGNOLIA: Wait!\n..Oh nevermind.\pYou two, come here.

#org $mw4
$mw4 1 ; #binary 0x12 0x12 0x11 0x11 0xFE

#org $now
$now 1 = Now, there's one thing that I\nhave to give the two of you.

#org $mw5
$mw5 1 ; #binary 0x12 0x11 0xFE

#org $mw6
$mw6 1 ; #binary 0x10 0x13 0x4A 0xFE

#org $pokedex
$pokedex 1 = You got the Pokedex!



~*Pikafan*~:try that. it should work but i havent tested it

hope it helps
link
__________________
  #37   Link to this post, but load the entire thread.  
Old December 22nd, 2007 (6:50 AM).
~*Pikafan*~'s Avatar
~*Pikafan*~ ~*Pikafan*~ is offline
Man I gotta stop leaving!
 
Join Date: Sep 2007
Age: 29
Gender:
Nature: Jolly
Posts: 202
Well, that worked...Sorta. It works like that, but first of all, the pokeball doesn't disappear, even though I put Setflag and the number of the flag.

Now I'll list all of the errors in the script and I don't know how to fix them.

-The pokeball doesn't disappear
-If you nickname it, the script won't continue
-The Rival goes 1 step too far Fixed
-The person with the flag 206 in their ID doesn't appear, even after I cleared the flag.
-None of the pokeballs disappear
-You and your rival move one step too far Fixed
-The pokedexes don't disappear
-The script keeps happening even after it ends. You can get infinate Pokemon because of that.
__________________
I have returned ONC AGAIN!

Guitar Hero and Rock Band Rock. 'Nuff Said :P

I have a bunch of Friend Codes for Wii. These games I have Friend Codes for:

Guitar Hero World Tour (GHWT)
Super Smash Bros. Brawl (SSBB)
Guitar Hero 3 (GH3)
Pokemon Battle Revolution (PBR)
Rock Band 2, once I get it >_> (RB2)

RAWR. I NEED SHTUFF FOR MAH SIGNATURE. RAWR.
  #38   Link to this post, but load the entire thread.  
Old December 22nd, 2007 (7:06 AM).
akash's Avatar
akash akash is offline
Pikachu is the best.
 
Join Date: Dec 2007
Location: India
Age: 29
Gender:
Nature: Calm
Posts: 21
Hey Crashink here is the script-
This is the first script which I typed in a notepad and then loaded it into script Ed and compiled it etc..
#org 0x800000
lock
faceplayer
message 0x800100
boxset 0x02
end
#org 0x800100
= Hello.\n ha!\p Aren't you \v\h01!\p Wow its a great plessure\n to meet you.\p Could I get your autograph\n \v\h01!\p Well, we have many things in common\n like.....\p our face meet.\n The other thing is \p Even I am a new trainer.\p Well by the way\n I am mathew and \p This is my best friend\n Pikachu\p Well I call it sparkie.
release
end

And here is the second script which I typed in another notepad and loaded it into another script Ed and then compiled it and here it is-
#org 0x800101
message 0x800200
boxset 0x02
end
#org 0x800200
= Beware of pokemon.

Well the problem is the guy instead of could I get your autograph he says Could I get your beware of pokemon.
  #39   Link to this post, but load the entire thread.  
Old December 22nd, 2007 (7:22 AM).
linkandzelda's Avatar
linkandzelda linkandzelda is offline
n00b desu ka?
 
Join Date: Dec 2006
Location: Hastings, England
Gender: Male
Nature: Careful
Posts: 776
Quote:
Originally Posted by ~*Pikafan*~ View Post
Well, that worked...Sorta. It works like that, but first of all, the pokeball doesn't disappear, even though I put Setflag and the number of the flag.

Now I'll list all of the errors in the script and I don't know how to fix them.

-The pokeball doesn't disappear
-If you nickname it, the script won't continue
-The Rival goes 1 step too far Fixed
-The person with the flag 206 in their ID doesn't appear, even after I cleared the flag.
-None of the pokeballs disappear
-You and your rival move one step too far Fixed
-The pokedexes don't disappear
-The script keeps happening even after it ends. You can get infinate Pokemon because of that.

the thing with the pokeballs and dexes to dissapear is you need to put this in the script where you want that sprite to dissapear:

setflag 0x(people id)
#raw 0x53
#raw 0x(people no.)
#raw 0x00

i think the script keeps going because the pokeballs are still there so if there not then it should work.

hope it helpped
link
__________________
  #40   Link to this post, but load the entire thread.  
Old December 22nd, 2007 (10:42 AM).
~*Pikafan*~'s Avatar
~*Pikafan*~ ~*Pikafan*~ is offline
Man I gotta stop leaving!
 
Join Date: Sep 2007
Age: 29
Gender:
Nature: Jolly
Posts: 202
It works now, but there are 2 more problems.

1. You still can't nickname your pokemon. Actually you can but the script ends.

2. the clearflag doesn't work.
__________________
I have returned ONC AGAIN!

Guitar Hero and Rock Band Rock. 'Nuff Said :P

I have a bunch of Friend Codes for Wii. These games I have Friend Codes for:

Guitar Hero World Tour (GHWT)
Super Smash Bros. Brawl (SSBB)
Guitar Hero 3 (GH3)
Pokemon Battle Revolution (PBR)
Rock Band 2, once I get it >_> (RB2)

RAWR. I NEED SHTUFF FOR MAH SIGNATURE. RAWR.
  #41   Link to this post, but load the entire thread.  
Old December 22nd, 2007 (11:23 AM).
linkandzelda's Avatar
linkandzelda linkandzelda is offline
n00b desu ka?
 
Join Date: Dec 2006
Location: Hastings, England
Gender: Male
Nature: Careful
Posts: 776
Quote:
Originally Posted by ~*Pikafan*~ View Post
It works now, but there are 2 more problems.

1. You still can't nickname your pokemon. Actually you can but the script ends.

2. the clearflag doesn't work.
if your talking about the clearflag that makes the sprite reapear then add this were you want it to reapear:

clearflag 0x(people id)
#raw 0x55
#raw 0x(people no.)
#raw 0x00

i'm not to sure about the nickname bit.

hope it works now
link
__________________
  #42   Link to this post, but load the entire thread.  
Old December 22nd, 2007 (11:33 AM).
~*Pikafan*~'s Avatar
~*Pikafan*~ ~*Pikafan*~ is offline
Man I gotta stop leaving!
 
Join Date: Sep 2007
Age: 29
Gender:
Nature: Jolly
Posts: 202
It works now, linkandzelda, thanks.
__________________
I have returned ONC AGAIN!

Guitar Hero and Rock Band Rock. 'Nuff Said :P

I have a bunch of Friend Codes for Wii. These games I have Friend Codes for:

Guitar Hero World Tour (GHWT)
Super Smash Bros. Brawl (SSBB)
Guitar Hero 3 (GH3)
Pokemon Battle Revolution (PBR)
Rock Band 2, once I get it >_> (RB2)

RAWR. I NEED SHTUFF FOR MAH SIGNATURE. RAWR.
  #43   Link to this post, but load the entire thread.  
Old December 23rd, 2007 (12:15 AM).
/Circa's Avatar
/Circa /Circa is offline
a face in the clouds.
 
Join Date: Nov 2007
Location: Melbourne, Victoria
Gender: Male
Nature: Quiet
Posts: 881
Well, I don't have my PokeScript here because i'm holidays.
Could someone check if this script is right?

I'm trying to expand my scripting knowledge.

Code:
#org beginscript
lock
setflag 0x200
applymovement 0x1 0x800000
message 0x800100
boxset 0x6
applymovement 0x1 0x800200
end

#org 0x800100 
lock
faceplayer
message 0x800100 = Hi \v\h01!\pYou might need a Pokemon before\lgoing on your journey!
givepokemon 0x25 0x5 0x0
release

#org 0x800000
#raw 0x09
#raw 0x09
#raw 0x09
#raw 0x0B
#raw 0x0B
#raw 0xFE
release

#org 0x800200
#raw 0x0A
#raw 0x0A
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x03
#raw 0xFE
release
end
__________________
dragging himself, forw
ard again, the pain has
still not diminished. E
ventually though, he e
merges inside a v
ery large room w

here everything about

the house

suddenly

changes.
  #44   Link to this post, but load the entire thread.  
Old December 23rd, 2007 (12:41 AM). Edited December 23rd, 2007 by thethethethe.
thethethethe thethethethe is offline
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote:
Originally Posted by Crashink View Post
Well, I don't have my PokeScript here because i'm holidays.
Could someone check if this script is right?

I'm trying to expand my scripting knowledge.

Code:
#org beginscript
lock
setflag 0x200
applymovement 0x1 0x800000
message 0x800100
boxset 0x6
applymovement 0x1 0x800200
end

#org 0x800100 
lock
faceplayer
message 0x800100 = Hi \v\h01!\pYou might need a Pokemon before\lgoing on your journey!
givepokemon 0x25 0x5 0x0
release

#org 0x800000
#raw 0x09
#raw 0x09
#raw 0x09
#raw 0x0B
#raw 0x0B
#raw 0xFE
release

#org 0x800200
#raw 0x0A
#raw 0x0A
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x03
#raw 0xFE
release
end
No that's got quite a few mistakes. I think you should re-read through some tutorials.
NOTE: This event will repeat, and people no. 0x1, won't be dissapearing, so that the OW, will remain on the screen.

Code:
#org (0x??????)    'Since all the others are in a pointer format, this one is wrong.
lock
setflag 0x200    '??? What's the point of this? but since there's nothing wrong with it there's no point removing it. 
applymovement 0x1 0x800000
pausemove 0      'There needs to be some kind of pause otherwise the movements won't run.
message 0x800100       'Does not point to another script. It's just pointing to a message.
boxset 0x6
givepokemon 0x25 0x5 0x0
message 0x800010      'I thought you should add something acknowledging the recieving of the Pokemon.
boxset 0x6
applymovement 0x1 0x800200
pausemove 0    'There needs to be some kind of pause otherwise the movements won't run.
release
end

#org 0x800100 
= Hi \v\h01!\pYou might need a Pokemon before\lgoing on your journey!

#org 0x800010
=\c\h01\h02You recieved a VULPIX

#org 0x800000
#raw 0x09
#raw 0x09
#raw 0x09
#raw 0x0B
#raw 0x0B
#raw 0xFE   'No need for release, 0xFE marks the end of the movements

#org 0x800200
#raw 0x0A
#raw 0x0A
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x03
#raw 0xFE    'No need for release, 0xFE marks the end of the movements


Quote:
Originally Posted by akash
Hey Crashink here is the script-
This is the first script which I typed in a notepad and then loaded it into script Ed and compiled it etc..
#org 0x800000
lock
faceplayer
message 0x800100
boxset 0x02
end
#org 0x800100
= Hello.\n ha!\p Aren't you \v\h01!\p Wow its a great plessure\n to meet you.\p Could I get your autograph\n \v\h01!\p Well, we have many things in common\n like.....\p our face meet.\n The other thing is \p Even I am a new trainer.\p Well by the way\n I am mathew and \p This is my best friend\n Pikachu\p Well I call it sparkie.
release
end

And here is the second script which I typed in another notepad and loaded it into another script Ed and then compiled it and here it is-
#org 0x800101
message 0x800200
boxset 0x02
end
#org 0x800200
= Beware of pokemon.

Well the problem is the guy instead of could I get your autograph he says Could I get your beware of pokemon.
Here's the problem, you're offsets overlap. I fixed so that they'll run properly.

Code:
#org 0x800000
lock
faceplayer
message 0x800010
boxset 0x02
release
end
#org 0x800010
= Hello.\n ha!\p Aren't you \v\h01!\p Wow its a great plessure\n to meet you.\p Could I get your autograph\n \v\h01!\p Well, we have many things in common\n like.....\p our face meet.\n The other thing is \p Even I am a new trainer.\p Well by the way\n I am mathew and \p This is my best friend\n Pikachu\p Well I call it sparkie.
Code:
#org 0x800150
message 0x800160
boxset 0x02
release
end
#org 0x800160
= Beware of pokemon.
__________________
Gone.
  #45   Link to this post, but load the entire thread.  
Old December 23rd, 2007 (9:39 AM).
Frostbite's Avatar
Frostbite Frostbite is offline
Ace Trainer
 
Join Date: Jan 2005
Location: New York
Nature: Modest
Posts: 723
Need some help.

The script won't continue and freezes after the trainerbattle is finished.

HTML Code:
#org $start
checkflag 0x200
if B_TRUE goto $done
goto $continue

#org $continue
applymovement 0x08 $walk1
pause 0x7
goto $fight

#org $fight
trainerbattle 1 0x146 $before $after
message $angry
$angry 1 = [RIVAL]: \c\h01\h08ugh[...]\pI still have alot to learn before I\nbattle you again.\pUp ahead is the next town[...]\pI'll always be one step ahead of you,\n[PLAYER]!
boxset 6
applymovement 0x08 $run
pause 0x07
#raw 53
#raw 200
#raw 00
setflag 0x200
release
end

#org $done
release
end

#org $before
$before 1 = [RIVAL]: \c\h01\h08So, [PLAYER].\pI'm guessing that you just finished\ngetting your starter, right?\pWell, talk is cheap!\nLet's battle!

#org $after
$after 1 = H-how did I loose?!\nI had the upper hand!

#org $walk1
$walk1 1 ; #binary 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0xFE

#org $run
$run 1 ; #binary 0x20 0x20 0x20 0x20 0x20 0x20 0xFE
*Ignore the things in the brackets, those are just some things that will be edited using A-Text.
__________________
  #46   Link to this post, but load the entire thread.  
Old December 23rd, 2007 (10:14 AM).
~*Pikafan*~'s Avatar
~*Pikafan*~ ~*Pikafan*~ is offline
Man I gotta stop leaving!
 
Join Date: Sep 2007
Age: 29
Gender:
Nature: Jolly
Posts: 202
Does anyone have the offset for the Running Shoes?
__________________
I have returned ONC AGAIN!

Guitar Hero and Rock Band Rock. 'Nuff Said :P

I have a bunch of Friend Codes for Wii. These games I have Friend Codes for:

Guitar Hero World Tour (GHWT)
Super Smash Bros. Brawl (SSBB)
Guitar Hero 3 (GH3)
Pokemon Battle Revolution (PBR)
Rock Band 2, once I get it >_> (RB2)

RAWR. I NEED SHTUFF FOR MAH SIGNATURE. RAWR.
  #47   Link to this post, but load the entire thread.  
Old December 23rd, 2007 (1:39 PM). Edited December 24th, 2007 by Roddy.
Roddy's Avatar
Roddy Roddy is offline
Absent Scripter
 
Join Date: Dec 2007
Gender:
Posts: 10
This code works, perfectly, but, after the end of the battle, it does not continues the script.

Quote:
#org 0x800000
lock
faceplayer
applymovement 0x1 0x800400
pause 0x50
message 0x800600
boxset 0x6
trainerbattle 0 001 0x800100 0x800200 0x800500
release
end

#org 0x800600
=Don't even dare to touch it!\pThey are all mine!

#org 0x800100
=Prepare!

#org 0x800200
=Gah..!

#org 0x800400
#raw 0x62
#raw 0xFE

#org 0x800700
#raw 0x01
#raw 0x01
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0xFE

#org 0x800500
message 0x800900
boxset 0x6
setflag 0x200
giveitem 0x3F 1
applymovement 0x1 0x800700
release
end

#org 0x800900
=I did not expected this.\1You're indeed a talented person.\pI shall give you this, \nbut I'll face you again.
Anyone any idea why?



Thanks for any further help!
  #48   Link to this post, but load the entire thread.  
Old December 23rd, 2007 (3:26 PM).
Scorp Con's Avatar
Scorp Con Scorp Con is offline
 
Join Date: Sep 2007
Location: Sydney, Australia
Age: 26
Gender:
Posts: 92
Does anyone know, how to make a "battle script", but when you lose, the rival says good game and you don't have battle again. Like in FireRed, first battle with Rival.
__________________
My PokeCommunity Friends
Concorde - Heatran
  #49   Link to this post, but load the entire thread.  
Old December 23rd, 2007 (7:11 PM).
destinedjagold's Avatar
destinedjagold destinedjagold is offline
You can contact me in PC's discord server...
 
Join Date: May 2007
Age: 32
Gender: Male
Nature: Careful
Posts: 8,579
Hello pipz. I have a script that cannot be compiled. Wonder what's wrong with it. Please check and thanks in advance... ;)
Code:
#org $start
lock
faceplayer
message $sign
boxset 6
checkflag 0x249
if b_true goto $done
release
end

#org $done
message $sign2
boxset 6
release
end

#org $sign
$sign 1 = CINNABAR ISLAND POKéMON GYM

#org $sign2
$sign2 1 = BLAINE'S CERTIFIED TRAINERS:\nASH\lGARY\l\v\h01
__________________

  #50   Link to this post, but load the entire thread.  
Old December 23rd, 2007 (7:20 PM). Edited December 23rd, 2007 by /Circa.
/Circa's Avatar
/Circa /Circa is offline
a face in the clouds.
 
Join Date: Nov 2007
Location: Melbourne, Victoria
Gender: Male
Nature: Quiet
Posts: 881
Thanks thethethethe, though I want the OW to remain, just the script not to happen again, what would I do?

Though I think i'm starting to get these sought of scripts and how they're set out.

edit:
I finished redoing the script, it should have people number 1 come to them, say they need a Pokemon, get the pokemon and walk back.
I've changed it so it only happens once.
In offset $finished, does it need an end after the release?

Code:
#org $startscript
lock
applymovement 0x1 $walkingto
pause 0x10
message $beforegetting
boxset 0x6
givepokemon 0x25 0x5 0x0
compare LASTRESULT 1
if B_true goto $finished
message $gettingpoke
boxset 0x6
applymovement 0x1 $gotpoke
pause 0x10
release
end

#org $beforegetting
= Hi \v\h01!\pYou might need a Pokemon\lbefore going on your journey.

#org $gettingpoke
=\c\h01\h02You received a Pikachu!

#org $finished
pause 0x10
release

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

#org $gotpoke
#raw 0x0A
#raw 0x0A
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x03
#raw 0xFE
__________________
dragging himself, forw
ard again, the pain has
still not diminished. E
ventually though, he e
merges inside a v
ery large room w

here everything about

the house

suddenly

changes.
Closed Thread

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:24 AM.