- 2
- Posts
- 11
- Years
- Seen Oct 26, 2020
(First post, probably being a mega noob)
Learning to script but unfortunately I'm right at the bottom of the learning curve,(well not right at the bottom, maybe a couple o' centimeters up) so bear with me if I've made a foolish mistake.
Trying to make a script that as you enter a room a person walks up to you, dialogue and then you receive pokemon, however I enter the room and it all just freezes T.T
Help would be brilliant, thanks
Learning to script but unfortunately I'm right at the bottom of the learning curve,(well not right at the bottom, maybe a couple o' centimeters up) so bear with me if I've made a foolish mistake.
Trying to make a script that as you enter a room a person walks up to you, dialogue and then you receive pokemon, however I enter the room and it all just freezes T.T
Help would be brilliant, thanks
Spoiler:
#dynamic 0x1618A1
#org @start
applymovement 0x1 @move
waitmovement 0x0
msgbox @1 0x6
goto @take
checkflag 0x828
if 0x1 goto @done
pause 0x30
msgbox @2 0x6
playsong 0x13E 0x0
applymovement 0x04 @move3
applymovement 0xFF @move3
waitmovement 0x0
fadesong 0x12C
release
end
#org @move
#raw 0x03
#raw 0x62
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x1
#raw 0xFE
#org @1
= [rival]: Happy birthday [player]! /nI got you something real special!
#org @2
= [player]: Bro [...]/pThankyou SO much!
#org @move3
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0xFE
#org @take
givepokemon 0x155 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 call @name
msgbox @5 0x6
release
end
#org @name
call 0x1A74EB
return
#org @done
msgbox @6 0x6
release
end
#org @3
= [black_fr]You received a Spheal!
#org @4
= [black_fr]Would you like to give a\nnickname to Spheal?
#org @5
= You better take care of your\npresent!
#org @6
= How ya' doing Bro?
#org @start
applymovement 0x1 @move
waitmovement 0x0
msgbox @1 0x6
goto @take
checkflag 0x828
if 0x1 goto @done
pause 0x30
msgbox @2 0x6
playsong 0x13E 0x0
applymovement 0x04 @move3
applymovement 0xFF @move3
waitmovement 0x0
fadesong 0x12C
release
end
#org @move
#raw 0x03
#raw 0x62
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x1
#raw 0xFE
#org @1
= [rival]: Happy birthday [player]! /nI got you something real special!
#org @2
= [player]: Bro [...]/pThankyou SO much!
#org @move3
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0xFE
#org @take
givepokemon 0x155 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 call @name
msgbox @5 0x6
release
end
#org @name
call 0x1A74EB
return
#org @done
msgbox @6 0x6
release
end
#org @3
= [black_fr]You received a Spheal!
#org @4
= [black_fr]Would you like to give a\nnickname to Spheal?
#org @5
= You better take care of your\npresent!
#org @6
= How ya' doing Bro?