Skip to content

Metatable:Combat

Mark Samman edited this page Aug 31, 2014 · 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() ```Lua local combat = Combat() combat:execute(creature, variant) ``` > **Description:** N/A > **Parameters:** creature, variant > **Returns:** boolean > **Example:** ```Lua N/A ``` Added in version: 1.0
###### setArea() ```Lua local combat = Combat() combat:setArea(area) ``` > **Description:** N/A > **Parameters:** area > **Returns:** boolean (true) > **Example:** ```Lua N/A ``` Added in version: 1.0
###### setCallback() ```Lua local combat = Combat() combat:setCallback(key, function) ``` > **Description:** N/A > **Parameters:** key, function > **Returns:** boolean > **Example:** ```Lua N/A ``` Added in version: 1.0
###### setCondition() ```Lua local combat = Combat() combat:setCondition(condition) ``` > **Description:** N/A > **Parameters:** condition > **Returns:** boolean (true) > **Example:** ```Lua N/A ``` Added in version: 1.0
###### setFormula() ```Lua local combat = Combat() combat:setFormula(type, mina, minb, maxa, maxb) ``` > **Description:** N/A > **Parameters:** type, mina, minb, maxa, maxb > **Returns:** boolean (true) > **Example:** ```Lua N/A ``` Added in version: 1.0
###### setOrigin() ```Lua local combat = Combat() combat:setOrigin(origin) ``` > **Description:** N/A > **Parameters:** origin > **Returns:** boolean (true) > **Example:** ```Lua N/A ``` Added in version: 1.0
###### setParameter() ```Lua local combat = Combat() combat:setParameter(key, value) ``` > **Description:** N/A > **Parameters:** key, value > **Returns:** boolean (true if the value was set, false if there's no such combat key) > **Example:** ```Lua N/A ``` Added in version: 1.0
Clone this wiki locally