• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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.
Thanks a lot Thethethethe!!
 
I use boxset 3 sometimes, but it really doesn't matter. Boxset 3 and 6 do the same things.

I'm not 100% sure, but I think the black box only appear depending on something in the map (Header View). You'd have to look at the header view's to see the differences, between indoor and outdoor maps.


Just use the [code}{/code] button. The php code colours can be pretty annoying.

I changed it slightly. The third pointer isn't a message. It'll point to another part of the script. Look at the script and you'll see what I did.

Thanks, You are a true heroXD

New ask, Did i do any thing wrong white my movements? The text box just start in the middle, and i placed the pause 0x60 when it's 6 moves? And some of the movement don't even start? It's the $mark7 second time?
 
Last edited:
help

#org $begin
lock
faceplayer
message $dontgoout
$dontgoout 1 =Hey!\nProf Oak said you where coming!
boxset 6
applymovement 0x10 $coming
pausemove 0
message $comeback
$comeback 1 =Come with me!
boxset 6
applymovement 0x1 $followone
applymovement 0xFF $followtwo
pausemove 0
message $hereyago
$hereyago 1 =You are going to\nJhoto!
boxset 6
release
end

#org $coming
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE

#org $followone
#raw 0x1F
#raw 0x0A
#raw 0x1E
#raw 0x09
#raw 0xFE

#org $followtwo
#raw 0x1F
#raw 0x0A
#raw 0x1E
#raw 0xFE
#raw 0x0B
#raw 0xFE

#org warp
warp 0x0 0x06 0x1




can someone figure out what is wrong because when i get to the spot where the script is the game just frezzes
 
Can someone help me with my code?

Code:
#ORG $begin
checkflag 0x202
if b_true goto $done
checkflag 0x203
if b_true goto $done2
message $voices
boxset 6
setflag 0x202
goto $done

#ORG $done2
release
end

#ORG $done
applymovement 0xff $walk
pausemove 0
release
end

#ORG $walk
#raw 0x0A 
#raw 0xfe

#ORG $voices
$voices 1 = We have the prisoner\nupstairs knocked out.\p...Yes don't worry\nI'm sure he's not awake...\p...Yeah but he doesn't know\nthe computer password is\n 89565.


Basically I can say you should ignore the checkflags..... Just try to understand from where it goes from message to $done (the movement step back).

But yeah what happens is the game doesn't freeze but the guy doesn't move and no message pops up and nothing happens, the music keeps on playing though.... I have a feeling it's something I need to do with the script in Advance Map that makes it activate it when I walk on it? (Which is what I want) Is there something i need to put in those weird var spots for it to activate correctly?

I really don't understand what any of those var functions do.....



****Double Post - ryan123456789019, I think it may be because you can't use the lock function if you're going to use applymovement... Im not too sure though but that's the only thing I can think of after reading your script.
 
Last edited:
when using A-map i type my offset code into the script offset box, but it doesnt seem to work, when testing it, the rom crashes, in pokescript the code i get is "message1. $begin (D01000)", so i type "D01000" into the box in A-map, is there something im doing wrong?


im following a tutorial and the script im using is
Code:
#org $begin
lock
faceplayer
message $howareyou
$howareyou 1 =Hey \v\h01!\nHows your journey going?
boxset 6
release
end
 
when using A-map i type my offset code into the script offset box, but it doesnt seem to work, when testing it, the rom crashes, in pokescript the code i get is "message1. $begin (D01000)", so i type "D01000" into the box in A-map, is there something im doing wrong?

Yes type it in as $D01000.
Always put a "$" in front of offsets!
Lol!
 
Try to put 0xOFFSET like this he angers to open the written message of the offset.
-->
message 0xD01000
0xD01000 1 =Hey \v\h01!\nHows your journey going?
boxset 6
 
#org $begin
lock
faceplayer
message $howareyou
boxset 6
release
end

#org $howareyou
$howareyou 1 = Hey \v\h01! \nHows your journey going?

I corrected it, try this

Try to put 0xOFFSET like this he angers to open the written message of the offset.
-->
message 0xD01000
0xD01000 1 =Hey \v\h01!\nHows your journey going?
boxset 6


ill try both of these thanks =].
not on the pc atm, on the goddamn mac, but ill get back to you with the results =].
 
Okay, I understand how to script, but I don't understand how to ignite a script to be performed after you walk on a certain space in the game.

For example I have this script
Code:
#ORG $start
lock
message $lol
boxset 6
release
end

#ORG $lol
$lol 1 = Lolled!

Very simple, and very basic. I don't think there can be any flaws to that.... but if there is tell me.

Anyway, I entered in the starting offset for $start (happens to be $800437) into the script offset box for the script event in Advance Map. And yes, I have the script spot positioned on the map. In game when I walk on the square, the player freezes up but no messages pop up or nothing, and the music keeps on playing...

Help appreciated =)
 
Maybe it's your ORG in the beginning, try using lowercase letters. What program do you use, PoketScript or something else? If it's PoketScript, then tell me what it says when you are burning it into the game. If not, then I can't help.

And does anyone know what to put to make an earthquake happen? Like when you're running to Groudon/Kyogre in Ruby/Sapphire? Yes, it is Ruby/Sapphire.
 
Okay, I understand how to script, but I don't understand how to ignite a script to be performed after you walk on a certain space in the game.

For example I have this script
Code:
#ORG $start
lock
message $lol
boxset 6
release
end

#ORG $lol
$lol 1 = Lolled!
Very simple, and very basic. I don't think there can be any flaws to that.... but if there is tell me.

Anyway, I entered in the starting offset for $start (happens to be $800437) into the script offset box for the script event in Advance Map. And yes, I have the script spot positioned on the map. In game when I walk on the square, the player freezes up but no messages pop up or nothing, and the music keeps on playing...

Help appreciated =)

Did you put the numbers in the script tile in the right way?
unkown: 03 00
var number: 6C(can be 50 to) 40
var value: 00 00
unkown: 00 00

I usually use 6C but you can do 50 to..
 
Well, I burned this script, whichI've got from the Irish Witch's thread :

#org $ShowText
Lock
Faceplayer

$message noCookie
$noCookie = Hi! I haven't got a cookie for you!!!

release
end

If I click on the person then he don't answers me!
Here is the video (You can't hear the clicks because my Hypercam doesn't record sound. I don't know why - I clicked "Record Sound").
 
Last edited:
You forgot the video. :P

But that tutorial is outdated, try doing this:

#org $ShowText
Lock
Faceplayer
message $noCookie
boxset 6
release
end

$message noCookie
$noCookie = Hi! I haven't got a cookie for you!!!
 
I edited it. the video is now aviable (Sorry, that you couldn't see the video before, because my internet is slow...)

I've inserted your version, Pikafan.
He is speaking with me if I click on him.
But he don't say that he haven#t a cookie.
He is teling that Prof. Birch is gone and he is asking when he'll come back (like in the original ruby).
 
Last edited:
In FR, there are some Rockets that you first see as an other sprite. But then they "transform" into a Rocket-sprite. How can you do that with a script?
 
help

I need help with this script:
#org $begin
lock
faceplayer
checkflag 0x200
if b_true goto $alreadygotone
message $wantpoke
$wantpoke 1 =Hey,\nwould you like this Eevee?
boxset 5
compare LASTRESULT 1
if 1 goto $geteevee
message $toobad
$toobad 1 =Oh, thats too bad.
boxset 6
release
end
#org $geteevee
lock
message $getone
$getone 1 =Oh cool!\nI cant take care of it\panymore...
boxset 6
givepokemon 0x85 0x5 0x0
message $received
$received 1 =PLAYER received EEVEE!
boxset 6
applymovement 0x1 $going
pausemove 0
release
end
#org $going
#raw 0x60 it works but after the script as finshed it freezes what am I doing wrong?
 
Last edited:
I need help with this script:
#org $begin
lock
faceplayer doesnt have to be here
checkflag 0x200
if b_true goto $alreadygotone
message $wantpoke
$wantpoke 1 =Hey,\nwould you like this Eevee?
boxset 5
compare LASTRESULT 1
if 1 goto $geteevee
message $toobad
$toobad 1 =Oh, thats too bad.
boxset 6
release
end

#org $geteevee
lock
message $getone
$getone 1 =Oh cool!\nI cant take care of it\panymore...
boxset 6
givepokemon 0x85 0x5 0x0
message $received
$received 1 =\v\h01 received EEVEE!
boxset 6
applymovement 0x1 $going
pausemove 0
release
end

#org $going
#raw 0x60 whitt this you want to make the OW disappear if im right?
so I ewould do it like this

#org $going
$going 1 ; #binary 0x60 0xFE (always has to be there)

it works but after the script as finshed it freezes what am I doing wrong?

It would work like that...
 
Status
Not open for further replies.
Back
Top