How to award achievements?

Hi there fellow forum members,

The title is self-explanatory really: I would like to know how to award achievements during a game.

In my startup file, I have my achievements listed. For example:

*achievement battlewon visible 25 Win your first battle!
  You managed to win your first battle.

So these achievements are found in the achievements screen but how are they actually awarded during the game?

Thanks in advance.


When you reach the situation you want to award the achievement, you put

*achieve battlewon

And that’s it.