- 6
- Posts
- 9
- Years
- Seen Jan 5, 2015
Hello there!
I'm new to this forum and learning Scripting for Pokemon, I'm a web, mobile and software programmer and I love to learn new programming skills, I've found this tutorial here: ./showthread.php?t=164276 (sorry unable to post links, so I only show the tread number [it's in here]) which btw I find it extremely good, and I wanted to start learning it and try it.
Now, what my problem is, my code make the "lock" and then nothing else happen, not even the release at the end, so I'm not sure what is wrong with my code? Hope I can get some help.
Thank you for your help!
I'm new to this forum and learning Scripting for Pokemon, I'm a web, mobile and software programmer and I love to learn new programming skills, I've found this tutorial here: ./showthread.php?t=164276 (sorry unable to post links, so I only show the tread number [it's in here]) which btw I find it extremely good, and I wanted to start learning it and try it.
Now, what my problem is, my code make the "lock" and then nothing else happen, not even the release at the end, so I'm not sure what is wrong with my code? Hope I can get some help.
Code:
'-----------------------
#org 0x71A8BA
lock
countpokemon
compare LASTRESULT 0x0
if 0x1 goto 0x871A838
checkflag 0x8
if 0x1 goto 0x871A848
release
end
'-----------------------
#org 0x71A838
applymovement 0x1 0x871A8F4
msgbox 0x871A85B '"You can't go out without a pokemon,..."
release
end
'-----------------------
#org 0x71A848
applymovement 0x1 0x871A8F4
msgbox 0x871A89B '"Hello there!\nTake this potion."
setflag 0x8
release
end
'-----------
' Movements
'-----------
#org 0x71A8F4
#raw 12 'Step Left (Normal)
#raw 11 'Step Up (Normal)
#raw 2 'Face Left
'---------
' Strings
'---------
#org 0x71A85B
= You can't go out without a pokemon,\nit's dangerous out there!
#org 0x71A89B
= Hello there!\nTake this potion.
Thank you for your help!