Editman
Pokemon Collector
- 346
- Posts
- 16
- Years
- Seen Mar 30, 2014
You have a lot of misplaced pointers and have input some incorrect/ unnecessary commands. Below should be a fully functioning script once you change/ delete some of the commands and their values.
Red = I have changed it/ you have to edit it depending on what you want. Blue = Delete it. Messages after '//' are my specific comments on what you should do.
Spoiler:#dynamic 0x800000
#org @start
lockall
faceplayer
checkflag 0x824
= if 0x1 goto @end // Don't put an equal sign in front of the 'if' command
msgbox @002 0x6 // Your '@002' msgbox says the exact same thing as your '@before' pointer which going to be said anyway. It is best to delete it for this reason
trainerbattle 0x1 0x3BCD58 0x0 @before @after @later // You need to add in an actual trainer number which you can find in Advance Trainer (Numbers range from 0x01 to 0xFF)
// Also, since you're using a 0x1 type trainerbattle (Script continues once the battle is over) you need to add another pointer after the @before and @after pointers
msgbox @001 0x6 // You don't have a '@beaten' pointer but your '@001' was unused and seemed to fit
releaseall // You need this to counteract the 'lockall' command
end
#org @before
= Hm. My name is Zane; but you can call me Z.\nNo more talking, let's begin.
#org @after
= Wow, I didn't expect to be defeated.
#org @later
msgbox @003 0x6
fanfare 0x13E
msgbox @004 0x4
waitfanfare
closeonkeypress
msgbox @005 0x6
??? // Your script isn't giving the player anything, despite what '@005' says
setflag 0x824
releaseall
end
#org @done
msgbox @001 0x6
release
end
#org @001
= Your next gym battle won't be so easy.\nWith that said, good luck.
#org @002
= My name is Zane, but you can call me Z/n No more talking,/n let's begin. // Explained above
#org @003
= You got the Marshbadge
#org @004
= [Player] recieved Marshbadge
#org @005
= Take this too!
Try not to rush while making scripts and make sure that you study the structure of scripts already in the game. Alot of the mistakes in your script were quite simple and could be dealt with easily if you slowed down and took the time to comb through it :)
Well this is my first, I just so happened to have been looking at Sabrina's scrip when i accidentally deleted it. That's what made me want to put a new trainer in that spot. So what do I do, when i finish it?