#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! >.<
#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
#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.
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.
#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 :/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.
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?
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.
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.