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 February 21st, 2008 3:51 PM

Dud you need to read my guide if you don't get that...

Piplup-Trainer February 21st, 2008 3:54 PM

I burned it.
If he see me, the game makes a reset.

Aquila February 21st, 2008 4:14 PM

Look, the script worked on my Pc. Only the last message shouldn't work because I forgot to write Boxset 6 under message (my bad)
all other glitches must be in your game...

Piplup-Trainer February 21st, 2008 4:45 PM

Oh no.
The guy comes to me and then a red background appears --> game freezes.
By the way, he isn't available.

Well, I'll try to correct this script myself XD

AngelSL February 22nd, 2008 1:47 AM

#org $battle
message $roar
boxset 6
wildbattle 1 5 0
fadescreen 0
#raw 53
#raw <ppl nr>
#raw 00
setflag 0x200
release
end

#org $roar
$roar 1 = Bulba!

Doesn't work. Just skips wildbattle part!

destinedjagold February 22nd, 2008 6:38 AM

made from scratch... hope this will solve your jirachi script problem... :\
Code:

#org $jirachi
checkflag 0x200
if b_true goto $done
message $roar
boxset 6
wildbattle 0x199 30 1
setflag 0x200
release
end

#org $done
message $roar
boxset 6
release
end

#org $roar
$roar 1 = JIRACHI: Wish... For the star...




- edited -
May I ask for some help..? I wanna know how to activate the clock in a POKMON Ruby U.S. Version ROM...
Thanks in advance... ;)

TB Pro February 22nd, 2008 2:04 PM

Quote:

Originally Posted by Piplup-Trainer (Post 3357463)
I burned it.
If he see me, the game makes a reset.

@ Teh Blaziken :
I have read your scripting school.
I only don't check this :
checkflag 0xXXX
What numbers I have to insert?

Um...dude I directly said: "you can fill this out with any three numbers starting at 200".
Oh
@DJG Might try to extract the script from a regular ROM using PKSV.

AngelSL February 22nd, 2008 5:48 PM

#org $jirachi
checkflag 0x200
if b_true goto $done
message $roar
boxset 6
wildbattle 0x199 30 1
setflag 0x200
release
end

#org $done
message $roar
boxset 6
release
end

#org $roar
$roar 1 = JIRACHI: Wish... For the star...

STILL, just skips wildbattle! DARN!

Luck February 22nd, 2008 5:51 PM

Yeesh the wish...For the star thing sounds like a Satanic ritual.
as for battles i don't know how to do it let alone find the errors.

Jack of Bl♠des February 22nd, 2008 6:37 PM

I'm working on a movement script for somebody, but I'm getting a weird problem.

Code:

#org $start
Checkflag 0x203
if B_true goto $done
applymovement 0x01 $move
applymovement 0xFF $playamove
pausemove 0
Message $poke
Message $recieve
Message $goodluck
Boxset 6
Applymovement 0x01 $moveback
setflag 0x203
Release
End

#org $done
Release
End

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

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

#org $poke
$poke 1 = Take this POKEMON.

#org $recieve
Givepokemon 306 5 0
Jingle
Message $here

#org $here
$here 1 = You recivied a Shroomish.

#org $goodluck
$goodluck 1 = Good luck, \v\h01!

#org $moveback
$moveback 1 ; #binary 0x0E 0xFE


Here's what's supposed to happen: When the character steps on the tile, another character takes a step to the right and says something. They give the character a pokemon, say something else, then return to where they were.

Here's what I get:
http://img211.imageshack.us/img211/2447/glitch2qt4.png

When I step on the script tile, the character moves one step, but says the last message that's supposed to appear, followed by the game freezing while that weird box appears. Any corrections in my script would be appreciated; movement scripts aren't my strength right now, and I think that's what's messing it up.

TB Pro February 22nd, 2008 6:59 PM

@Jack Of Blades Try this bud.
Spoiler:
Code:

#org $start
Checkflag 0x203
if B_true goto $done
applymovement 0x01 $move
applymovement 0xFF $playamove
pausemove 0
Message $poke
boxset 6
givepokemon 306 5 0
message $gotit
boxset 6
Message $goodluck
Boxset 6
Applymovement 0x01 $moveback
pausemove 0
setflag 0x203
Release
End

#org $done
Release
End

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

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

#org $poke
$poke 1 = Take this POKEMON.

#org $gotit
$gotit 1 = You recivied a Shroomish.

#org $goodluck
$goodluck 1 = Good luck, \v\h01!

#org $moveback
$moveback 1 ; #binary 0x0E 0xFE



Jack of Bl♠des February 22nd, 2008 7:26 PM

Quote:

Originally Posted by Teh Blaziken (Post 3361233)
@Jack Of Blades Try this bud.
Spoiler:
Code:

#org $start
Checkflag 0x203
if B_true goto $done
applymovement 0x01 $move
applymovement 0xFF $playamove
pausemove 0
Message $poke
boxset 6
givepokemon 306 5 0
message $gotit
boxset 6
Message $goodluck
Boxset 6
Applymovement 0x01 $moveback
pausemove 0
setflag 0x203
Release
End

#org $done
Release
End

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

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

#org $poke
$poke 1 = Take this POKEMON.

#org $gotit
$gotit 1 = You recivied a Shroomish.

#org $goodluck
$goodluck 1 = Good luck, \v\h01!

#org $moveback
$moveback 1 ; #binary 0x0E 0xFE



Ah, there we go! Thanks Blaziken, you defintely are teh coolest. Seems that I left out those "boxset 6"'s that you put, and also had to decapitalize the "A" in applymovement, which made a surprisingly big difference.

One question more. How would you insert sound effects in the middle of a script (like the gym leaders, or finding an item)?

Luck February 22nd, 2008 9:04 PM

Yeah you shouldn't doubt his teh coolness-ness.

Anyways i haven't tried this script out yet but can someone tell me what is wrong with it if there is something wrong with it?

Quote:

#ORG $begin
lock
faceplayer
message $yesno
boxset5
compare LASTRESULT 1
if B_true goto $yes
message $no
boxset 6
release
end

#ORG $yes
message $yep
boxset 6
release
end

#ORG $yesno
$yesno 1 = Hey did you watch\nthe superbowl?

#ORG $no
$no 1 =Then you are NOT\na man!

#ORG $yep
$yep 1 = It was cool\n wasn't it?

Megiddo-san February 22nd, 2008 9:07 PM

The only thing I see is that you need to add a space between boxset and 5.

Aquila February 22nd, 2008 9:07 PM

Can someone tell me how to make, or where I can find commands for this script:

I want a person to ask What item would you like, and then a Box comes up like this

__________
| Potion |
| Full Heal |
| Pokeball |
L _______ J

Cant find any toturials that shows me how at the moment...

WindBlows February 22nd, 2008 9:21 PM

Code:

#org $start
lock
faceplayer
checkflag 0x210
message $saluteandpkmn
boxset 0x6
givepokemon 369 5 164
jingle
message $recieved
boxset 0x6
message $salut
boxset 0x6
applymovement 0x07 $move
pausemove 0
setflag 0x210
release
end

#ORG $saluteandpkmn
$saluteandpkmn 1 =Oh, hi!\nYou must be \v\h01!\pYour sister came, minutes ago, for\nher own POKEMON too.\pAnyways she chose an EEVEE.\nShe was very excited!\pI kept you a very energetic,\nbut timid POKEMON.\pIts name is GIBLE. Here you have!\nIt's all yours!

#ORG $recieved
$recieved 1 =\v\h01 recieved GIBLE.

#ORG $salut
$salut 1 =Ok! That's all. I have to go\nand investigate some POKEMON outside.\pSee you!

#ORG $move
#raw 0x08
#raw 0x08
#raw 0x0A
#raw 0x08
#raw 0x0A
#raw 0x0A
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0xFE


Is this script good for a person?
I mean If a talk to a person it activates?

Can you correct something if is wrong?

Megiddo-san February 22nd, 2008 9:25 PM

It should be
#org $move
$move 1 ; then your commands

WindBlows February 22nd, 2008 9:33 PM

so It will be like this ?

Code:

#org $start
lock
faceplayer
checkflag 0x210
message $saluteandpkmn
boxset 0x6
givepokemon 369 5 164
jingle
message $recieved
boxset 0x6
message $salut
boxset 0x6
applymovement 0x07 $move
pausemove 0
setflag 0x210
release
end

#ORG $saluteandpkmn
$saluteandpkmn 1 =Oh, hi!\nYou must be \v\h01!\pYour sister came, minutes ago, for\nher own POKEMON too.\pAnyways she chose an EEVEE.\nShe was

very excited!\pI kept you a very energetic,\nbut timid POKEMON.\pIts name is GIBLE. Here you have!\nIt's all yours!

#ORG $recieved
$recieved 1 =\v\h01 recieved GIBLE.

#ORG $salut
$salut 1 =Ok! That's all. I have to go\nand investigate some POKEMON outside.\pSee you!

#ORG $move
$move 1; #binary 0x08 0x08 0x0A 0x08 0x0A 0x0A 0x08 0x08 0x08 0xFE



Jack of Bl♠des February 22nd, 2008 9:37 PM

It's pretty solid, including what megiddo said. But there's a bunch of common mistakes you made in the second half.

Code:

#ORG $saluteandpkmn
$saluteandpkmn 1 = Oh, hi!\nYou must be \v\h01!\pYour sister came, minutes ago, for\nher own POKEMON too.\pAnyways she chose an EEVEE.\nShe was

very excited!\pI kept you a very energetic,\nbut timid POKEMON.\pIts name is GIBLE. Here you have!\nIt's all yours!

#ORG $recieved
$recieved 1 = \v\h01 recieved GIBLE.

#ORG $salut
$salut 1 = Ok! That's all. I have to go\nand investigate some POKEMON outside.\pSee you!

#ORG $move
$move 1 ; #binary 0x08 0x08 0x0A 0x08 0x0A 0x0A 0x08 0x08 0x08 0xFE


Spaces make a surprising amount of difference in a script.

Thrace February 23rd, 2008 2:04 AM

Quote:

Originally Posted by Aquila (Post 3361571)
Can someone tell me how to make, or where I can find commands for this script:

I want a person to ask What item would you like, and then a Box comes up like this

__________
| Potion |
| Full Heal |
| Pokeball |
L _______ J

Cant find any toturials that shows me how at the moment...

What you want is a pokemart script:
Quote:

Originally Posted by thethethethe
#org $StartMarket
lock
faceplayer
pokemart $marketValues 'pointer to items in the pokemart.
release
end

#org $marketValues
#binary int 0x1 0x2 0x3 0x4 0x5 0x6 0x7 0x8 'items. So in this case it's Masterball, Ultraball, Greatball, pokeball, etc
#binary int 0x9 0xa 0xb 0xc 0x13 0x14 0x0 'continueing items... Must End in 0x0 otherwise it won't work.


ryan123456789019 February 23rd, 2008 3:34 PM

Help
 
Hello I need some help with scripting I want this person to make me follow him and warp me to a certian map and it did work. But it is an invisable person talking and making me follow him. How would I make it that a person would make me follow him and I can see the person.

Tanro February 23rd, 2008 3:47 PM

Is it Possible to add new Tms? I want to add say 10-15 more tms. I am planning on taking the tm List back to the one from classic R/B/Y but I also want to have some extra slots for new moves. Is that possible? without hexediting as I am not ready to start learning Hex editing yet, even though I know that should really be used for good hacks. I dont plan on releaseing anything anytime soon.

Aquila February 23rd, 2008 3:51 PM

Quote:

Originally Posted by ryan123456789019 (Post 3364196)
Hello I need some help with scripting I want this person to make me follow him and warp me to a certian map and it did work. But it is an invisable person talking and making me follow him. How would I make it that a person would make me follow him and I can see the person.

You have to write the person event number(for the sprite you want to follow) after applymovement. And you have to place the sprite in the right place...

TB Pro February 23rd, 2008 4:25 PM

Quote:

Originally Posted by ryan123456789019 (Post 3364196)
Hello I need some help with scripting I want this person to make me follow him and warp me to a certian map and it did work. But it is an invisable person talking and making me follow him. How would I make it that a person would make me follow him and I can see the person.

Is there a person on the map?

Ghost February 23rd, 2008 6:15 PM

How does a Wild Battle script work
I've read every tut there is in PC and I never got the Wild Battle to work
Nothing Happens when I talk to the person with the script


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