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)
-   -   Script Requests/Sharing/Discussion (https://www.pokecommunity.com/showthread.php?t=80304)

Dr.Razor August 23rd, 2007 6:11 AM

Quote:

Originally Posted by thethethethe (Post 2764957)
44tim44 this is the script you requested, its a bit long. So I'll put it into a spoiler. This script is for Fire Red.
Spoiler:
#org $start
lock
message $eevee
boxset 5
compare LASTRESULT 1
if b_true goto $done
applymovement 0x0? $move (Gary's move)
pause 0x40
applymovement 0xFF $move2
pausemove 0
applymovement 0x0? $move3 (Eevee's Pokeball disappear)
message $stole
boxset 6
applymovement 0xFF $move4
pausemove 0
message $oak
boxset 6
givepokemon 25 5 0
setflag 0x200
release
end

#org $done
applymovement 0x0? $move (Gary's move)
pause 0x40
applymovement 0xFF $move2
pausemove 0
applymovement 0x0? $move3 (Eevee's Pokeball disappear)
message $stole
boxset 6
applymovement 0xFF $move4
pausemove 0
message $oak
boxset 6
givepokemon 25 5 0
setflag 0x200
release
end

#org $move
$move 1 ; #binary 0x62 0x0C 0x0E 0x0E 0x0E 0x01 0xFE

#org $move2
$move2 1 ; #binary 0x1F 0x1F 0x02 0xFE

#org $move3
$move3 1 ; #binary 0x60 0x1E 0x1E 0x1E 0x1E 0x1E 0xFE

#org $move4
$move4 1 ; #binary 0x10 0x12 0x12 0x12 0x12 0x11 0x11 0xFE

#org $eevee
$eevee 1 =Would you like Eevee?

#org $stole
$stole 1 =No way!\p\v\h01 I want this this\npokemon.\p\v\h06 snatched the POKEMON.\pOak: \v\h06!\nWhat are you doing?\p\v\h06: Gramps I want this one.\pOak: But, I...\pOh, all right then. That\npokemon is yours.\pI was going to give you\none anyway...\p\v\h01 come over here.

#org $oak
$oak 1 =\v\h01 this is a pokemon I caught\nearlier. You can have it.\pI caught it in the wild so\nit's not tame yet.\p\v\h01 recieved a PIKACHU!

Hi can anybody ade after ,oak give you pikachu,oak give you the
pokedex?
thanks

cooley August 23rd, 2007 7:28 AM

How do I assign A script to a person(trainer) so that the person and the person next to him battle me when I talk to one of them. And after the first battle the person next to him battles me, then one of them moves up and one of them move down, unblocking the path.

Frostbite August 23rd, 2007 1:12 PM

Well I made my first script ever. It's a simple follow me script where the professor stops you from going in the route outside the town then leads you into his lab etc. Before I compile this, can anyone check if there are any errors here?

Spoiler:
#org $begin
checkflag 0x200
if B_goto $done
playsound 0x13B
#raw 0x33
applymovement 0x3 $pw1
pause 0x50
message $pt1
boxset 6
applymovement 0x03 $pw2
applymovement 0xFF $pw2
pause 0x50
fadesound
release
end

#org $done
release
end


#org $pw1
$pw1 ; #binary 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0xFE

#org $pt1
$pt1 1 = \v\h01, stop!\pYou can't go out there without a\nPokemon!\nThose wild ones will beat you to\na pulp.\pI was looking for you anyways so\ncome with me.

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


edit:

Another follow me script for a seperate event, can someone check this as well?

Spoiler:
#org $begin
checkflag 0x201
if b_goto $done
playsound 0x13B
#raw 0x33
applymovement 0x01 $scisur
pause 0x10
message $scitalk
boxset 6
applymovement 0x01 $sciwalk
applymovement 0xFF $sciwalk
pause 0x39
fadesound
applymovement 0x01 $scidown
pause 0x10
message $scitalk2
boxset 6
applymovement 0x01 $sciwalk2
pause 0x20
release
end

#org $done
release
end

#org $scisur
$scisur ; #binary 0x62 0xFE

#org $scitalk
$scitalk 1 = I suppose that you're a Pokemon trainer,\nright?\pWell I guess you are.\nAnyways, we need your help trainer.\pA team of goons have taken over\nthe Weather Institue, we need your\nhelp to clear out the building.\pThe Institue isn't that far\nfrom here, let me lead you\pto it.

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

#org $scidown
$scidown 1 ; #binary 0x4A 0xFE

#org $scitalk2
$scitalk2 1 = Here is the Weather Institute.\nJust go inside and clean out the building!

#org $sciwalk2
$sciwalk2 1 ; #binary 0x13 0x02 0xFE

thethethethe August 23rd, 2007 2:52 PM

Quote:

Originally Posted by Dr.Razor (Post 2795993)
Hi can anybody ade after ,oak give you pikachu,oak give you the
pokedex?
thanks

just put setflag 0x829 in the script to activate the pokedex. And setflag 0x16F to activate the national dex if you want.

Quote:

Originally Posted by Frostbite (Post 2797844)
Well I made my first script ever. It's a simple follow me script where the professor stops you from going in the route outside the town then leads you into his lab etc. Before I compile this, can anyone check if there are any errors here?

Spoiler:
#org $begin
checkflag 0x200
if B_goto $done
playsound 0x13B
#raw 0x33
applymovement 0x3 $pw1
pause 0x50
message $pt1
boxset 6
applymovement 0x03 $pw2
applymovement 0xFF $pw2
pause 0x50
fadesound
release
end

#org $done
release
end


#org $pw1
$pw1 ; #binary 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0xFE

#org $pt1
$pt1 1 = \v\h01, stop!\pYou can't go out there without a\nPokemon!\nThose wild ones will beat you to\na pulp.\pI was looking for you anyways so\ncome with me.

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


edit:

Another follow me script for a seperate event, can someone check this as well?

Spoiler:
#org $begin
checkflag 0x201
if b_goto $done
playsound 0x13B
#raw 0x33
applymovement 0x01 $scisur
pause 0x10
message $scitalk
boxset 6
applymovement 0x01 $sciwalk
applymovement 0xFF $sciwalk
pause 0x39
fadesound
applymovement 0x01 $scidown
pause 0x10
message $scitalk2
boxset 6
applymovement 0x01 $sciwalk2
pause 0x20
release
end

#org $done
release
end

#org $scisur
$scisur ; #binary 0x62 0xFE

#org $scitalk
$scitalk 1 = I suppose that you're a Pokemon trainer,\nright?\pWell I guess you are.\nAnyways, we need your help trainer.\pA team of goons have taken over\nthe Weather Institue, we need your\nhelp to clear out the building.\pThe Institue isn't that far\nfrom here, let me lead you\pto it.

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

#org $scidown
$scidown 1 ; #binary 0x4A 0xFE

#org $scitalk2
$scitalk2 1 = Here is the Weather Institute.\nJust go inside and clean out the building!

#org $sciwalk2
$sciwalk2 1 ; #binary 0x13 0x02 0xFE

The only problem that I can see is that there are too many binary movements in $sciwalk. Try spliting them up in two applymovements because for some reason pokescript doesn't allow more than 14 or 15 movements(cant remember exact). Don't know why. It shouldn't even compile until you do this. Other than that It should work fine.

Quote:

Originally Posted by cooley (Post 2796260)
How do I assign A script to a person(trainer) so that the person and the person next to him battle me when I talk to one of them. And after the first battle the person next to him battles me, then one of them moves up and one of them move down, unblocking the path.

that involves two scripts, one for each person. Both scripts will be really similiar, they'll involve two trainer battles with $further options. Her is an example script that you will have to change because you have to insert the movements you want. For the second script swap the trainer battle commands.
Code:

#org $start
lock
faceplayer
checkflag 0x200
if b_true got $done
trainerbattle 1 0x001 $before $after $further
release
end

#org $before
$before 1 =Let's Battle

#org $after
$after 1 =Oh.

#org $further
applymovement 0x0? $move
pusemove 0
trainerbattle 1 0x002 $before2 $after2 $further2
release
end

#org $before
$before 1 =My turn.

#org $after
$after 1 =Your good.

#org $further
applymovement 0x0? $move2
pausemove 0
applymovement 0x0? $move3
pausemove 0
setflag 0x200
release
end

#org $done
message $go
boxset 6
release
end

#org $move
$move 1 ; #binary (Your movements here)

#org $move2
$move2 1 ; #binary (Your movements here)

#org $move3
$move3 1 ; #binary (Your movements here)

#org $go
$go 1 =Go away.



cooley August 23rd, 2007 4:21 PM

Thanks a lot. This
is a picture meaning of what I meant.

[(Edit]): what do you mean by
Quote:

For the second script swap the trainer battle commands.

Corona August 23rd, 2007 4:26 PM

I have a qeustion about the ScriptEd that comes with Elite Map

http://www.youtube.com/watch?v=CJBuxKKHOGQ

What am I doing wrong in that

thethethethe August 23rd, 2007 4:45 PM

Quote:

Originally Posted by cooley (Post 2798940)
Thanks a lot. This
is a picture meaning of what I meant.

[(Edit]): what do you mean by

Now I see that they are just two grunts it probably doesn't need to happen. but what I meant is that you have to put two scripts, one for each person. Let's say trainerbattle 1 0x001 is t1 and trainerbattle 1 0x002 is t2. In one script t1 is before t2 and then if you swap the trainerbattle commands you'll make t2 battle before t1. Does that make sense???

Quote:

Originally Posted by JoyRide (Post 2798964)
I have a qeustion about the ScriptEd that comes with Elite Map

http://www.youtube.com/watch?v=CJBuxKKHOGQ

What am I doing wrong in that

Okay, I'm not very good with ScriptED but I'm pretty sure that you have to click on the '...' button and Load a rom into it.

Michizcool August 23rd, 2007 5:00 PM

Hi everyone i need a favor i need a very basic script for sapphire that i can insert using advance map and assign to one of thoses script things on the floor. The script needs to make the player look up left down then right when i tred on it.

destinedjagold August 23rd, 2007 5:06 PM

Quote:

Originally Posted by JoyRide (Post 2798964)
I have a qeustion about the ScriptEd that comes with Elite Map

http://www.youtube.com/watch?v=CJBuxKKHOGQ

What am I doing wrong in that

If I can remember clearly (since I'm just using a plain Notepad for my scripts).., the first thing you should do is to click the "..." and then a pop-up appears, that'll tell you to load your ROM...

After that, write a script.., blablablah... and then click "Save".., then I guess the "Compile" should be 'clickable' after that...

Hope this helps...

Corona August 23rd, 2007 5:07 PM

Quote:

Originally Posted by destinedjagold (Post 2799193)
If I can remember clearly (since I'm just using a plain Notepad for my scripts).., the first thing you should do is to click the "..." and then a pop-up appears, that'll tell you to load your ROM...

After that, write a script.., blablablah... and then click "Save".., then I guess the "Compile" should be 'clickable' after that...

Hope this helps...

I will try that right now before I continue editing my rom anymore.

thethethethe August 23rd, 2007 5:10 PM

Quote:

Originally Posted by Michizcool (Post 2799159)
Hi everyone i need a favor i need a very basic script for sapphire that i can insert using advance map and assign to one of thoses script things on the floor. The script needs to make the player look up left down then right when i tred on it.

Do want it to happen everytime you stand there. If not here is your script.
Code:

#org $start
checkflag 0x200
if b_true goto $done
applymovement 0xFF $move
pause 0x30
applymovement 0xFF $move1
pause 0x30
applymovement 0xFF $move2
pause 0x30
applymovement 0xFF $move3
pause 0x30
setflag 0x200
release
end

#org $done
release
end

#org $move
$move 1 ; #binary 0x01 0xFE

#org $move1
$move1 1 ; #binary 0x02 0xFE

#org $move2
$move2 1 ; #binary 0x04 0xFE

#org $move3
$move3 1 ; #binary 0x03 0xFE



Corona August 23rd, 2007 5:12 PM

Quote:

Originally Posted by destinedjagold (Post 2799193)
If I can remember clearly (since I'm just using a plain Notepad for my scripts).., the first thing you should do is to click the "..." and then a pop-up appears, that'll tell you to load your ROM...

After that, write a script.., blablablah... and then click "Save".., then I guess the "Compile" should be 'clickable' after that...

Hope this helps...

I tried that and the Compile button is still unclickable

destinedjagold August 23rd, 2007 5:14 PM

If that's the case.., I think there's a tutorial explaining how to use ScriptEd......

thethethethe August 23rd, 2007 5:15 PM

Quote:

Originally Posted by JoyRide (Post 2799236)
I tried that and the Compile button is still unclickable

I thought I answered this, I must have hit back, anway You have to load the rom by clicking the '...' button and then the compile function should become available.

Corona August 23rd, 2007 5:16 PM

Quote:

Originally Posted by destinedjagold (Post 2799246)
If that's the case.., I think there's a tutorial explaining how to use ScriptEd......

There is a turtorial on the commands but no one made one how to compile and stuff. (At least i didnt see one)

Quote:

Originally Posted by thethethethe (Post 2799254)
I thought I answered this, I must have hit back, anway You have to load the rom by clicking the '...' button and then the compile function should become available.

It didnt :(

destinedjagold August 23rd, 2007 5:21 PM

Then let me try using my (unused :) ) ScriptEd... Please w8...

Corona August 23rd, 2007 5:23 PM

Quote:

Originally Posted by destinedjagold (Post 2799298)
Then let me try using my (unused :) ) ScriptEd... Please w8...

Okay thank you. Also I am using the one that comes with Elite Map.

thethethethe August 23rd, 2007 5:28 PM

I just opened my scripted just without typing in a script and the compile function was already active, maybe there is something wrong with your version because my compile is always acive

Corona August 23rd, 2007 5:30 PM

Quote:

Originally Posted by thethethethe (Post 2799339)
I just opened my scripted just without typing in a script and the compile function was already active, maybe there is something wrong with your version because my compile is always acive

Figures >_<

I probally cant script on my computer for some reason O.O

I mean pokescript didnt work,scripted wont work

And I am using pokescript right that I am sure of. Because I copied someone on youtube exactly. Theirs worked >_> mine crashed my game >_>

Found out how poketronic worked though ^_^ yay celebi event XD

destinedjagold August 23rd, 2007 5:36 PM

I tried mine...

http://i203.photobucket.com/albums/aa154/destinedjagold/try.jpg

As thethethethe said.., the "Compile was already active...

http://i203.photobucket.com/albums/aa154/destinedjagold/try2.jpg

But when I saved the script I made, the "Compile" turned 'unclickable'...

http://i203.photobucket.com/albums/aa154/destinedjagold/try3.jpg

Hmm... I wonder why...

$_$ August 23rd, 2007 6:06 PM

Could someone help me with this.
#org 0x800000
lock
faceplayer
message 0x800100
boxset 0x6
giveitem 0x110 0x1
givepokemon 0x304 0x10 0x0
release
end

#org 0x800100
= I want you to have my Tallow.He helped me soar the sky when I was younger.

thethethethe August 23rd, 2007 6:17 PM

Quote:

Originally Posted by $_$ (Post 2799620)
Could someone help me with this.
#org 0x800000
lock
faceplayer
message 0x800100
boxset 0x6
giveitem 0x110 0x1
givepokemon 0x304 0x10 0x0
release
end

#org 0x800100
= I want you to have my Tallow.He helped me soar the sky when I was younger.


what's the problem your having with it?

$_$ August 23rd, 2007 6:29 PM

Well I dont know how to insert it in my hack.

Corona August 23rd, 2007 6:40 PM

Quote:

Originally Posted by $_$ (Post 2799754)
Well I dont know how to insert it in my hack.

PokeScript,DiamondCutter,PokeScript should but all wont work for me >_>

thethethethe August 23rd, 2007 6:44 PM

Quote:

Originally Posted by $_$ (Post 2799754)
Well I dont know how to insert it in my hack.

Sorry I'm not sure either, I don't use scriptED. But one other thing isn't Taillow, 0x130. Someone here will know how to do it.


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