• 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!
  • 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.
Satoshi,

Try this:


Spoiler:
 
Last edited:
Code:
#dynamic 0x800000

#org @start
checkflag 0x861
if b_false goto @hide
checkflag 0x204
if b_true goto @end
setvar 0x5040 0x0
checkflag 0x861
if b_true goto @script
end

#org @hide
hidesprite 0x9
releaseall
end

#org @script
compare 0x5040 0x0
if b_true goto @dex0
compare 0x5040 0x1
if b_true goto @dex1
compare 0x5040 0x2
if b_true goto @dex2
end

#org @dex0
showsprite 0x9
lockall
applymovement 0x9 @move0
waitmovement 0x0
msgbox @upgrade
boxset 0x6
special 0x1F3
fanfare 0x13E
msgbox @got
boxset 0x6
waitfanfare
fadescreen 0x1
hidesprite 0x9
setflag 0x204
fadescreen 0x0
releaseall
end

#org @dex1
showsprite 0x9
lockall
applymovement 0x9 @move1
waitmovement 0x0
msgbox @upgrade
boxset 0x6
special 0x1F3
fanfare 0x13E
msgbox @got
boxset 0x6
waitfanfare
fadescreen 0x1
hidesprite 0x9
setflag 0x204
fadescreen 0x0
releaseall
end

#org @dex2
showsprite 0x9
lockall
applymovement 0x9 @move2
waitmovement 0x0
msgbox @upgrade
boxset 0x6
special 0x1F3
fanfare 0x13E
msgbox @got
boxset 0x6
waitfanfare
fadescreen 0x1
hidesprite 0x9
setflag 0x204
fadescreen 0x0
releaseall
end

#org @end
releaseall
end

#org @move0
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x0A
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x0B
#raw 0xFE

#org @move1
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x0A
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x0B
#raw 0x0B
#raw 0xFE

#org @move2
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x0A
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0xFE

#org @upgrade
= Take this, but don't say anything\nto PROF.BIRCH. He doesn't know that\lI took this prototype NATIONAL DEX\l... ... ...

#org @got
= [player]'s POKéDEX got upgraded.

ROM: Emerald, Usage: Gimme national dex AFTER I got the pokedex from birch... There are 2 problems: 1) the sprite doesn't hide before I get pokedex and 2) script doesn't even work after I get pokedex.. Plz help....
 
Dex and Pkmn menu are flags
Dex: 0x829
pkmn menu: 0x828
 
And National dex in fire red is: special 0x16F
and in Emerald: it's special 0x1F3
 
Can someone tell me whats wrong with this script?
Spoiler:
 
Can someone tell me whats wrong with this script?
Spoiler:
Theres no text...
Heres a script you base it on:
#Dynamic 0x823322

#org @Main
lock
checkflag 0x1001
if 0x1 goto @done
setflag 0x1001
faceplayer
message @1
callstd 0x6

special 0x16F
release
end

#org @done
release
end

#org @1
= Type the text here.
 
Whoops, you're right. Thanks
 
Big time problem

Ok I have a big problem.

Whenever I make an Applymovement script, I have to be able to see the character I want to move, On my screen, if the character isnt on my screen, it wont move.

Can someone help me out? I wanna move a character without it having to be on my screen [IN THE GAME]

Everything works, but I cant move my Rival [Hes near the healing mechine in professor oak's lab]

If you cant understand what i am saying: I can move characters that I have view of in my screen in-game, but if I cant see the character, it wont move.



My script

Code:
#org $start
checkflag 0x203
if b_true goto $done
applymovement 0xFF $move
pausemove 0x0
applymovement 0xFF $move2
pause 0x30
message $1
boxset 6
message $2
boxset 6
message $3
boxset 6
applymovement 0x08 $move3
pausemove 0
message $4
boxset 6
#raw 0x53 0x06 0x00
message $5
boxset 6
applymovement 0x08 $move4
pausemove 0
applymovement 0xFF $move5
pausemove 0
playsound 0x133
nop
message $6
boxset 6
applymovement 0xFF $move6
applymovement 0x10 $move6
applymovement 0x08 $move6
pausemove 0
applymovement 0x0B $move7
pausemove 0
applymovement 0x0B $move8
pausemove 0
#raw 0x53 0x05 0x00
applymovement 0x0B $move9
pausemove 0
fadesound 0x12C
nop
#raw 0x53 0x11 0x00
setflag 0x202
release
end

#org $done
release
end

#org $move
#raw 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE

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

#org $move3
#raw 0x08 0x0F 0x0F 0x0F 0x0F 0x0F 0x01 0xFE

#org $1
$1 1 =Oak: Hello \v\h01 your finally here.\n Glad you could make it.

#org $2
$2 1 =Oak:As you can see someone has\nalready gotten a starter so there\pare only two left.

#org $3
$3 1 =\v\h06: I'll choose first!

#org $4
$4 1 =\v\h06: I'll take this one

#org $5
$5 1 =Oak: Go get yours \v\h01

#org $move4
#raw 0x02 0xFE

#org $move5
#raw 0x08 0x0F 0x0F 0x09 0x03 0xFE

#org $6
$6 1 =???: Actually, i'll be taking that Pokemon.

#org $move6
#raw 0x62 0xFE 

#org $move7
#raw 0x1D 0x20 0x20 0x20 0x20 0x1E 0x20 0x20 0x20 0x20 0xFE

#org $move8
#raw 0x20 0x20 0x01 0xFE

#org $move9
#raw 0x1F 0x1F 0x1D 0x1D 0x1D 0x1D 0x1D 0x1D 0x1D 0x1D 0xFE
 
Ok I have a big problem.

Whenever I make an Applymovement script, I have to be able to see the character I want to move, On my screen, if the character isnt on my screen, it wont move.

Can someone help me out? I wanna move a character without it having to be on my screen [IN THE GAME]

Everything works, but I cant move my Rival [Hes near the healing mechine in professor oak's lab]

If you cant understand what i am saying: I can move characters that I have view of in my screen in-game, but if I cant see the character, it wont move.

If the PLAYER's too far away from the person you want to move, it will never move.
If you want a person to move towards the PLAYER, that person should be...

If the person will appear from either right or left, then the person should be 8 tiles away from the PLAYER so the screen won't show him.
If the person will appear from either above or at the bottom, then the person should be 6 tiles away from the PLAYER...

[PokeCommunity.com] [Archive] Script help thread


The center of the screen is always the PLAYER, so this means, the screen is 15x11 in size.

What I am trying to say is that, put that person 8 tiles away from the PLAYER if he moves in from either left or right, and/or 6 tiles away if he moves from either up or down. ;)
 
Hey,
what is the command that checks the amount of time taken?
Like for example, a guy tells you that you have 10 min to come back, if you come earlier the next event won't happen until 10 min have passed.
Thanks.
 
Hey,
what is the command that checks the amount of time taken?
Like for example, a guy tells you that you have 10 min to come back, if you come earlier the next event won't happen until 10 min have passed.
Thanks.
Hmm... I have the one for Emerald version, that is the 24 hour check... but I haven't found a 10 minute one yet... is there one?
 
I am just giving an example. lol
There is a 24 hour one, but what is it for Fire red? the command..
Thanks.
 


If the PLAYER's too far away from the person you want to move, it will never move.
If you want a person to move towards the PLAYER, that person should be...

If the person will appear from either right or left, then the person should be 8 tiles away from the PLAYER so the screen won't show him.
If the person will appear from either above or at the bottom, then the person should be 6 tiles away from the PLAYER...

[PokeCommunity.com] [Archive] Script help thread


The center of the screen is always the PLAYER, so this means, the screen is 15x11 in size.

What I am trying to say is that, put that person 8 tiles away from the PLAYER if he moves in from either left or right, and/or 6 tiles away if he moves from either up or down. ;)


Thank you for the help Time. ^_^
 
I've been wanting to test this script out. When I did(a long while ago), the Rom froze when I stepped on the script tile.

I use XSE.

Code:
#dynamic 0x71AF6D

#org @begin
applymovement 0x1 @move1
waitmovement 0x0
msgbox @go
boxset 0x6
applymovement 0x1 @move2
waitmovement 0x0
applymovement 0xFF @move3
release
end

#org @move1
= 0x0F 0x0F 0x0F 0x01 0xFE

#org @go
= GO AWAY NOW!!!

#org @move2
= 0x4F 0x00 0xFE

#org @move3
= 0x0E 0x0E 0x0E 0xFE
 
I've been wanting to test this script out. When I did(a long while ago), the Rom froze when I stepped on the script tile.

I use XSE.

Code:
#dynamic 0x71AF6D

#org @begin
applymovement 0x1 @move1
waitmovement 0x0
msgbox @go
boxset 0x6
applymovement 0x1 @move2
waitmovement 0x0
applymovement 0xFF @move3
[B]waitmovement 0x0[/B]
release
end

#org @move1
= 0x0F 0x0F 0x0F 0x01 0xFE

#org @go
= GO AWAY NOW!!!

#org @move2
= 0x4F 0x00 0xFE

#org @move3
= 0x0E 0x0E 0x0E 0xFE
On the script tile, put
Unknown 0300
Var# 4050
Changes in bold.
 
I can't believe I didn't spot this before!
Here's the new script:
Works perfectly.
#dynamic 0x71AF6D

#org @begin
applymovement 0x1 @move1
waitmovement 0x0
msgbox @go
callstd 0x6 0x6
applymovement 0x1 @move2
waitmovement 0x0
applymovement 0xFF @move3
waitmovement 0x0
release
end

#org @move1
#raw 0x0F 0x0F 0x0F 0x01 0xFE

#org @go
= GO AWAY NOW!!!

#org @move2
#raw 0x4F 0x00 0xFE

#org @move3
#raw 0x0E 0x0E 0x0E 0xFE
 
2 Questions:
As there is a way to giveitem and takeitem,
Is there a way to givepokemon and TAKEPOKEMON? By that I mean a script that checks your party for a certain pokemon and if it finds it it takes it away. P.S I already know checkpokemon, I just don't know how to take the pokemon away.

Is there a command to randomize a pokemon from all that you've seen (Like the girl who gives you nuggets and luxury balls when you show her a random pokemon? Ooops I just got the answer to this question... *Runs off to find the girl script*
 
does anyone know how to do a script with multiple choices and answers such as when you open click a pc and see the different choices, any help?
 
Status
Not open for further replies.
Back
Top