User Tools

Site Tools


heal_entity

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
heal_entity [2017/07/03 13:13] justinheal_entity [2017/07/03 14:39] justin
Line 2: Line 2:
 ---- ----
  
-Restores the specified amount of health to an entity.+Restores the specified amount of health to an entity (while not exceeding the maximum health value).
  
 <code python> <code python>
Line 11: Line 11:
 |entity|Entity that will be healed.|[[Entity]]|Yes| |entity|Entity that will be healed.|[[Entity]]|Yes|
 |heal_amount|Amount of health to restore.|[[Decimal]]|Yes| |heal_amount|Amount of health to restore.|[[Decimal]]|Yes|
- 
-<WRAP center round info 100%> 
-You can use the related [[Damage Entity]] function to restore health to an entity that has been previously damaged. 
-</WRAP> 
  
 ====Example:==== ====Example:====
Line 20: Line 16:
 heal_entity(player, 5) heal_entity(player, 5)
 </code> </code>
-//Results:// The player'health is reduced by 2+//Results:// Five health points are restored to the player.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Damage Entity** function to inflict damage upon the player character as they step onto hazardous tiles or open trapped chests.+Use the **Heal Entity** function to restore health to the player when a potion is used or when the player steps into a pool of water with healing capabilities.
 </WRAP> </WRAP>
  
heal_entity.txt · Last modified: 2021/04/21 18:31 by justin