Back again with more errors.
I've started to get a slight grip on Scripting, I'm understanding things a little better
however I still have issues I need help with, So can anyone help me find out what's wrong with these.
The first is a badge check option, I have it so that you can no access an area until you have a specific badge, which works fine as there are aspects of the script that do not work when I do not have the badge. However the movement doesn't seem to work as planned. He moves out of the way, but when I enter a building or a battle, he moves back to his spot.
He says the script, and the (!!) pops up, but he doesn't move at all. Not quite sure If I'm missing anything or what.
The next issue I have is with this script, It's meant to be the professor Oak script, just edited, basically, you need to go and get the parcel still, but when you walk into the lab with him, he stands there until you talk to him again, then the actual script itself doesn't work right.
The issues are as follows
I've started to get a slight grip on Scripting, I'm understanding things a little better
however I still have issues I need help with, So can anyone help me find out what's wrong with these.
The first is a badge check option, I have it so that you can no access an area until you have a specific badge, which works fine as there are aspects of the script that do not work when I do not have the badge. However the movement doesn't seem to work as planned. He moves out of the way, but when I enter a building or a battle, he moves back to his spot.
Spoiler:
release
end
'---------------
#org @snippet1
lock
faceplayer
applymovement 0x5 @move1
msgbox @string2 MSG_NORMAL '"Wait, you have the badge! My\..."
applymovement 0x5 @move2
release
end
'---------
' Strings
'---------
#org @string1
= Sorry, but I'm looking for strong\ntrainers, come back when you're\lstronger, okay?
#org @string2
= Wait, you have the badge! My\nmistake.\lHere, come right through!
'-----------
' Movements
'-----------
#org @move1
#raw 0x65 'Double Exclamation Mark (!!)
#raw 0xFE 'End of Movements
#org @move2
#raw 0x13 'Step Left (Normal)
#raw 0x9
#raw 0x0 'Face Down
#raw 0xFE 'End of Movements
end
'---------------
#org @snippet1
lock
faceplayer
applymovement 0x5 @move1
msgbox @string2 MSG_NORMAL '"Wait, you have the badge! My\..."
applymovement 0x5 @move2
release
end
'---------
' Strings
'---------
#org @string1
= Sorry, but I'm looking for strong\ntrainers, come back when you're\lstronger, okay?
#org @string2
= Wait, you have the badge! My\nmistake.\lHere, come right through!
'-----------
' Movements
'-----------
#org @move1
#raw 0x65 'Double Exclamation Mark (!!)
#raw 0xFE 'End of Movements
#org @move2
#raw 0x13 'Step Left (Normal)
#raw 0x9
#raw 0x0 'Face Down
#raw 0xFE 'End of Movements
He says the script, and the (!!) pops up, but he doesn't move at all. Not quite sure If I'm missing anything or what.
The next issue I have is with this script, It's meant to be the professor Oak script, just edited, basically, you need to go and get the parcel still, but when you walk into the lab with him, he stands there until you talk to him again, then the actual script itself doesn't work right.
Spoiler:
#dynamic 0x800000
'---------------
#org @start
lock
faceplayer
checkflag 0x836
if 0x1 goto @snippet1
applymovement 0x4 @move1
applymovement MOVE_PLAYER @move2
waitmovement 0x4
setflag 0x836
checkflag 0x835
if 0x0 goto @snippet1
msgbox @string1 MSG_NORMAL '"Hawthorn: Ah, [player]!. Go out th..."
release
end
'---------------
#org @snippet1
lock
faceplayer
msgbox @string2 MSG_NORMAL '"Hawthorn: I have a question for\ny..."
setflag 0x835
checkitem 0x15D 0x1
compare LASTRESULT 0x1
if 0x4 goto @snippet2
release
end
'---------------
#org @snippet2
lock
faceplayer
removeitem 0x15D 0x1
msgbox @string3 MSG_NORMAL '"Hawthorn: That's bloody great,\nth..."
giveitem 0xD 0x5 MSG_OBTAIN
giveitem 0x4 0x5 MSG_OBTAIN
release
end
'---------
' Strings
'---------
#org @string1
= Hawthorn: Ah, [player]!. Go out there\nand get catching! I want to see if\lyou can fill up your brothers old\lPokedex, he got it from Oak a few\lyears ago, but because of your dad\lpassing... well he had to put it\lon hold to look after you all. I\lunderstand that you might be too\lyoung to remeber the war but it\lmade a mark on this region's\lhistory...
#org @string2
= Hawthorn: I have a question for\nyou. Would you be able to go to\lthe next town over and collect my\lpackage for me? It got delieved\lbut I'm snowed under here with\lwork. I'll give you a few rewards\lif you do.
#org @string3
= Hawthorn: That's bloody great,\nthanks lad. Here you go, have some\lPotions and some Pokeballs. It's\lnot much but it's still something!
'-----------
' Movements
'-----------
#org @move1
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x0 'Face Down
#raw 0x65 'Double Exclamation Mark (!!)
#raw 0xFE 'End of Movements
#org @move2
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements
'---------------
#org @start
lock
faceplayer
checkflag 0x836
if 0x1 goto @snippet1
applymovement 0x4 @move1
applymovement MOVE_PLAYER @move2
waitmovement 0x4
setflag 0x836
checkflag 0x835
if 0x0 goto @snippet1
msgbox @string1 MSG_NORMAL '"Hawthorn: Ah, [player]!. Go out th..."
release
end
'---------------
#org @snippet1
lock
faceplayer
msgbox @string2 MSG_NORMAL '"Hawthorn: I have a question for\ny..."
setflag 0x835
checkitem 0x15D 0x1
compare LASTRESULT 0x1
if 0x4 goto @snippet2
release
end
'---------------
#org @snippet2
lock
faceplayer
removeitem 0x15D 0x1
msgbox @string3 MSG_NORMAL '"Hawthorn: That's bloody great,\nth..."
giveitem 0xD 0x5 MSG_OBTAIN
giveitem 0x4 0x5 MSG_OBTAIN
release
end
'---------
' Strings
'---------
#org @string1
= Hawthorn: Ah, [player]!. Go out there\nand get catching! I want to see if\lyou can fill up your brothers old\lPokedex, he got it from Oak a few\lyears ago, but because of your dad\lpassing... well he had to put it\lon hold to look after you all. I\lunderstand that you might be too\lyoung to remeber the war but it\lmade a mark on this region's\lhistory...
#org @string2
= Hawthorn: I have a question for\nyou. Would you be able to go to\lthe next town over and collect my\lpackage for me? It got delieved\lbut I'm snowed under here with\lwork. I'll give you a few rewards\lif you do.
#org @string3
= Hawthorn: That's bloody great,\nthanks lad. Here you go, have some\lPotions and some Pokeballs. It's\lnot much but it's still something!
'-----------
' Movements
'-----------
#org @move1
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x0 'Face Down
#raw 0x65 'Double Exclamation Mark (!!)
#raw 0xFE 'End of Movements
#org @move2
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements
The issues are as follows
- He still says the "Could you go and get the Parcel" speaking to him the first time with the parcel in the bag
- When speaking to him after giving him the parcel, he goes back to the "I have a question" text
- I'm guessing its a text placement thing, but I tried to fix it and broke the script.
Last edited: