You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "LUA:ProcDamage"
| Line 7: | Line 7: | ||
==== Parameters ==== | ==== Parameters ==== | ||
| − | ; Required - ''param1'' (Spawn), ''param2'' (Spawn), ''param3'' ( | + | ; Required - ''param1'' (Spawn), ''param2'' (Spawn), ''param3'' (string), ''param4'' (int8), ''param5'' (int32) |
: ''param1'' is the caster | : ''param1'' is the caster | ||
: ''param2'' is the target | : ''param2'' is the target | ||
| − | : ''param3'' is the | + | : ''param3'' is the proc name |
| − | : ''param4'' is the | + | : ''param4'' is the damage type |
: ''param5'' is the proc minimum damage | : ''param5'' is the proc minimum damage | ||
; Optional - ''param6'' (int32), ''param7'' (string), ''param8'' (string) | ; Optional - ''param6'' (int32), ''param7'' (string), ''param8'' (string) | ||
Latest revision as of 17:37, 6 December 2013
LUA Functions: ProcDamage()
Does spell damage to a given spawn
Syntax
ProcDamage(param1, param2, param3, param4, param5, [param6], [param7], [param8])
Parameters
- Required - param1 (Spawn), param2 (Spawn), param3 (string), param4 (int8), param5 (int32)
- param1 is the caster
- param2 is the target
- param3 is the proc name
- param4 is the damage type
- param5 is the proc minimum damage
- Optional - param6 (int32), param7 (string), param8 (string)
- param6 is the proc maximum damage
- param7 is the success message
- param8 is the effect message
Usage
function cast(Caster, Target)
ProcDamage(Caster, Target, 7, "Glorious Strike", 40, 0, "You cast Glorious Strike on %t")
end
Will cast the "Glorious Strike" proc on the target which will do 40 damage