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)

Piplup-Trainer March 26th, 2008 3:09 PM

Hello!
I need a Script which do the following :
After you took a rest in your bed, a message appears.
If you speak now to a man then he will go one step up and face you.

That script should do the same thing like the script in Pokemon Gold (you know --> when you surf from Olivine City to Kanto).

Night_Blue March 27th, 2008 12:26 AM

KAWAII'SwhatWEaim4 : Did you put the var numbers like this
Code:

_______________
Unknown    l  0300
Varnumber l  5040


Piplup-Trainer :
Code:

#org $start
message $1
$1 1 = Do you want to heal your pokemon?
boxset 5
compare LASTRESULT 1
if B_true goto $yes
release
end

#org $yes
fadescreen 0x1
#raw 0x00
special 0x0
fadescreen 0x0
setflag 0x200
release
end


The trainer
Code:

#org $lalala
checkflag 0x200
if B_true goto $done
message $2
$2 1 = Hello!
boxset 6
release
end

#org $done
trainerbattle 1 0x001 $6 $7 $8
message $la
$la 1 = You beat me!!
boxset  6
release
end

#org $6
$6 1 = Your back huh.

#org $7
$7 1 = I need a rest....

#org $8
message $9
$9 1 = Seriously,I need a break!!
boxset 6
release
end


I didn't do it exactly like Gold,you add the extra stuff if you want it to happen like you said.

Piplup-Trainer March 27th, 2008 10:46 AM

1 Attachment(s)
Okay...but i didn't mean a trainer.

Quote:

Look, in Pokemon Gold there is a sailor which stands in front of the stairs (in the boat S.S. Aqua).
After you take a rest in your bed, the sailors says : We land in Vermilion City!
If you go to him and speak with him, he says the same message again and he goes one step left.
So you can get outside to Vermilion City.
I uploaded an image --> open it, (enlarge it) and continue reading what I'm typing.

Okay, see the maps 25.42 and 25.43 (look at Pokemon Ruby - Maps found in Advance Map)?
Now, I want you to make a script, which checks the following : Have you beaten all the trainers on map 25.42 and 25.43?
--> IF YES : The sailor on the left bottom corner (at the map 25.41) should print a message ("We land on Vermilion City!"). Then he should go up (one step) and faces you.
--> IF NO : He should print a message ("The ship will take some time to land on Vermilion City. \p Ask my brother. Maybe he can give you some work...").


Thats all! Thanks in advance! ;)

EDIT : I'm using a RUBY ROM!

[enter name here] March 27th, 2008 11:20 PM

1.when i try to open pokescript it just says "run-time error 429"
2.when i use pet all the offsets start with "H" and they have 7 digits,and if i change a trainer
the rom i used is destroyed
3.does script-ed work with firered and if it does can someone tell how to get the "compile script" option in script-ed
4.does script-ed use the same coding style(example.#ORG$begin etc.)

thank you in advance

[enter name here] March 28th, 2008 6:15 AM

when i try to open pokescript.exe it says "run-time error 429".
can someone tell me how to stop this

Geeked March 28th, 2008 7:40 AM

I had a title screen done, ever since, my scripts wont work?

im using pokescript, they compile, but when i test them they wont work.

Geeked March 28th, 2008 11:23 AM

anyone know a working berry script?

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

What are the scripting codes for up arrow in text box and down arrow in text box?

[enter name here] March 29th, 2008 3:29 AM

how do you compile scripts in script-ed?

Binary March 29th, 2008 3:30 AM

79=UP ARROW
7A=DOWN ARROW
In hex.

Megiddo-san March 29th, 2008 7:42 AM

Okay. Thank you. Can someone tell me what is wrong with this script? Nothing happens when you step on the tile.

Spoiler:
#ORG $begin
setvar 0x4036 0x48
copyvar 0x8004 0x4036
special2 LASTRESULT 0x17C
compare LASTRESULT 1
if b_true goto $battle
checkflag 0x209
if B_true goto $done
setflag 0x209
release
end

#ORG $done
release
end

#ORG $battle
playsound 0x13B
nop
applymovement 0x01 $rivwalk
applymovment 0x03 $compan
pausemove 0
applymovement 0xFF $hr
pausemove 0
trainerbattle 1 0x147 $before $after $further
fadesound 0x117
nop
release
end

#ORG $rivwalk
#RAW 0x12
#RAW 0x12
#RAW 0x12
#RAW 0x10
#RAW 0xFE

#ORG $compan
#RAW 0x10
#RAW 0x12
#RAW 0x12
#RAW 0x12
#RAW 0xFE

#ORG $hr
#RAW 0x01
#RAW 0x62
#RAW 0xFE

#ORG $before
$before 1 = Before we leave I want to kick\nyour butt.

#ORG $after
$after 1 = Wha?!

#ORG $further
message $your
boxset 6
applymovement 0x01 $again
applymovement 0x03 $again2
pausemove 0
setflag 0x250
release
end

#ORG $your
$your 1 = You're better than I thought...\p\v\h01.\p\v\h01.I'll win next time.

#ORG $again
#RAW 0x12
#RAW 0x10
#RAW 0x10
#RAW 0x10
#RAW 0x10
#RAW 0x10
#RAW 0x13
#RAW 0x10
#RAW 0xFE

#ORG $again2
#RAW 0x10
#RAW 0x10
#RAW 0x10
#RAW 0x10
#RAW 0x10
#RAW 0x12
#RAW 0x10
#RAW 0xFE

TB Pro March 29th, 2008 8:12 AM

Quote:

Originally Posted by xray (Post 3442748)
anyone know a working berry script?

Like a berry tree from G/S/C? I beleive I could make one...it would deal with randomization, so you would not know if you would get a berry or not...of course then you could just talk to it over and over again to get a berry...I have been researching time in Pokemon Games. There seems to be a way to make things time-based, but it's sorta difficult to find out how. You could also just make it check for a flag thatn happens later in the game before it would bear any more berries. So then it would act like a progress-wise deal. Just specify which one you would prefer, and I'll try to write it up for you:)

Aquila March 29th, 2008 11:05 AM

warp 0x24 0x52 0x2

Why does the screen turn black when I use this command? There is nothing wrong with the map or anything..

Night_Blue March 29th, 2008 11:54 AM

I had that problem to.
Try :
Warp 24 52 2

BakingBluePotatoe March 29th, 2008 1:08 PM

Spoiler:

#org $start
callasm 0x71B771
#raw 0x1
checkflag 0x200
if b_true goto $done
givepokemon 4 5 0x8B
message $take
boxset 6
applymovement 0x60 $balldiss
callasm 0x71B771
#raw 0x01
setflag 0x828
setflag 0x200
release
end

#org $done
messag $balldiss
boxset 6
release
end

#org $take
$take 1 =\v\h01's mind: This must be\nthe ball she ment! I wonder how this\pis special? Oh well, I guess\nI'll find out soon enough!


#org $balldiss
$balldiss 1 ; #binary 0x60 0xFE


nothing happens when I talk to the Pokeball... just the "ping" sound o_O

What I want to happen is:

you talk to the Pokeball
you think to yourself
you then take the ball
the ball dissapares
you recive the shiny charmander that's also holding an oran berry.

EDIT: I am using that Shiny Routine thingymabob, so the Charmander is shiny

Geeked March 29th, 2008 1:11 PM

yes, TB Pro me and you can write that script, but it will take awhile so ill drop you a pm, and we can get started.

D a n i e l March 29th, 2008 1:29 PM

Hi =/ I have a problem too.
Code:

#ORG $begin
checkflag 0x200
if B_True goto $done
applymovement 0x02 $Mumcomes
pausemove 0
message $1
boxset 6
applymovement 0xFF $Igodown
applymovement 0x02 $Shegoesdown
pausemove 0
applymovement 0x02 $Driving //here it begins getting wrong.
applymovement 0xFF $Driving //The player doesnt want to go with the other sprites.
applymovement 0x01 $Driving
pausemove 0
applymovement 0xFF $Goup
applymovement 0x02 $Goup
pausemove 0
message $2
boxset 6
applymovement 0x02 $SheAway
applymovement 0xFF $MeUp
pausemove 0
setflag 0x200
Release
end

#ORG $done
release
end

#ORG $Mumcomes
#RAW 0x56
#RAW 0x05
#RAW 0x05
#RAW 0x05
#RAW 0x05
#RAW 0x05
#RAW 0x05
#RAW 0x05
#RAW 0xFE

#ORG $Igodown
#RAW 0x04
#RAW 0x04
#RAW 0x04
#RAW 0x04
#RAW 0x04
#RAW 0x04
#RAW 0x04
#RAW 0x04
#RAW 0x06
#RAW 0x06
#RAW 0xFE

#ORG $Shegoesdown
#RAW 0x04
#RAW 0x04
#RAW 0x04
#RAW 0x04
#RAW 0x04
#RAW 0x04
#RAW 0x04
#RAW 0x06
#RAW 0xFE

#ORG $Driving
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0x06
#RAW 0xFE

#ORG $Goup
#RAW 0x05
#RAW 0x05
#RAW 0x05
#RAW 0x05
#RAW 0x05
#RAW 0x05
#RAW 0x05
#RAW 0x05
#RAW 0x05
#RAW 0xFE

#ORG $MeUp
#RAW 0x05
#RAW 0xFE

#ORG $SheAway
#RAW 0x04
#RAW 0x04
#RAW 0x04
#RAW 0x04
#RAW 0x04
#RAW 0x04
#RAW 0x04
#RAW 0x04
#RAW 0xFE

#ORG $1
$1 1 = Mama: Hi Schatz! Wohin des Weges?\nNach Metropolis? Das ist aber\pein sehr langer Weg bis dahin.\nAußerdem hast du gar kein Pokemon\pdas dich beschützen könnte...\nUnd der Weg führt durch die\pHöhle des Ungewissen.Nein Schatzi!\nIch nehme dich mit dahin!\pWie? Tja, mit dem Auto! Komm.

#ORG $2
$2 1 = Mama: So. Viel Glück auf\ndeiner Reise. Werde der weltbeste\pPokemontrainer und mach deine Mama\pstolz... Achja,Vergiss nicht\ntäglich die Unterwäsche zu wechseln.\pMachs Gut und komm bald wieder.



Aquila March 29th, 2008 3:14 PM

Quote:

Originally Posted by Night_Blue (Post 3446870)
I had that problem to.
Try :
Warp 24 52 2

It worked.... Had to change something else

Quote:

#org $start
callasm 0x71B771
#raw 0x1
checkflag 0x200
if b_true goto $done
givepokemon 4 5 0x8B
message $take
boxset 6
applymovement 0x60 $balldiss
callasm 0x71B771
#raw 0x01
setflag 0x828
setflag 0x200
release
end

#org $done
messag $balldiss
boxset 6
release
end

#org $take
$take 1 = (You forgot a space here) \v\h01's mind: This must be\nthe ball she ment! I wonder how this
\pis special? Oh well, I guess\nI'll find out soon enough!


#org $balldiss
$balldiss 1 ; #binary 0x60 0xFE

BakingBluePotatoe March 29th, 2008 3:40 PM

now it will show the thoughts, but the rest isn't happening...

for reference:

Spoiler:
#org $start
callasm 0x71B771
#raw 0x1
checkflag 0x200
if b_true goto $done
givepokemon 4 5 0x8B
message $take
boxset 6
applymovement 0x60 $balldiss
callasm 0x71B771
#raw 0x01
setflag 0x828
setflag 0x200
release
end

#org $done
messag $balldiss
boxset 6
release
end

#org $take
$take 1 = \v\h01's mind: This must be\nthe ball she ment! I wonder how this\pis special? Oh well, I guess\nI'll find out soon enough!


#org $balldiss
$balldiss 1 ; #binary 0x60 0xFE


what SHOULD happen:

you talk to the Pokeball
you think to yourself
you then take the ball
the ball dissapares
you recive the shiny charmander that's also holding an oran berry.

what is happening instead:
You talk to the ball
you think to yourself
nothing else

Innocence March 29th, 2008 5:39 PM

Umm, does the charmander appear in your party or PC? Because from what I can see, the ball won't disappear until you talk to it a second time.

BakingBluePotatoe March 29th, 2008 6:03 PM

it's the starter, so it's supossed to appare in the party...

frank$or March 30th, 2008 12:35 AM

When I applied an trainerscript to a person, I walked into the grass and I had to fight against a wild pokemon I fled and then I became the person (that trainer.)

Code:

#org $Trainer1
lock
faceplayer
trainerbattle 1 0x002 $MadChall $MadDefeat
$MadChall 1 = My bugs will crush you!
$MadDefeat 1 = NOOO!
message $MadTalk
$MadTalk 1 = My bugs need more practise..
boxset 6
release
end



Dr.Razor March 30th, 2008 4:51 AM

Hi, what's wrong with that script?
Code:

#org $debut
lock
faceplayer
message $ond
bosxet 6
special 0x157
applymovement 0xFF $move
pausemove 0x0
applymovement 0x04 $move2
pause 0x30
message $arg
boxset 6
applymovement 0x04 $move3
pause 0x30
release
end

#org $ond
$ond 1 =Hey!!!\nPrends pas mon velo!!

#org $move
#raw 0x10 0xFE

#org $move2
#raw 0x12 0x12 0x62 0xFE

#org $arg
$arg 1 =Je vais appeler l'agent\nJenny.

#org $move3
#raw 0x1F 0x1F 0x1F 0x1F 0x1F 0x60 0xFE



Master_Track March 30th, 2008 9:54 AM

Quote:

Originally Posted by Dr.Razor (Post 3449626)
Hi, what's wrong with that script?
Code:

#org $debut
lock
faceplayer
message $ond
bosxet 6
special 0x157
applymovement 0xFF $move
pausemove 0x0
applymovement 0x04 $move2
pause 0x30
message $arg
boxset 6
applymovement 0x04 $move3
pause 0x30
release
end

#org $ond
$ond 1 =Hey!!!\nPrends pas mon velo!!

#org $move
#raw 0x10 0xFE

#org $move2
#raw 0x12 0x12 0x62 0xFE

#org $arg
$arg 1 =Je vais appeler l'agent\nJenny.

#org $move3
#raw 0x1F 0x1F 0x1F 0x1F 0x1F 0x60 0xFE



I'd say that's the main problem xD
If I find another mistake I tell you.

TB Pro March 30th, 2008 10:37 AM

For Daniel: NEVER, I repeat, NEVER use the same offset twice(or more) in one script.
For Kitsune:
Spoiler:
Code:

#org $start
callasm 0x71B771
#raw 0x1
checkflag 0x200
if b_true goto $done
givepokemon 4 5 0x8B
message $take
boxset 6
applymovement 0x60 $balldiss
callasm 0x71B771
#raw 0x01
setflag 0x828
setflag 0x200
release
end

#org $done
release
end

#org $take
$take 1 = \v\h01's mind: This must be\nthe ball she ment! I wonder how this\pis special? Oh well, I guess\nI'll find out soon enough!

#org $balldiss
#RAW 0x60
#RAW 0xFE




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.