HealthPoint

From Moondust Wiki
Jump to navigation Jump to search
This is the archived page of the old LunaLua documentation
The rest of LunaLua related articles in this wiki contain a lot of outdated documentation preserved for historical purposes and may be used with legacy versions of the LunaLua.
Please visit the SMBX2 Documentation Page to access the latest documentation for the LunaLua scripting system of the SMBX2 Project.
Adding LunaLua contents into this Wiki is not advised.

Warning: DEPRECATED Framework! NEVER USE THIS!!!!!

HealthPoint is an API for LunaLua that lets users give custom health and damage values to NPCs that are usually stuck as one hit kills.

Download

Functions

HealthPoint.setNPCHealth(id, healthamount)
HealthPoint.setNPCDamage(id, damagetype, damageamount)
HealthPoint.setGlobalDamage(damagetype, damageamount)
HealthPoint.makeNPCInvincible(id)
HealthPoint.makeNPCNormal(id)


Damage types
1 = jump
2 = spinjump
3 = fireball
4 = hammer
5 = shell
6 = tail
7 = link
8 = thrown
9 = boomerang
10 = peachbomb
11 = swordbeam
12 = linkfire
13 = iceblock
14 = yoshifire
15 = yoshiice