Irish Witch
Office Jenny
- 147
- Posts
- 18
- Years
- Australia
- Seen Aug 13, 2007
Zel said:Well, once again I'm getting into pokescript when I don't really use it hehe... XD
But, it seems to have the same problem with the givepokemon command. All of you, if you want to use the givepokemon command, you must use it as your last command (of course you need "end" after it), else it will truncate your script, in your specific case, it will not reproduce the message "you received a Zigzagoon", and will not set the flag, thus making the event keep repeating as you keep talking to the person.
So, as a suggestion for Irish Witch, maybe you should try to, when you are compiling, if you find a givepokemon command, put it in the bottom of the script, or something, so they can put it anywhere, and the program makes the work. ;)
Actually I just made an important discovery. I knew it didn't have to be last because of this post I made back here: A Professional Give Pokemon Script this is a fully tested script that have used in my own hack that not only gives you a pokemon but has a clause in it so the script wont crash if you already have a full party and also lets you rename the pokemon.....
so I just tried putting a bunch of #raw 0 after the givepokemon command and your script worked.
Spoiler:
#org $Startscript
lock
faceplayer
checkflag 0x200
if 1 goto $GotIt
message $AskMe
$AskMe 1 = Would you like a free pokemon?
boxset 5
compare LASTRESULT 1
if 1 goto $Giveit
message $Forget
$Forget 1 = Oh.. Ok, forget it!
boxset 6
release
end
#org $Gotit
message $Howis
$Howis 1 = So, How's the pokemon?
boxset 6
release
end
#org $Giveit
givepokemon 288 5 0
#raw 0 0 0 0 0 0 0 0 0 0 0 0
message $Whatisit
$Whatisit 1 = You Recieved a zigzagoon!
boxset 6
release
setflag 0x200
end
lock
faceplayer
checkflag 0x200
if 1 goto $GotIt
message $AskMe
$AskMe 1 = Would you like a free pokemon?
boxset 5
compare LASTRESULT 1
if 1 goto $Giveit
message $Forget
$Forget 1 = Oh.. Ok, forget it!
boxset 6
release
end
#org $Gotit
message $Howis
$Howis 1 = So, How's the pokemon?
boxset 6
release
end
#org $Giveit
givepokemon 288 5 0
#raw 0 0 0 0 0 0 0 0 0 0 0 0
message $Whatisit
$Whatisit 1 = You Recieved a zigzagoon!
boxset 6
release
setflag 0x200
end
Givepokemon must just take too long to process so stuff written after that sometimes gets ignored.
I also fixed the following;
$Whatisit 1= You Recieved a zigzagoon!
- Needs a space between 1 and =
givepokemon 0x288 5 0
- 288 is zigzagoon, not 0x288
When I compile with these changes your script worked fine.
Next build will have the #raw 's built into the givepokemon command, keep and eye out for the update.
Last edited: