what does the command "compare" do? and what does last result do and what do they mean?
also what does it mean when you have compare 0x800D?
The compare command is used to compare a variable to a number, and then produces a result that is output to the variable LASTRESULT (0x800D)
And checking variable 0x800D (also known as LASTRESULT) means you are checking the last result of an option or compare.
You can use the compare command, with LASTRESULT, or other variables, to determine a TON of things, like whether or not a player said YES to a YES/NO script, or if the player has less than a certain number of pokemon.
Since you're asking these kinds of questions, I'm assuming you're new to scripting.
I advise, if you haven't already, to get a hold of XSE.
When you get XSE, extract it all, run XSE, and press the F2 Key.
This will open up a comprehensive guide to XSE, complete with everything you'll need to get started learning, and eventually, teaching yourself everything from the most basic scripts to the advanced scripts, like dynamic story-events.
If you do decide to get into it, I've got a few words of advice.
Keep at it
Don't give up
but most importantly
Have FUN!
If you've got any more questions, post away.