View Single Post
  #1322    
Old June 9th, 2009, 05:34 PM
Quickster's Avatar
Quickster
Dream or Drop?
 
Join Date: Oct 2007
Gender: Male
Nature: Quiet
Quote:
Originally Posted by Teh_PingasYTP View Post
i made a givepokemon script and it works, but after i get it and talk to him again, he gives it to me again, and again and i can't get it to work! i want him to say something else after i get it and talk to him again.

Script:
Spoiler:
#dynamic 0x71AA20
#org @start
lock
faceplayer
checkflag 0x829
if 0x0 goto @notyet
if 0x1 goto @give
release
end
#org @notyet
msgbox @sorry 0x6
end

#org @give
givepokemon 0x7E 0x7 0x0 0x0 0x0 0x0
fanfare 0x13E
waitfanfare
setflag 0x829
msgbox @yay 0x6
release
end
#org @sorry
= Hello!\pMy name is Teh_PingasYTP!\pYou're in my hack!\pI'll tell you what.\pIf you come back to me\nafter you get the POK\h1BDEX,\pI'll give you something special!
#org @yay
= [player] obtained MAGMAR!\nCongradulations!\pIt's a very rare POK\h1BMON!\nTrain it well!


I am using XSE.
The script below should work.You set the flag for the pokedex after you get the pokemon.Thats the flag it checks for inorder to give the pokemon.Just a small mistake.

Spoiler:
#dynamic 0x

#org @start
checkflag 0x829
if 0x1 goto @give
msgbox @sorry 0x2
release
end

#org @give
checkflag 0x1000
if 0x1 goto @done
givepokemon 0x7E 0x7 0x0 0x0 0x0 0x0
fanfare 0x13E
waitfanfare
setflag 0x1000
msgbox @yay 0x2
release
end

#org @done
msgbox @gave 0x2
release
end

#org @sorry
= Hello!\pMy name is Teh_PingasYTP!\pYou're in my hack!\pI'll tell you what.\pIf you come back to me\nafter you get the POK\h1BDEX,\pI'll give you something special!

#org @yay
= [player] obtained MAGMAR!\nCongradulations!\pIt's a very rare POK\h1BMON!\nTrain it well!

#org @gave
= text after recieve magmar
__________________
I laugh looking at this.

But sometimes I want to come back to it...