karatekid552
What happens if I push it?....
- 1,771
- Posts
- 12
- Years
- Do you really want to know? Really?
- Seen Jan 12, 2015
I guess I'll try asking this again because I honestly don't know why this isn't working...
Game: Emerald
I need some help. I'm utterly confused at the moment... I have a script where you can battle somebody 3 different times, each time having stronger Pokémon. He should give you 3 different items each time you beat him, until he is rebattle-able. He's suppose to give you Leftovers the first time you beat him, PP Max the second, and a Master ball the third. When rebattle-able, he should give a PP Up each time you beat him. As of right now, he only gives the Leftovers and Master ball. No PP Max and no PP Up. What is going on with this script?
Code:#dynamic 0x6C4340 #org @start checkflag 0x850 if 0x1 goto @start1 trainerbattle 0x1 0xa1 0x0 @before @after @later end #org @start1 checkflag 0x851 if 0x1 goto @start2 trainerbattle 0x1 0x29b 0x0 @before1 @after1 @later1 end #org @start2 settrainerflag 0x29d trainerbattle 0x1 0x29d 0x0 @before2 @after2 @later2 end #org @later setflag 0x850 msgbox @msg1 0x2 giveitem 0xc8 0x1 0x0 release end #org @later1 setflag 0x851 msgbox @msg2 0x2 giveitem 0x47 0x1 0x0 release end #org @later2 checkflag 0x852 if 0x1 goto @beaten setflag 0x852 msgbox @msg3 0x2 giveitem 0x1 0x1 0x0 release end #org @beaten msgbox @msg4 0x2 giveitem 0x45 0x1 0x0 release end #org @before = I am legend. #org @after = I... am...\pI'm speechless... #org @msg1 = You are truly gifted...\lBut next time, you will fail.\pTake this, and remember me. #org @before1 = This time, you will not be so\nlucky. #org @after1 = How is this possible!? #org @msg2 = I promise...\nI will defeat you. #org @before2 = This time, you will lose. #org @after2 = Again, I am beaten... #org @msg3 = You are a King among peasants. #org @msg4 = For the umpteenth time, I have\nfailed.\pClearly, you are the greatest.\pSo long as you defeat me, you\nmay have this.
It took me a bit to figure out. You have it in the wrong oder. The "checkflag 0x852" and "if 0x1 goto @beaten" need to be the first lines of your script. @Later2 will only run directly after the trainerbattle, not the next time you talk to him.