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)

TB Pro March 1st, 2008 11:00 AM

Quote:

Originally Posted by derv1205 (Post 3382580)
To post videos upload them in YouTube.
There was an error on Teh
I think it should be like this:

Code:

#ORG $begin
checkflag 0x200
if B_True goto $done
applymovement 0xFF $playerwalk
pausemove 0
message $back
boxset 6
setflag 0x200
release
end

#ORG $done
release
end

#ORG $playerwalk
#RAW 0x11
#RAW 0xFE

#ORG $back
$back 1 = Better go back and say goodbye to mother....


And i think in the S you should put:
Code:

Unknown 0300
Var number 4050


That's what i usually put ^^

Also, you can put this:
Code:

Unknown 0300
Var Number 7C40



Just one question, what was my error:\

derv1205 March 1st, 2008 11:28 AM

your error was that you put
if B_goto $(pointer)

And it has to be if B_True goto $(pointer)

And, it isn't 0003 or 0030
it is 0300 and in the other it can be
5240 , 5040 or 7C40

TB Pro March 1st, 2008 11:36 AM

Quote:

Originally Posted by derv1205 (Post 3384148)
your error was that you put
if B_goto $(pointer)

And it has to be if B_True goto $(pointer)

And, it isn't 0003 or 0030
it is 0300 and in the other it can be
5240 , 5040 or 7C40

Ah-ha! lol! I always use:
03 00
52 40
00 00
00 00
It always works for me:\

Piplup-Trainer March 1st, 2008 2:35 PM

I've got a question again.

But before i ask I give you a example :
I opened PokeTronic 0.7, created and burned a WildBattle Script (Suicune Lv.70).
I tested it --> everything ok.
I done the same with a second Wildbattle Script (Celebi Lv.30).
I tested it again --> everthing was ok.
Then I burned a third Wild Battle Script (Ekans Evolution on L.35)
I tested it --> Mays Overworld Sprite became black hair (the pixels that I edited in Overworld Editor-RE were converted from brown to black).

Is this true that PokeTronic screws up your rom or not?

eBay March 1st, 2008 10:57 PM

I already made a thread but it got deleted, so im going to make this short and sweet.
I ahve searched the forums, and I have looked at tutorials.

I have my script and stuff ready, however, when i got to compile it, pokescript opens and a message that says "file not found or user cancel" comes up. My script is still in pokescript, but it has a bunch of stuff like this:

Invalid Command : boxset
Invalid Command : release
Invalid Command : end

Also, I dont 100% understand buf rite.. I have read tutorials, but I dont understand them properly (-_-')
so far I clicked the top offset, then I go to file> burn, and then I select my ROM. A new window then comes up and thats when I don't know what to do (I might hve done some previous steps wrong..?)

destinedjagold March 2nd, 2008 12:24 AM

must have been with your script... may we see it?

Lyzo March 2nd, 2008 2:30 AM

Hmmm....

I'm one of those people who needs help with their weather script....

It's a script where if you talked to a rock it would start raining...

Everything works except the raining....

Here's the script:

Spoiler:
#org $begin
lock
faceplayer
message $rainrock
boxset 6
setweather 0x4
doweather
release
end

#org $rainrock
$rainrock 1 = Hello,\n...............................\pI'm the rain rock...\nI make it

rain!


Edit: I also need help with this script. It activates a race between the player and another sprite.
The talking works but after the player moves the other sprite won't move.


Spoiler:
#org $begin
faceplayer
message $wannarace
boxset 5
compare LASTRESULT 1
if 1 goto $yes
message $oh
boxset 6
release
end

#org $oh
$oh 1 = Oh,\n too bad.

#org $wannarace
$wannarace 1 = Do you want to race?

#org $yes
message $okgo
boxset 6
applymovement 0xFF $run
Pause 0x00
applymovement 0x01 $run2
Pause 0x70
applymovement 0xFF $run3
Pause 0x00
applymovement 0x01 $run4
Pause 0x70
applymovement 0xFF $run5
Pause 0x00
applymovement 0x01 $run6
Pause 0x70
applymovement 0xFF $run7
Pause 0x00
applymovement 0x01 $run8
Pause 0x70
applymovement 0xFF $run9
Pause 0x00
applymovement 0x01 $run10
Pause 0x70
applymovement 0xFF $run11
Pause 0x00
applymovement 0x01 $run12
Pause 0x70
applymovement 0xFF $run13
Pause 0x00
applymovement 0x01 $run14
Pause 0x70
applymovement 0xFF $run15
Pause 0x00
applymovement 0x01 $run16
Pause 0x40
jingle
message $won
boxset 6
applymovement 0x01 $moveback
Pause 0x20
release
end

#org $moveback
$moveback 1 ; #binary 0x12 0x03 0xFE

#org $okgo
$okgo 1 = Ok great!\n1...2...3... GO!

#org $won
$won 1 = Nice racing!\nYour fast!\pLets race another time!

#org $run
$run 1 ; #binary 0x1E 0x1E 0x1E 0x1E 0x1E 0x1E 0x1E 0xFE

#org $run2
$run2 1 ; #binary 0x20 0x1E 0x1E 0x1E 0x1E 0x1E 0x1E 0xFE

#org $run3
$run3 1 ; #binary 0x1E 0x1E 0x1E 0x1E 0x1E 0x1E 0x1F 0xFE

#org $run4
$run4 1 ; #binary 0x1E 0x1E 0x1E 0x1E 0x1E 0x1E 0x1E 0xFE

#org $run5
$run5 1 ; #binary 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0xFE

#org $run6
$run6 1 ; #binary 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0xFE

#org $run7
$run7 1 ; #binary 0x1F 0x1D 0x1F 0x1D 0x1D 0x1D 0x1D 0xFE

#org $run8
$run8 1 ; #binary 0x1F 0x1F 0x1D 0x1F 0x1D 0x1D 0x1D 0xFE

#org $run9
$run9 1 ; #binary 0x1D 0x1D 0x1D 0x1D 0x1D 0x1D 0x1D 0xFE

#org $run10
$run10 1 ; #binary 0x1D 0x1D 0x1D 0x1D 0x1D 0x1D 0x1D 0xFE

#org $run11
$run11 1 ; #binary 0x1D 0x20 0x20 0x20 0x20 0x20 0x20 0xFE

#org $run12
$run12 1 ; #binary 0x1D 0x1D 0x20 0x20 0x20 0x20 0x20 0xFE

#org $run13
$run13 1 ; #binary 0x20 0x20 0x1D 0x20 0x1D 0x20 0x20 0xFE

#org $run14
$run14 1 ; #binary 0x20 0x20 0x20 0x1D 0x20 0x1D 0x20 0xFE

#org $run15
$run15 1 ; #binary 0x20 0x1E 0x1E 0x02 0xFE

#org $run16
$run16 1 ; #binary 0x20 0x1E 0x1E 0x03 0xFE

eBay March 2nd, 2008 11:43 AM

My script:

#org $begin
lock
faceplayer
checkflag 0x200
if b_true goto $alreadygot
message $oran
$oran 1 =Hey, do you like ORAN BERRIES?
boxset 5
compare LASTRESULT 1
if 1 goto $yes
message $no
$no 1 =Oh allright, I can just \nkeep them then.
boxset 6
release
end

#org $yes
=Here you go! \pHave an ORAN BERRY!
boxset 6
giveitem 0x8B 0x1
setflag 0x200
release
end

#org $alreadygot
lock
faceplayer
message $berries
$berries 1 =POKEMON love berries \pYou also don't have to use them \nif you give it to one \nit will use it when it needs to.
boxset 6
release
end

destinedjagold March 2nd, 2008 1:05 PM

Here's your script. Fixed and ready to be put into a ROM. Please study this script.
Code:

#org $begin
lock
faceplayer
checkflag 0x200
if b_true goto $alreadygot
message $oran
$oran 1 = Hey, do you like ORAN BERRIES?
boxset 5
compare LASTRESULT 1
if 1 goto $yes
message $no
$no 1 = Oh alright, I can just \nkeep them then.
boxset 6
release
end

#org $yes
lock
faceplayer
message $ty
$ty 1 = Here you go! \pHave an ORAN BERRY!
boxset 6
giveitem 0x8B 0x1
setflag 0x200
release
end

#org $alreadygot
lock
faceplayer
message $berries
$berries 1 = POKEMON love berries \pYou also don't have to use them \nif you give it to one \lit will use it when it needs to.
boxset 6
release
end


And here's a video, proof that it'll work. ^^

xFailed_Mutationx March 3rd, 2008 12:47 AM

Script Help
 
Yeah, hey, I'm pretty new here, signed up today and all. But actually I've been using Advanced-Map for awhile now. Basics are easy enough to understand just by fooling around with and, and thats how I got to where I am now.

Not meaning for this to be a "Hey I'm new, help me" type thread, so I'll just get to the point.

I've read Pie's Tut on how to Compile the Script, I've gone through Spenceroon3's Script Tut as well. But for some reason, although I'm doing every step by step and have even tried it a few ways, it seems like this scripting just won't work. I've downloaded the tools, Poke Script and PokeAdv, I get the right click "Compile Script" It opens everything without a hitch. What's sad is I'm still having problems on a basic Talk Command. This is the script I put in:

#org $Showtext
lock
faceplayer
message $Sign1
$Sign1 1 = I love tuti-fruiti
boxset 6
release
end

Ok, so I didn't really make the script say, "I love tuti-fruti", it's just an example. Is there anything wrong with it? Can I get a few things to test to see if i screwed Advanced Map up in some sort of way? Thanks.

Himochi Kouen March 3rd, 2008 8:03 AM

I have a question about a script I WANT to make - not one that isn't working. >>

Obviously there are GIVE Pokemon scripts. But...is there a TAKE Pokemon script? For example, remember the guy in G/S/C that gave you the Shuckle, and then took it back later on? What I was planning was you borrow someone's Pokemon until you catch your own, and then return it, but I haven't seen anything about a take script.

Piplup-Trainer March 3rd, 2008 2:53 PM

Okay. If noboby answers my question about the PokeTronic, then I have an other one :

How can I set the WildBattle Music in a normal script?

Tyrantrum March 3rd, 2008 3:27 PM

Hey DJG, could you help me with my script.
The script I'm doing is on page 27, post # 665.
Thanx.

destinedjagold March 3rd, 2008 3:45 PM

Why'd ya asked me? My specialty is Ruby, and not FireRed... :\
But here's a script you asked...
Code:

#org $start1
checkflag 0x200
if b_true goto $done
applymovement 0xFF $alert
pausemove 0
message $say
boxset 6
applymovement 0xFF $down
pausemove 0
release
end

#org $start2
checkflag 0x200
if b_true goto $done
applymovement 0xFF $alert
pausemove 0
message $say
boxset 6
applymovement 0xFF $up
pausemove 0
release
end

#org $done
release
end

#org $alert
$alert 1 ; #binary 0x62 0xFE

#org $down
$down 1 ; #binary 0x0C 0xFE

#org $up
$up 1 ; #binary 0x0D 0xFE

#org $say
$say 1 = \v\h01: I guess I have to say\n'goodbye' to my mom before I go.


I guess it's self-explanatory which script you will put in either doormats... :\

-Not sure about the movements though... I never script for FireRed once...-


Here's the video of the script I made for you in FireRed...

Tyrantrum March 3rd, 2008 4:00 PM

Everyone else was generous to help me but my ROM kept freezing and your a great scripter and I thought you would know, even though your specialty is Ruby.

I'm gonna switch to RUBY for my hack instead.
Could you make me a script for that plz, thanx.

destinedjagold March 3rd, 2008 4:09 PM

the script worked in my firered rom... the variables would be like this...

http://i226.photobucket.com/albums/dd210/darkjagold/variables.png

I'm using advance map 1.9, btw...



Here's the video of the script I made for you in FireRed...
[/B]

Tyrantrum March 3rd, 2008 7:54 PM

WOW!!!!!!!!
I don't get how It works for you.
May be it's because I have too many copies of fire red?
No matter what happens, it always freezes.

TB Pro March 3rd, 2008 8:15 PM

Quote:

Originally Posted by shinypkmnfan13 (Post 3393751)
WOW!!!!!!!!
I don't get how It works for you.
May be it's because I have too many copies of fire red?
No matter what happens, it always freezes.

Are you sure It's a clean ROM?

Lyzo March 3rd, 2008 10:27 PM

Hey DJG I could you mabye check my script on page 28 #683

Thanks if you do :D

Tyrantrum March 4th, 2008 6:04 AM

Quote:

Originally Posted by TB Pro! (Post 3393821)
Are you sure It's a clean ROM?


Yep, I'm sure.
I've been making copies of a clean Fire Red ROM like forever!
The very first one that says Pokemon Fire Red-->copy-->paste.
They're all clean...
I'm not sure what's wrong...

Sierraffinity March 4th, 2008 5:12 PM

help scripting
 
I want a script that, as soon as you go downstairs in FR Version, your mom gets an exclamation mark over her head, calls you over, you walk over, and she says,
"Oh, [PLAYER], I love this
new house by the sea!
Oh, yes! I heard that
CRUSTY ISLAND is
down there, somewhere!"
and then we both turn towards the TV with exclamations mark over our heads and the TV says,
"ANNOUNCER: We have
just received an important
announcement! PROF. RIO
is giving away free LEGENDARY
POKéMON today only!"
and then you and your mom turn towards each other, and your mom says,
"Well! I'll be! I think
that you should go
and take this opportunity
right now! Go and make
me proud, honey!"
and then your mom turns back to the table.
If you could do that, that would be so awesome!

Thanks in advance

Megiddo-san March 4th, 2008 5:31 PM

This is more so a help with an already made script thread than a script request thread. I believe that there used to be a script request thread.

Sierraffinity March 11th, 2008 11:57 AM

Scripting HELP!!!
 
Like I said before the backup I need help with this script. Whenever I use it, MOM goes crazy.


#org $begin
lock
faceplayer
checkflag 0x201
if b_true goto $mom
setflag 0x201
applymovement 0x1 $mark
pausemove 0
message $likehouse
$likehouse 1 =MOM: Oh, \v\h01, I love this\nnew house by the sea!\pOh, yes! I heard that\nCRUSTY ISLAND is\ndown there somewhere!
message $announceone
$announceone 1 =ANNOUNCER: Attention!\nWe interrupt this movie\nfor this announcement!
applymovement 0x1 $potsnot
applymovement 0xFF $potsnot
applymovement 0x1 $mark
applymovement 0xFF $mark
pausemove 0
message $announcetwo
$announcetwo 1 =The RIO POKéMON\nRESEARCH LAB\nHAS JUST GOTTEN\nROBBED!
applymovement 0x1 $turn
applymovement 0xFF $turns
pausemove 0
message $ohno
$ohno 1 =MOM: Oh no! How horrible!\nHe had told me\nthat he had a\nLEGENDARY POKéMON for\nyou!\pI WONDER IF IT\nGOT STOLEN! \pOH MY GOODNESS!!!!!\pI think that you\nshould check the\nLAB to see\nif PROF. RIO is\nokay!
release
end

#org $mom
message $mom
$mom 1 =CRUSTY ISLAND is\ndown there somewhere\nin the sea!\pI hope to visit it someday.
release
end

#org $potsnot
#raw 0x01
#raw 0xFE

#org $mark
#raw 0x62
#raw 0xFE

#org $turn
#raw 0x03
#raw 0xFE

#org $turns
#raw 0x02
#raw 0xFE

Please tell me: WHAT'S WRONG?!?!?!

P.S.:I need a script to activate the Pokemon Menu. PLEASE HELP!!!

Megiddo-san March 11th, 2008 2:21 PM

What does she do that's crazy exactly?

I'm back from a week's absence. lol

hi sir tomato my password is syvniti March 12th, 2008 7:50 AM

I think he wanna se about the flag its used?


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.