View Single Post
Old August 12th, 2013 (5:52 AM).
Bubblepopper Bubblepopper is offline
Join Date: Aug 2013
Gender: Male
Posts: 5
Hey again guys,

I posted a script yesterday and you guys helped me a lot, anyways started trying to move on to more advanced scripts and i've ran into another problem.

Iv made a script for a random NPC to give a pokemon to you, im following a tutorial and even though iv followed his script something went wrong, I think its something to do with the flags, but no matter how much a tinker with them the character continues to talk like hes already given you the pokemon.

Im using XSE 1.1.1 so thats not the problem.

Anyways heres the code, any help at all would be really appreciated!

#dynamic 0x800042

#org @start
checkflag 0x1200
if 0x1 goto @done
msgbox @question 0x5
compare LASTRESULT 0x1
if 0x1 goto @givepokemon
msgbox @nothanks 0x6

#org @done
msgbox @checkup 0x6

#org @givepokemon
msgbox @thanks 0x6
givepokemon 0x19 0xA 0xD 0x0 0x0 0x0
fanfare 0x13E
msgbox @recieved 0x6
setflag 0x1200
msgbox @thanks2 0x6

#org @question
= Hey there!\pYou seem like a nice person.\nWould you like this Pikachu?

#org @nothanks
= Oh, that's too bad.\pCome back if you change your mind.

#org @thanks
= Oh, thats great!\pHere you go!

#org @thanks2
= Thanks again.\pTake goo care of Pikachu!

#org @recieved
= \v\h01 recieved PIKACHU!

#org @checkup
= Hey again.\pHow's my Pikachu doing with you?