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)

mackoo September 9th, 2007 4:56 AM

Now, it shows the messeage and warps, but don't move people number 1 in Pallet Town - here is my Script:

Quote:

#org $Startscript
applymovement 1 $move
$move 1 ; #binary 0x09 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x4A 0xFE
pausemove 0
message $NeedFast
$NeedFast 1 = Brendan:Helo \n We need to move\n fast - they will be\n here after minute!\n Ash:Who will be here?\n Brendan:No time to\n talk! Keep moving!
boxset 6
givepokemon 22 5 0
warp 3 2 0
release
end

cooley September 9th, 2007 2:44 PM

Is this Give Item Script correct?
Code:

#org $start
lock
faceplayer
checkflag 0x200
message $Give
$Give 1 =Take this!
boxset 6
giveitem 0x1 5
setflag 0x200
release
end



sandcrawler September 9th, 2007 3:55 PM

Is it possible to script in-game 'true' double battles in Fire Red? True double battles are in Fire Red, but only in the link game.

thethethethe September 9th, 2007 11:08 PM

Quote:

Originally Posted by mackoo (Post 2866624)
Now, it shows the messeage and warps, but don't move people number 1 in Pallet Town - here is my Script:

I have no idea what the problem is, Try checking the if the people no. is correct, that is all the advice I have to give you. Maybe someone else can find the problem.

Quote:

Originally Posted by cooley (Post 2869465)
Is this Give Item Script correct?
Code:

#org $start
lock
faceplayer
checkflag 0x200
if b_true goto $done
message $Give
$Give 1 =Take this!
boxset 6
giveitem 0x1 5
setflag 0x200
release
end

#org $done
message $hi
$hi 1 =(What he says after you have recieved it)
boxset 6
release
end



What I edited is in bold.

Quote:

Originally Posted by xshadow76x (Post 2869813)
Is it possible to script in-game 'true' double battles in Fire Red? True double battles are in Fire Red, but only in the link game.

I don't understand what you are asking for. What do you mean by a 'true' double battle?

Ripper September 9th, 2007 11:12 PM

Double Battles where you team up with someone from the game...

thethethethe September 9th, 2007 11:27 PM

Do you mean like the battle where you partner steven at the rocket launch thing(mental blank) in RSE? If it is I'm not sure about that but there should be a way, it could involve some 'special's or something like that. I'll look into it.

Ripper September 9th, 2007 11:36 PM

I believe that's exactly what he means (I hope)

PS. "Rocket Launch Thing"? XD

mackoo September 10th, 2007 4:10 AM

thethethethe - I have one more question - what move data should I put for the script, and the movement way?

thethethethe September 10th, 2007 4:20 AM

Quote:

Originally Posted by xshadow76x (Post 2869813)
Is it possible to script in-game 'true' double battles in Fire Red? True double battles are in Fire Red, but only in the link game.

Okay, I took a look at it, in an Emerald Rom, but the script was really complicated. It would take me a couple of days(minimum) to figure out what everything was, so I'm not going to bother doing it. If it was programmed into the ROM, that means it is possible. So I guess it is up to you if you want to figure it all out. Who knows, maybe someone will write it for you, but the script isn't simple.

Quote:

Originally Posted by mackoo (Post 2871091)
thethethethe - I have one more question - what move data should I put for the script, and the movement way?

huh??? What do you mean, the #binary 0x?? 0x?? 0xFE, or something else? What do mean by 'movement way' and 'move data'???

mackoo September 10th, 2007 4:50 AM

So, i thought, that on spaces where people will go I should put some special move data :P
So what move data should I put on a space with script. Oh and I changed rom to ruby, what should i put in vars now?

thethethethe September 10th, 2007 12:37 PM

Quote:

Originally Posted by mackoo (Post 2871168)
So, i thought, that on spaces where people will go I should put some special move data :P
So what move data should I put on a space with script. Oh and I changed rom to ruby, what should i put in vars now?

I still don't understand what you mean by move-data. The vars-remain the same. Just use the same things that you used for FR.

mackoo September 11th, 2007 5:10 AM

When you are editing map with advance map, you have "MOVE DATA", should i put some special on place with script, or just "C" ?

The Shadow Knight September 11th, 2007 10:50 AM

I was wondering,can you use an offset in a dialog sript to determine the text lines instead of typing the whole thing?

cooley September 11th, 2007 12:38 PM

Quote:

Originally Posted by mackoo (Post 2874599)
When you are editing map with advance map, you have "MOVE DATA", should i put some special on place with script, or just "C" ?

This is not the Right Thread to ask this Question.

There is nothing special to put
Code:

C - Walkthrough
1 - Wall/can't walk through
0 - For ladders
4 - Water
14 - You put this on top of mountains you walk on.
D - Signpost




Next time go to the right Thread.

thethethethe September 11th, 2007 12:39 PM

Quote:

Originally Posted by mackoo (Post 2874599)
When you are editing map with advance map, you have "MOVE DATA", should i put some special on place with script, or just "C" ?

Nah, it's normal. It's just C. The applymovement doesn't 'listen' to the move data, it can even step over '1's

cooley September 11th, 2007 1:51 PM

How come in my givepokemon Script(I copied the Script offset from the eevee in Celadon city) I get the pokemon but it doesn't appear as 'POKéMON' on the Start menu, BUT! when in battle I still send an eevee out.

Request:
TYPE: Givepokémon Script
Pokemon: Magby
Level: 7
Item: Charcoal
Additional Details: After I get the pokéball make it so that a earthquake and a FadeScreen effect making you warp to Map: 3 Bank: 20.

Please help me out.
Also who can be a Scripter for my hack(LeafGreen)?
~cooley~

thethethethe September 11th, 2007 2:30 PM

Quote:

Originally Posted by cooley (Post 2875319)
How come in my givepokemon Script(I copied the Script offset from the eevee in Celadon city) I get the pokemon but it doesn't appear as 'POKéMON' on the Start menu, BUT! when in battle I still send an eevee out.

Request:
TYPE: Givepokémon Script
Pokemon: Magby
Level: 7
Item: Charcoal
Additional Details: After I get the pokéball make it so that a earthquake and a FadeScreen effect making you warp to Map: 3 Bank: 20.

Please help me out.
Also who can be a Scripter for my hack(LeafGreen)?
~cooley~

The first problem could be that you have put that script for recieving your first pokemon. and you would need to add a setflag 0x828(FR LG) for that to work. And also if you want to recieve the magby in the pokedex you need to add
special 0x16F(FR LG).
Well here is the script:
Code:

#org $start
faceplayer
givepokemon 240 7 215
#raw 53
#raw <people no.(hex)>
#raw 00
message $take
boxset 6
special 0x136
pause 0x40
warp 3 20 0
fadescreen 0
setflag 0x200
release
end

#org $take
$take 1 =\v\h01 recieved a MAGBY!



cooley September 11th, 2007 2:52 PM

Is this Script Correct. And Thank you thethethethe.
Code:

#org $start
lock
faceplayer
checkflag 0x800
message $MAGBY
$MAGBY 1=This MAGBY just won't\nevolve. You can have it
boxset 6
givepokemon 240 7 0
jingle
message $GotMagby
$GotMagby 1 =You just got a MAGBY!
boxset 6
message $NameMag
$NameMag 1 = Would you like to give\nMAGBY a nickname?
boxset 5
compare LASTRESULT 1
if b_False goto $Bye
setflag 0x828
goto $Bye

#org $Bye
setflag 0x800
setflag 0x801
message $Pokedex
$Pokedex 1 = Take Care of MAGBY!
boxset 6
jingle
message $GotDex
$Gotdex 1 = You Also got the National\nPokéDex
boxset 6
end


By the way the script you made me doesn't activate the Pokedex.
tell me the Flag number and where should I insert it.

Your help is Greatly appreciated.
~cooley~

thethethethe September 11th, 2007 3:00 PM

Quote:

Originally Posted by cooley (Post 2875540)
Is this Script Correct. And Thank you thethethethe.
Code:

#org $start
lock
faceplayer
checkflag 0x800
message $MAGBY
$MAGBY 1=This MAGBY just won't\nevolve. You can have it
boxset 6
givepokemon 240 7 0
jingle
message $GotMagby
$GotMagby 1 =You just got a MAGBY!
boxset 6
message $NameMag
$NameMag 1 = Would you like to give\nMAGBY a nickname?
boxset 5
compare LASTRESULT 1
if b_False goto $Bye
setflag 0x828
goto $Bye

#org $Bye
setflag 0x800
setflag 0x801
message $Pokedex
$Pokedex 1 = Take Care of MAGBY!
boxset 6
jingle
message $GotDex
$Gotdex 1 = You Also got the National\nPokéDex
boxset 6
end


Your help is Greatly appreciated.
~cooley~

Which ROM is this for?
Code:

]#org $start
lock
faceplayer
checkflag 0x800(or checkflag 0x828 for FR LG)
if b_true goto $done
message $MAGBY
$MAGBY 1=This MAGBY just won't evolve.\nYou can have it.
boxset 6
givepokemon 240 7 0
jingle
message $GotMagby
$GotMagby 1 =You just got a MAGBY!
boxset 6
message $NameMag
$NameMag 1 = Would you like to give\nMAGBY a nickname?
boxset 5
compare LASTRESULT 1
if b_False goto $Bye
setflag 0x828
goto $Bye
end

#org $done(otherwise it will repeat itself over and over and over and etc.
lock
faceplayer
message $hows
$hows 1 =How's that magby going?
boxset 6
release
end

#org $Bye
setflag 0x800(setflag 0x828 for FRLG)
setflag 0x801(setflag 0x829 for FRLG)
message $Pokedex
$Pokedex 1 = Take Care of MAGBY!
boxset 6
jingle
(special 0x16F for FR LG{National DEX})
message $GotDex
$Gotdex 1 = You Also got the National PokéDex!
boxset 6
release
end



cooley September 11th, 2007 3:09 PM

LeafGreen. and the Script you gave me, Doesn't activate the POKéDEX.
Thank you alot!

Quote:

Originally Posted by thethethethe (Post 2875475)
The first problem could be that you have put that script for recieving your first pokemon. and you would need to add a setflag 0x828(FR LG) for that to work. And also if you want to recieve the magby in the pokedex you need to add
special 0x16F(FR LG).
Well here is the script:
Code:

#org $start
faceplayer
givepokemon 240 7 215
#raw 53
#raw <people no.(hex)>
#raw 00
message $take
boxset 6
special 0x136
pause 0x40
warp 3 20 0
fadescreen 0
setflag 0x200
release
end

#org $take
$take 1 =\v\h01 recieved a MAGBY!



That doesn't activate the 'POKéMON' or POKéDEX on the start menu.

thethethethe September 11th, 2007 3:19 PM

Well Cooley, here is the script for LG. I just tried it and it worked fine for me. Try this, maybe you didn't change one of the flags.
Code:

#org $start
lock
faceplayer
checkflag 0x828
if b_true goto $done
message $mabgy
$magby 1 =This MAGBY just won't evolve.\nYou can have it.
boxset 6
givepokemon 240 7 0
jingle
message $GotMagby
$GotMagby 1 =You just got a MAGBY!
boxset 6
message $NameMag
$NameMag 1 = Would you like to give\nMAGBY a nickname?
boxset 5
compare LASTRESULT 1
if b_False goto $Bye
setflag 0x828
goto $Bye
end

#org $done
lock
faceplayer
message $hows
$hows 1 =How's that magby going?
boxset 6
release
end

#org $Bye
setflag 0x828
setflag 0x829
message $Pokedex
$Pokedex 1 = Take Care of MAGBY!
boxset 6
jingle
special 0x16F
message $GotDex
$Gotdex 1 = You Also got the National PokéDex!
boxset 6
release
end



cooley September 11th, 2007 3:22 PM

Is there a Sript (for 'Green S') in A-map, that after you come out of the house you can't go back in. EVER.
Off-Topic: This Scripting stuff is some work, phew.

thethethethe September 11th, 2007 3:34 PM

Try not to double post next time. BUt I had that problem as well. But I think I fixed it. Use the script that I just posted and see what happens tell me if it still happens
Quote:

Originally Posted by cooley (Post 2875673)
Is there a Sript (for 'Green S') in A-map, that after you come out of the house you can't go back in. EVER.
Off-Topic: This Scripting stuff is some work, phew.

No it isn't a script. I'm not really sure, but I think, it has something to do with the unknown's with the warp. I'd have to experiment with it to be sure. I know, that if you change the unknown of a warp inside a house to 00, it won't work, but if you have 00 on the outside warp it will work. It's worth some experimenting to figure out. If not I guess you could always put someone there that will block it off.

And scripting will probably remain that hard becuase you'll start writing longer and longer scripts.(but at least simple ones will become easier)

cooley September 11th, 2007 4:41 PM

Everything works now except for the Following:
  • Binary movements
  • Text that tells you that you got the Pokéballs and potions
Spoiler:
Quote:

#org $start
lock
faceplayer
checkflag 0x828
message $mabgy
$magby 1 =This MAGBY just won't evolve.\nYou can have it.
boxset 6
if b_true goto $done
givepokemon 240 7 0
jingle
message $GotMagby
$GotMagby 1 =You just got a MAGBY!
boxset 6
message $NameMag
$NameMag 1 = Would you like to give\nMAGBY a nickname?
boxset 5
compare LASTRESULT 1
if b_False goto $Bye
setflag 0x828
goto $Bye
end

#org $done
lock
faceplayer
message $hows
$hows 1 =Who are you?
boxset 6
release
end

#org $Bye
setflag 0x828
setflag 0x829
message $Pokedex
$Pokedex 1 = Take Care of MAGBY!
boxset 6
jingle
special 0x16F
message $GotDex
$Gotdex 1 = You Also got the National PokéDex!
boxset 6
goto $begin
end

#org $begin
message $Don't Forget
$Don't Forget 1 = Take These also.
boxset 6
giveitem 0x4 5
giveitem 0xD 5
jingle
message $Receive
$receive 1 = You got Pokéballs,\n and Potions(x5).
boxset 6
goto $move
end

#org $move
applmovement 0x01 $Guy1
pause 0x20
release
end

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

thethethethe September 11th, 2007 4:58 PM

This is how I would write it. You spelt applymovement wrong. And you don't need to have the text 'you recieved (blablabla)' It should display by itself when you recieve an item. Hopefully it works now.
#org $start
lock
faceplayer
checkflag 0x828
message $mabgy
$magby 1 =This MAGBY just won't evolve.\nYou can have it.
boxset 6
if b_true goto $done
givepokemon 240 7 0
jingle
message $GotMagby
$GotMagby 1 =You just got a MAGBY!
boxset 6
message $NameMag
$NameMag 1 = Would you like to give\nMAGBY a nickname?
boxset 5
compare LASTRESULT 1
if b_False goto $Bye
setflag 0x828
goto $Bye
end

#org $done
lock
faceplayer
message $hows
$hows 1 =Who are you?
boxset 6
release
end

#org $Bye
setflag 0x828
setflag 0x829
message $Pokedex
$Pokedex 1 = Take Care of MAGBY!
boxset 6
jingle
special 0x16F
message $GotDex
$Gotdex 1 = You Also got the National PokéDex!
boxset 6
message $Don't Forget
$Don't Forget 1 = Take These also.
boxset 6
giveitem 0x4 5
giveitem 0xD 5
jingle
applymovement 0x01 $Guy1
pause 0x20
release
end

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


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.