You can use the min function.

DEFINE Skill1,health;

player.health = min(100,player.health + 25);


Always learn from history, to be sure you make the same mistakes again...