Difference between revisions of "Category:LSL Combat2"

From Second Life Wiki
Jump to navigation Jump to search
(Mention the beta grid regions available for testing)
(Flesh out the page a bit more, capturing a single sentence of each to provide an overview)
Line 7: Line 7:
High Level Feature
High Level Feature


Putting It All Together
Putting It All Togethe
 


----
----


There are two regions on the beta grid open and available for testing:
There are two regions on the beta grid open and available for testing:
Line 15: Line 17:
* [secondlife://Aditi/secondlife/Thermopylae/235/124/27 Thermopylae]
* [secondlife://Aditi/secondlife/Thermopylae/235/124/27 Thermopylae]
* [secondlife://Aditi/secondlife/Gallipoli/18/142/27 Gallipoli]
* [secondlife://Aditi/secondlife/Gallipoli/18/142/27 Gallipoli]


----
----


Additional changes:


[[llGetEnv]]: "allow_damage_adjust", "restrict_combat_log", "restore_health", "invulnerability_time", "damage_throttle", "health_regen_rate", "death_action"
Functions:
 
* [[llAdjustDamage]] — Modifies the amount of damage that will be applied by the current on_damage event after it has completed processing.
* [[llDamage]] — Delivers damage to tasks and agent in the same region.
* [[llDetectedDamage]] — Returns a list containing pending damage information.
* [[llDetectedRezzer]] — Returns a key that is the UUID of the object or avatar that rezzed the detected object number.
* [[llGetHealth]] — Returns the current health of an avatar or object in the region.
 
 
Events:
 
* [[on_damage]] — Triggered when damage has been inflicted on an avatar or task in the world but before damage has been applied or distributed.
* [[final_damage]] — Triggered after after all on_damage events in all scripts and attachments have processed and damage has been applied to the avatar or distributed to all seated avatars.
* [[on_death]] — Triggered on all attachments worn by an avatar when that avatar's health reaches 0.
 


[[llGetObjectDetails]]: [[OBJECT_HEALTH]], [[OBJECT_DAMAGE]], [[OBJECT_DAMAGE_TYPE]]
Additional:


[[llRezObjectWithParams]]: REZ_DAMAGE, REZ_DAMAGE_TYPE
* [[llGetEnv]]
** "allow_damage_adjust" — Are scripts allowed to adjust damage.
** "restrict_combat_log" — Are scripts allowed to write to the combat log.
** "restore_health" — Is health reset to 100% on death.
** "invulnerability_time" — Invulnerablitiy time applied after avatar death.
** "damage_throttle" — The maximum number of points of damage a single source may inflict on a target per second.
** "health_regen_rate" — The speed of health regeneration in hitpoints per second.
** "death_action" — Set the action to take when an avatar dies in the region.
* [[llGetObjectDetails]]
** [[OBJECT_HEALTH]] — Retrieves the health of an avatar or prim.
** [[OBJECT_DAMAGE]] — Retrieves the amount of damage a prim inflicts on collision.
** [[OBJECT_DAMAGE_TYPE]] — Retrieves the type of damage a prim inflicts on collision.
* [[llRezObjectWithParams]]
** [[REZ_DAMAGE]] — The amount of damage applied to an agent upon collision with this object.
** [[REZ_DAMAGE_TYPE]] — The damage type to apply when this prim collides with another object.

Revision as of 06:30, 11 May 2024

Linden Combat 2

Description

High Level Feature

Putting It All Togethe




There are two regions on the beta grid open and available for testing:




Functions:

  • llAdjustDamage — Modifies the amount of damage that will be applied by the current on_damage event after it has completed processing.
  • llDamage — Delivers damage to tasks and agent in the same region.
  • llDetectedDamage — Returns a list containing pending damage information.
  • llDetectedRezzer — Returns a key that is the UUID of the object or avatar that rezzed the detected object number.
  • llGetHealth — Returns the current health of an avatar or object in the region.


Events:

  • on_damage — Triggered when damage has been inflicted on an avatar or task in the world but before damage has been applied or distributed.
  • final_damage — Triggered after after all on_damage events in all scripts and attachments have processed and damage has been applied to the avatar or distributed to all seated avatars.
  • on_death — Triggered on all attachments worn by an avatar when that avatar's health reaches 0.


Additional:

  • llGetEnv
    • "allow_damage_adjust" — Are scripts allowed to adjust damage.
    • "restrict_combat_log" — Are scripts allowed to write to the combat log.
    • "restore_health" — Is health reset to 100% on death.
    • "invulnerability_time" — Invulnerablitiy time applied after avatar death.
    • "damage_throttle" — The maximum number of points of damage a single source may inflict on a target per second.
    • "health_regen_rate" — The speed of health regeneration in hitpoints per second.
    • "death_action" — Set the action to take when an avatar dies in the region.
  • llGetObjectDetails
    • OBJECT_HEALTH — Retrieves the health of an avatar or prim.
    • OBJECT_DAMAGE — Retrieves the amount of damage a prim inflicts on collision.
    • OBJECT_DAMAGE_TYPE — Retrieves the type of damage a prim inflicts on collision.
  • llRezObjectWithParams
    • REZ_DAMAGE — The amount of damage applied to an agent upon collision with this object.
    • REZ_DAMAGE_TYPE — The damage type to apply when this prim collides with another object.