• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Archive] Script help thread

Status
Not open for further replies.
Hi,
I need help with this script:
#org $start
lock
checkflag 0x411
if 0x0 goto $discover
release
end

#org $discover
applymovement 0x1 $rival_see
$rival_see 1 ; #binary 0x63 0x08 0x02 0x62 0x0A 0xFE
message $who
$who 1 =???:Who are you?\p................\p???:Oh so you're PLAYER.\p???: My name is Prof. Birch
and \nI am a Pokemon Proffessor.\pHmmm...\nYou look like a trustworthy \nyoung man...\pOkay I've decided.\n I'm going to entrust you with\na PokeDex and a Pokemon.\p And in return you're going\n to help me fill this PokeDex.\pHere you go.
boxset 6
setflag 0x828
setflag 0x829
special 0x16F
givepokemon 133 5 144
message $off
$off 1 =Birch: And now, I'm off.
boxset 6
applymovement 0x1 $byebye
$byebye 1 ; #binary 0x0B 0x0B 0x09 0x09 0x09 0x0B 0x09 0x09 0x09 0xFE
setflag 0x411
warp 0x3 0x53 0x0
release
end#org $start
lock
checkflag 0x411
if b_false goto $discover
release
end

The Movement works, but while
it moves a stranke textbox appears
in the down,right corner.
And then There is no text. And the script
ends.

What's wrong?:\

//44tim44

PS. By the way I've tried different
settings at "Unknown" and "Var number" in
A-Map: 0300-5040/0300-5340/0300-0040/0300-0140
 
#org $start
lock -remove this-
checkflag 0x411
if 0x0 goto $discover
release
end

#org $discover
applymovement 0x1 $rival_see
$rival_see 1 ; #binary 0x63 0x08 0x02 0x62 0x0A 0xFE
pausemove 0
message $who
$who 1 =(put a space here)???:Who are you?\p................\p???:Oh so you're PLAYER.\p???: My name is Prof. Birch
and \nI am a Pokemon Proffessor.\pHmmm...\nYou look like a trustworthy \nyoung man...\pOkay I've decided.\n I'm going to entrust you with\na PokeDex and a Pokemon.\p And in return you're going\n to help me fill this PokeDex.\pHere you go.
boxset 6
setflag 0x828
setflag 0x829
special 0x16F
givepokemon 133 5 144
message $off
$off 1 =(put a space here)Birch: And now, I'm off.
boxset 6
applymovement 0x1 $byebye
$byebye 1 ; #binary 0x0B 0x0B 0x09 0x09 0x09 0x0B 0x09 0x09 0x09 0xFE
pausemove 0
setflag 0x411
warp 0x3 0x53 0x0
release
end

---------------
if it doesn't work, then I am sorry... I don't use 0x0 and 0x1 as replacements for if b_true... xD
 
Last edited:
Thanks DJG:D
I'll test that.

By the way I usually dont use 0x0 0x1
instead of B_true/false, it is like
this cause I am using thex4's
Simple scripter program :P

//44tim44

EDIT:
The Movement still works, but once again while
it moves the strange textbox appears
in the down,right corner.
It's lika a choice box (YES/NO , Island 1/2/3)
And when you choose the down choice nothing happends
and when you choose the upper one the screen goes red.

...WHAT THE F*** IS THE PROBLEM XD!!!
 
Last edited:
Well you have lots of errors, Try this man:

#ORG $sayhello
lock
faceplayer
message $yesno
boxset 5
compare LASTRESULT 1
if 1 goto $testmovement
message $askme
boxset 6
release
end

#ORG $yesno
$yesno 1 = Should I leave?

#ORG $testmovement
applymovement $0x07 $move
pausemove 0
release
end

#ORG $askme
$askme 1 = Okay. Ask me later again.

#ORG $move
$move 1 ; #binary 0x4A 0x4B 0x62 0x63 0x64 0x65 0x66 0xFE

@ Teh Blaziken : The game freezes, when I open the rom.
 
hey guys I have a question waht I must insert in this script
to open the picture from pikachu.
pleaese,help.

sorry for the bad englisch.

#org $begin
lock
faceplayer
if B_true goto $bisa
checkflag 0x860
message $talk
$talk 1 =Hallo willst dieses Pikachu.
boxset 5
compare LASTRESULT 1
if B_False goto $done
givepokemon 25 5 0
message $talk1
$talk1 1 =\v\h01 erhält Pikachu.
boxset 6
setflag 0x860
release
end

#org $done
message $talk2
$talk2 1 =Nein? ok
boxset 6
release
end

#org $bisa
message $talk3
$talk3 1 =Hy wie geht es pikachu.
boxset 6
release
end
 
to 44tim44.., try this...
#org $start
checkflag 0x411
if b_true goto $done
applymovement 0x01 $rivalsee
pausemove 0
message $who
boxset 6
setflag 0x828
setflag 0x829
special 0x16F
givepokemon 133 5 144
message $off
boxset 6
applymovement 0x1 $byebye
pausemove 0
setflag 0x411
warp 0x3 0x53 0x0
release
end

#org $done
release
end

#org $rivalsee
$rivalsee 1 ; #binary 0x63 0x08 0x02 0x62 0x0A 0xFE

#org $who
$who 1 = ???:Who are you?\p................\p???:Oh so you're PLAYER.\p???: My name is Prof. Birch and \nI am a Pokemon Proffessor.\pHmmm...\nYou look like a trustworthy \nyoung man...\pOkay I've decided.\n I'm going to entrust you with\na PokeDex and a Pokemon.\p And in return you're going\n to help me fill this PokeDex.\pHere you go.

#org $off
$off 1 = Birch: And now, I'm off.

#org $byebye
$byebye 1 ; #binary 0x0B 0x0B 0x09 0x09 0x09 0x0B 0x09 0x09 0x09 0xFE
 
I have a problem with this script..and i have to get on the buss into town..so i dont have time to do a script check..so..I hope i'll see if anyone has found the error ^_^
Spoiler:
 
I need help with a simple script I wrote for my hack.

Here is it:

Code:
#org $StartScript
checkflag 0x822
if B_TRUE goto $ShouldExecute
end
#org $ShouldExecute
if B_TRUE goto $Skip
lock
message $Hey
boxset 6
movesprite 0xA 0xA 0x5
applymovement 0xA $MoveRival
pausemove 0
message $HaveHM
boxset 6
giveitem 0x154
message $Bye
boxset 6
applymovement 0xA $MoveRivalInv
pausemove 0
movesprite 0xA 0x0 0x0
setflag 0x201
release
end
#org $Skip
release
end
#org $Hey
$Hey 1 = Hey, \v\h01!
#org $HaveHM
$HaveHM 1 = \v\h01, PROF.PLUM sent me to\ngive you this HM!
#org $Bye
$Bye 1 = Well, I must go to CROSSED TOWN.\nSee ya!
#org $MoveRival
$MoveRival 1 ; #binary 0x13 0x13 0x10 0x10 0x13 0x13 0x13 0x13 0x13 0xFE
#org $MoveRivalInv
$MoveRivalInv 1 ; #binary 0x12 0x12 0x12 0x12 0x12 0x11 0x11 0x12 0x12 0xFE

I am working with Fire Red, and I have an sprite with index 0xA on the map. But, when I walk upon the script spot in the map I only get a playsound. I DON'T EVEN SPECIFIED A PLAYSOUND! Then I change the script pointer to other script that works, I RECEIVE THE SAME THING! Please, help me!

PD: I am using PokeScript


I think you should read up on some more tutorials..
First, you have no spaces imbetween scripts, after every paragraph, press enter twice and continue.
 
Well that is a sign of a crashed ROM.

Maybe I burned too much scripts in this rom (I burned it three-five times in it).
Or : it can be that your version of that script is for a FireRed Rom. I burned the script in a Ruby Rom, because i hack Pokemon Ruby.
 
im learning how to script...
I'm just wondering if this script works:
Code:
#org $start
lock
faceplayer
message $pro
$pro 1 =Take this National Dex!
special 0x16F
waitfanfare
release
end
If it doesn't work,will someone make me a script of
a professor giving the main character a national dex?
 
I think one of these should work.
#ORG $begin
lock
faceplayer
message $pro
boxset 6
special 0x16F
waitfanfare
release
end

#org $pro
$pro 1 = Take this National Dex!

OR (EDIT: first one doesn't work.)

#ORG $begin
lock
faceplayer
checkflag 0x200
message $pro
boxset 6
special 0x16F
waitfanfare
setflag 0x200
release
end

#org $pro
$pro 1 = Take this National Dex!
 
Last edited:
I think one of these should work.
#ORG $begin
lock
faceplayer
message $pro
boxset 6
special 0x16F
waitfanfare
release
end

#org $pro
$pro 1 = Take this National Dex!

OR (EDIT: first one doesn't work.)

#ORG $begin
lock
faceplayer
checkflag 0x200
message $pro
boxset 6
special 0x16F
waitfanfare
setflag 0x200
release
end

#org $pro
$pro 1 = Take this National Dex!

Ok,Thank you!
I tried mine.
and my rom froze xD
 
I think one of these should work.
#ORG $begin
lock
faceplayer
message $pro
boxset 6
special 0x16F
waitfanfare
release
end

#org $pro
$pro 1 = Take this National Dex!

OR (EDIT: first one doesn't work.)

#ORG $begin
lock
faceplayer
checkflag 0x200
message $pro
boxset 6
special 0x16F
waitfanfare
setflag 0x200
release
end

#org $pro
$pro 1 = Take this National Dex!

this wont work u need to put it like this

#ORG $begin
lock
faceplayer
checkflag 0x200
message $pro
boxset 6
setflag 0x828
setflag 0x829
special 0x16F
waitfanfare
setflag 0x200
release
end

#org $pro
$pro 1 = Take this National Dex!

then it should work
 
Hey I'm having a problem with a simple setflag script...

#org $begin
checkflag 0x202
lock
faceplayer
if B_true goto $done
setflag 0x202
release
end

#org $done
release
end

It says "Runtime error 5 invalid procedure call or argument

Please help!
 
Can someone please check this script, it doesn't work.
(is for firered)
(offsets are in dutch :P)
Code:
#ORG $papa
checkflag 0x200
if B_true goto $alaf
applymovement 0x01 $hoigast
pause 0x40
message $jourmn
boxset 5
compare LASTRESUILT B_TRUE
if B_False goto $better
message $great
boxset 6
message $enough1
boxset 6
applymovement 0x01 $backto1
pause 0x30
setflag 0x200
end

#org $hoigast
$hoigast ; #binary 0x62 0x11 0x11 0x13 0xFE

#org $jourmn
$jourmn 1 = Hi, \v\h01!\nAre you excited about your journey?

#org $great
$great 1 = Great! I'm excited too!

#org $better
message $stupid
boxset 6
message $enough2
boxset 6
applymovement 0x01 $backto2
pause 0x30
setflag 0x200
end

#org $stupid
$stupid 1 = Well, you better be!

#org $enough1
$enough1 1 = But enough with the talking,\nyou better head over to \v\h06's house\pYou've got a journey to start! 

#org $enough2
$enough2 1 = But enough with the talking,\nyou better head over to \v\h06's house\pYou've got a journey to start!

#org $backto1
$backto1 ; #binary 0x12 0x10 0x10 0xFE

#org $backto2
$backto2 ; #binary 0x12 0x10 0x10 0xFE

#org $alaf
lock
faceplayer
message $comeon
boxset 6
release
end

#org $comeon
$comeon 1 = Good luck on your journey!
 
Status
Not open for further replies.
Back
Top