SetMyHealth: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

6 September 2024

  • curprev 04:2704:27, 6 September 2024Habi talk contribs 891 bytes +891 Created page with "{{Welcome| desc=This function sets the npc's health to the specified value. If the health is set to 0, the npc will commit suicide.| params=<syntaxhighlight lang="lua"> (newHealth)</syntaxhighlight> <poem>::newHealth : An integer value representing the new health level to set.</poem>| example=<source lang="lua"> The following code possibly decrease npc's health by 5 when 'a player goes near it and says "boo" '. The npc also sends chat 'poor me' after decreasing health. f..."