So simple.

writing health = 5 to script will set the health to 5 when it runs.

writing health=health-2 will remove +2 from health. If health is 5 before, its now 3.

Example: Collision with obj_monster:

health=health-2; //Remove +2 because we collide with the monster

action_message("You collided with the monster!");

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.