Difference between revisions of "Template:LSL Constants/Custom Damage Types"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 43: Line 43:




<!-- You #00–#99 — If you want to add a custom set of types, to avoid overlaps reserve a #00-#99 range block as creator, see my example above and copy the block down below -->
<!-- You #00–#99 — If you want to add a custom set of types, to avoid overlaps reserve a #00-#99 range block as creator, see my example above and copy the block down below and increment the range by 100 -->




Line 50: Line 50:


{{!}}}
{{!}}}
Custom damage types are in blocks of #00-#99 per Creator. You can reserve another block range if you filled one.
Custom damage types are in blocks of #00-#99 per Creator. You can reserve another block range if you filled one.


It is recommended to use simple words for the damage type and the description should describe the intent. Someone might want to use your damage type in their scripts or it could even be used in third party HUDs that may need to describe your damage to a reader. E.g. for DAMAGE_TYPE_CRUSHING from an object named "water" I could code a PvP HUD to tell the (user) was (crushed) by (water).
It is recommended to use simple words for the damage type and the description should describe the intent. Someone might want to use your damage type in their scripts or it could even be used in third party HUDs that may need to describe your damage to a reader. E.g. for DAMAGE_TYPE_CRUSHING from an object named "water" I could code a PvP Reporting HUD to tell the (user) was (crushed) by (water).
</div></div>
</div></div>

Revision as of 16:52, 22 June 2024

Flag Description Creator System
DAMAGE_TYPE_MEDICAL 100 Negative damage to heal a wound, damaged limb, first aid, etc. Intended for generic healing of biological nature. Positive damage would be medical malpractice Nexii Malthus Vertical Sim
DAMAGE_TYPE_REPAIR 101 Negative damage from repairing an object or something mechanical, welding torch or wrench on a vehicle/robot/mech, etc. Positive damage can be due to mistakes, low skill or sabotage. Intended for generic healing of non-biological nature (e.g. a mechanical tank or an electrical system). Nexii Malthus Vertical Sim
DAMAGE_TYPE_EXPLOSIVE 102 Damage caused by an explosive blast, like a grenade Nexii Malthus Vertical Sim
DAMAGE_TYPE_CRUSHING 103 Damage caused by crushing. Such as being crushed by water pressure Nexii Malthus Vertical Sim

Custom damage types are in blocks of #00-#99 per Creator. You can reserve another block range if you filled one.

It is recommended to use simple words for the damage type and the description should describe the intent. Someone might want to use your damage type in their scripts or it could even be used in third party HUDs that may need to describe your damage to a reader. E.g. for DAMAGE_TYPE_CRUSHING from an object named "water" I could code a PvP Reporting HUD to tell the (user) was (crushed) by (water).