Skip to content

Metatable:Combat

Stefan A. Brannfjell edited this page Dec 19, 2017 · 7 revisions

No description available at the moment.

Available methods:

execute(creature, variant)
setArea(area)
setCallback(key, function)
setCondition(condition)
setFormula(type, mina, minb, maxa, maxb)
setOrigin(origin)
setParameter(key, value)


execute(creature, variant)

Description: N/A
Parameters:

  • creature - No description
  • variant - No description
Returns: N/A
Example:
local combat = Combat(...)
combat:execute(some_userdata, Variant(0))

Added in version: 1.0


setArea(area)

Description: N/A
Parameters:

  • area - No description
Returns: N/A
Example:
local combat = Combat(...)
combat:setArea(unknown)

Added in version: 1.0


setCallback(key, function)

Description: N/A
Parameters:

  • key - No description
  • function - No description
Returns: N/A
Example:
local combat = Combat(...)
combat:setCallback(CALLBACK_PARAM_TARGETCREATURE, function_name)

Added in version: 1.0


setCondition(condition)

Description: N/A
Parameters:

  • condition - No description
Returns: N/A
Example:
local combat = Combat(...)
combat:setCondition(some_userdata)

Added in version: 1.0


setFormula(type, mina, minb, maxa, maxb)

Description: N/A
Parameters:

  • type - No description
  • mina - No description
  • minb - No description
  • maxa - No description
  • maxb - No description
Returns: N/A
Example:
local combat = Combat(...)
combat:setFormula(COMBAT_FORMULA_LEVELMAGIC, 0, 0, 1, 1)

Added in version: 1.0


setOrigin(origin)

Description: N/A
Parameters:

  • origin - No description
Returns: N/A
Example:
local combat = Combat(...)
combat:setOrigin(ORIGIN_MELEE)

Added in version: 1.0


setParameter(key, value)

Description: N/A
Parameters:

  • key - No description
  • value - No description
Returns: N/A
Example:
local combat = Combat(...)
combat:setParameter(COMBAT_PARAM_BLOCKSHIELD, true)

Added in version: 1.0

Clone this wiki locally