• 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.
Well, if your planning on doing it IN GAME it would be helpful to have a nidoran OW, wich I do think is in the rom.. the rest would be just.. speech and movement, and a givepoke script ;)
 
I need the script of the oldman in CherryGrove City, he will lead us to visit houses and after that he gives us items Townmap!
 
Is it possible to make a script continue after a wildbattle?
I know how to do it with trainerbattles, but if I try to let a script continue after a wildbattle, nothing happens ^^''
 
yes...
you can make a script that will work if a flag has been set...
for instance...

first script...
Code:
#org $start
lock
faceplayer
checkflag 0x200
if b_true goto $done
message $hate
boxset 6
setflag 0x200
release
end

#org $done
message $love
boxset 6
release
end

#org $love
$love 1 = Okay, I admit it.\nI really like you.

#org $hate
$hate 1 = I ah... I...\nI HATE YOU! >.<

second script...
Code:
#org $start
checkflag 0x200
if b_true goto $event
release
end

#org $event
checkflag 0x201
if b_true goto $done
message $score
boxset 6
setflag 0x201
release
end

#org $score
$score 1 = \v\h01: Woo-hoo! SCORE!!!

#org $done
release
end
 
Code:
#org $start
lock
faceplayer
message $1
boxset 6
cry 0xA1 52
nop
nop
wildbattle 52 10 0x8B
fadescreen 0
#raw 0x53 0x0F 0x80
setflag 0x200
release
end

#org $1
$1 1 =MEOWTH: ...Meow?\nYeah, let's go with that.

I don't know what I did wrong, but then again, I'm too good at scripting as you can probably tell.

I had another one, let me find it.

My post refuses to save when I edit it, so instead I'll just double post. If a mod could like, merge the posts or something, I'd appreciate it.

Anyway, here's the second script.

Code:
WELCOME TO POKESCRIPT
Copyrite Pokewitch Inc
<THE SITE DOESNT LET ME POST LINKS TO OTHER SITES>

#org $start
checkflag 0x018
if b_true goto $done
message $1
boxset 5
compare LASTRESULT 0x1
if b_true goto $take
message $2
boxset 6
release
end

#org $take
givepokemon 140 5 0
fanfare 0x13E
message $3
boxset 4
waitfanfare
#raw 0x68
setflag 0x828
message $4
boxset 5
compare LASTRESULT 0x1
if b_true gosub $name
message $5
boxset 6
release
end

#org $name
call 0x1A74EB
return

#org $done
message $6
boxset 6
release
end

#org $1
$1 1 =Here, take this!\nDon't ask questions, just do it!

#org $2
$2 1 =What do you mean, no?!\nFine, I'll just give it to\nsomeone else.

#org $3
$3 1 =\c\h01\h02You received a Kabuto!

#org $4
$4 1 =\c\h01\h02Would you like to rename Kabuto?

#org $5
$5 1 =You'll put that thing to\n better use than I could've.

#org $6
$6 1 =I hope you're taking good.
 
#INLINE: 0, 1
2: Encoding text: I hope you're taking good\ncare of my Kabuto.
 
Last edited:
try this one then... :\
Code:
#org $start
lock
faceplayer
message $1
boxset 6
cry 0xA1 52
pause 0x28
wildbattle 0x34 10 0x8B
fadescreen 0
#raw 0x53 0x0F 0x80
setflag 0x200
release
end

#org $1
$1 1 = MEOWTH: ...Meow?\nYeah, let's go with that.
That one didn't work either :/
it just froze again.
 
can someone tell me how to use scripted? I don't know the first thing about it....
 
In A-map you need to set
Unknown: 3
Var Value: 50 40

Then it wont freeze, I'm guessing your using a tile script right?

Maybe. But still, there's faceplayer in the code :/

Code:
#org $start
lock
faceplayer
message $1
boxset 6
cry 0xA1 52
nop
nop
wildbattle 52 10 0x8B
fadescreen 0
#raw 0x53 0x0F 0x80
setflag 0x200
release
end
 
#org $1
$1 1 =MEOWTH: ...Meow?\nYeah, let's go with that.

I don't know what I did wrong, but then again, I'm too good at scripting as you can probably tell.

I had another one, let me find it.

My post refuses to save when I edit it, so instead I'll just double post. If a mod could like, merge the posts or something, I'd appreciate it.

Anyway, here's the second script.

Code:
WELCOME TO POKESCRIPT
Copyrite Pokewitch Inc
<THE SITE DOESNT LET ME POST LINKS TO OTHER SITES>
 
#org $start
checkflag 0x018
if b_true goto $done
message $1
boxset 5
compare LASTRESULT 0x1
if b_true goto $take
message $2
boxset 6
release
end
 
#org $take
givepokemon 140 5 0
fanfare 0x13E
message $3
boxset 4
waitfanfare
#raw 0x68
setflag 0x828
message $4
boxset 5
compare LASTRESULT 0x1
if b_true gosub $name
message $5
boxset 6
release
end
 
#org $name
call 0x1A74EB
return
 
#org $done
message $6
boxset 6
release
end
 
#org $1
$1 1 =Here, take this!\nDon't ask questions, just do it!
 
#org $2
$2 1 =What do you mean, no?!\nFine, I'll just give it to\nsomeone else.
 
#org $3
$3 1 =\c\h01\h02You received a Kabuto!
 
#org $4
$4 1 =\c\h01\h02Would you like to rename Kabuto?
 
#org $5
$5 1 =You'll put that thing to\n better use than I could've.
 
#org $6
$6 1 =I hope you're taking good.
 
#INLINE: 0, 1
2: Encoding text: I hope you're taking good\ncare of my Kabuto.

1st code: It works fine for me. It should be fine unless you did use a script tile. Although placing cry before the message might work...

2nd code: The script works fine except for one message, ($2) I think, and the fact that you can continuously get the pokemon. Setting the flag should do the trick.

I've got a question. Is it possible for a script to continue after warping to another map? Maybe a goto or call towards an offset in the second map? If not, is it possible for a script tile to trigger immediately after entering a map. For example, the tile is placed exactly where the player would enter a map.
 
I've got a question. Is it possible for a script to continue after warping to another map? Maybe a goto or call towards an offset in the second map? If not, is it possible for a script tile to trigger immediately after entering a map. For example, the tile is placed exactly where the player would enter a map.

No and No, warp end scripts, ALWAYS. The other one, I say no.. But I'm not 100% sure. As far as I know, its a no.
 
Maybe. But still, there's faceplayer in the code :/



1st code: It works fine for me. It should be fine unless you did use a script tile. Although placing cry before the message might work...

2nd code: The script works fine except for one message, ($2) I think, and the fact that you can continuously get the pokemon. Setting the flag should do the trick.

I've got a question. Is it possible for a script to continue after warping to another map? Maybe a goto or call towards an offset in the second map? If not, is it possible for a script tile to trigger immediately after entering a map. For example, the tile is placed exactly where the player would enter a map.

Damn, why isn't it working for me then?
How do you assign these scripts to people in advancemap?
 
Hello. I'm using PokéScript and I made my script, but I don't know how to get the offsets. I did what one of the tutorials told me to do, but when I talk to the person with the script in-game, no message comes up.
 
Status
Not open for further replies.
Back
Top