User Tools

Site Tools


revive_character

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
revive_character [2020/02/04 19:39] justinrevive_character [2021/04/21 18:47] (current) justin
Line 5: Line 5:
  
 ====Signature:==== ====Signature:====
-<code bauxite>+<code python>
 revive_character(character, heal_amount) revive_character(character, heal_amount)
 </code> </code>
Line 11: Line 11:
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
 |character|Character that will be revived.|[[Entity]]|Yes| |character|Character that will be revived.|[[Entity]]|Yes|
-|heal_amount|Amount of health to restore after being revived.|[[Decimal]]|Yes|+|heal_amount|Amount of health to restore after being revived.|[[Number]]|Yes|
  
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-revive_character(player, player.stat["max_hp"] / 2)+revive_character(player, player.stat["max_hp"] / 2);
 </code> </code>
 //Results:// The player is brought back to life with half of their maximum health. //Results:// The player is brought back to life with half of their maximum health.
revive_character.txt · Last modified: 2021/04/21 18:47 by justin