A single equals sign means assigning a specific value to a variable, while a double equals sign is used for equality checks, usually placed after an if statement.
function mesF()
MessageBox...
StartCombat...
MessageBox...
Trigger...
end;
Trigger...
first message, then combat, and then the second message? Because right now, the first message pops up, then the second, and only then does the battle begin.