Hey.
I use XSE and i tried to make just a simple script with a guy giving a pokemon.
I tried it a long time ago and worked perfectly.
Alright, the script is like this.
I dont know why is not working, i just copied the script for testing it.
It has a problem with the command "compare" i think.
#dynamic 0x800554
#org @start
lock
faceplayer
checkflag 0x1200
if 0x1 goto @done
msgbox @question 0x5
compare LASTRESULT 0x1
if 0x1 goto @givepokemon
msgbox @nothanks 0x6
release
end
#org @done
msgbox @checkup 0x6
release
end
#org @givepokemon
msgbox @thanks 0x6
givepokemon 0x19 0xA 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @recieved 0x6
waitfanfare
setflag 0x1200
msgbox @thanks2 0x6
release
end
#org @question
= Hey there!\pYou seem like a nice person!\nWould you like this Pikachu?
#org @nothanks
= Oh? That's to bad.\pCome back if you change your mind.
#org @thanks
= Oh! That's GREAT!\pHere you go!
#org @thanks2
= Thanks again! I think it will have\nmore fun with you than with me.
#org @recieved
= \v\h01 recieved a PIKACHU!
#org @checkup
Also if you can help me with another script i would appreciate that.
I made a new town in A-map and i just want to make sure the player does not go in wild grass until he had obtained a Pokemon.
Thank you!
I use XSE and i tried to make just a simple script with a guy giving a pokemon.
I tried it a long time ago and worked perfectly.
Alright, the script is like this.
I dont know why is not working, i just copied the script for testing it.
It has a problem with the command "compare" i think.
Spoiler:
#dynamic 0x800554
#org @start
lock
faceplayer
checkflag 0x1200
if 0x1 goto @done
msgbox @question 0x5
compare LASTRESULT 0x1
if 0x1 goto @givepokemon
msgbox @nothanks 0x6
release
end
#org @done
msgbox @checkup 0x6
release
end
#org @givepokemon
msgbox @thanks 0x6
givepokemon 0x19 0xA 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @recieved 0x6
waitfanfare
setflag 0x1200
msgbox @thanks2 0x6
release
end
#org @question
= Hey there!\pYou seem like a nice person!\nWould you like this Pikachu?
#org @nothanks
= Oh? That's to bad.\pCome back if you change your mind.
#org @thanks
= Oh! That's GREAT!\pHere you go!
#org @thanks2
= Thanks again! I think it will have\nmore fun with you than with me.
#org @recieved
= \v\h01 recieved a PIKACHU!
#org @checkup
Also if you can help me with another script i would appreciate that.
I made a new town in A-map and i just want to make sure the player does not go in wild grass until he had obtained a Pokemon.
Thank you!