Difference between revisions of "LUA:GetEncounterSize"
(Created page with "= LUA Functions: AddHate() = Adds hate to ''param2'' from ''param1'' ==== Syntax ==== AddHate(param1, param2, param3) ==== Parameters ==== ; Required - ''param1'' (Spawn), ''...") |
|||
| Line 1: | Line 1: | ||
| − | = LUA Functions: | + | = LUA Functions: GetEncounterSize() = |
| − | + | Gets the number of spawns in the encounter for the given spawn | |
==== Syntax ==== | ==== Syntax ==== | ||
| − | + | GetEncounterSize(param1) | |
==== Parameters ==== | ==== Parameters ==== | ||
| − | ; Required - ''param1'' (Spawn | + | ; Required - ''param1'' (Spawn) |
| − | : ''param1'' is the spawn | + | : ''param1'' is the spawn who's encounter we want to check |
| − | |||
| − | |||
==== Usage ==== | ==== Usage ==== | ||
<pre> | <pre> | ||
| − | function | + | function hailed(NPC, Spawn) |
| − | + | Say(NPC, "There are " .. GetEncounterSize(NPC) .. " in my encounter list") | |
| − | |||
end | end | ||
</pre> | </pre> | ||
| − | This | + | This will make the hailed spawn respond with how many spawns are in its encounter list |
== Notes == | == Notes == | ||
| − | + | An encounter is a list of every one who will get credit for killing the spawn | |
Latest revision as of 20:46, 28 August 2013
LUA Functions: GetEncounterSize()
Gets the number of spawns in the encounter for the given spawn
Syntax
GetEncounterSize(param1)
Parameters
- Required - param1 (Spawn)
- param1 is the spawn who's encounter we want to check
Usage
function hailed(NPC, Spawn)
Say(NPC, "There are " .. GetEncounterSize(NPC) .. " in my encounter list")
end
This will make the hailed spawn respond with how many spawns are in its encounter list
Notes
An encounter is a list of every one who will get credit for killing the spawn