View Single Post
  #8675    
Old August 13th, 2013 (06:01 AM). Edited August 13th, 2013 by karatekid552.
karatekid552's Avatar
karatekid552 karatekid552 is offline
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Posts: 1,767
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote originally posted by jsziede:
Yeah, if the trainer has been defeated, then the flag will be set. You don't need to check a variable, just do if 0x1 goto.
If you want to do a script with the actual trainerbattle in it, then this is what you want:
Code:
trainerbattle 0x3 0xYYY 0x0 @intro @defeat
Iirc, trainerbattle 0x3 allows execution after the battle, even if you lose.
NO!

Sorry bro, but this is completely wrong. Trainerflags are cleared when you win, and trainerbattle 0x3 doesn't require a pounter to continue the script, however the wcript will NOT continue if you lose. The only trainerbattle that will continue is 0x9. However that is the tutorial battle which has all sprts of messaged which pop up, though woth a alittle work, they can be removed.

Quote originally posted by Mauri:
So it should be like this:

Code:
checktrainerflag 0x<value>
compare LASTRESULT 0x0
if 0x1 goto @Win
Yes, that is correct, for checking if you won of course.
__________________

Paired with Simba