You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "LUA:AddWard"
(Created page with "= LUA Functions: HasGroup() = Checks to see if the given spawn has a group ==== Syntax ==== HasGroup(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''param1'' ...") |
|||
| Line 1: | Line 1: | ||
| − | = LUA Functions: | + | = LUA Functions: AddWard() = |
| − | + | Adds a ward with the given amount | |
==== Syntax ==== | ==== Syntax ==== | ||
| − | + | AddWard(param1) | |
==== Parameters ==== | ==== Parameters ==== | ||
| − | ; Required - ''param1'' ( | + | ; Required - ''param1'' (int32) |
| − | : ''param1'' is the | + | : ''param1'' is the amount of the ward |
==== Usage ==== | ==== Usage ==== | ||
<pre> | <pre> | ||
| − | function | + | function cast(Caster, Target) |
| − | + | AddWard(25) | |
| − | |||
| − | |||
| − | |||
| − | |||
end | end | ||
</pre> | </pre> | ||
| − | + | Adds a ward that will absorb 25 damage | |
== Notes == | == Notes == | ||
| − | + | Can only be used in a spell script | |
| + | |||
| + | The ward will be applied to the targets of the spell that uses this spell script | ||
Revision as of 21:54, 28 August 2013
LUA Functions: AddWard()
Adds a ward with the given amount
Syntax
AddWard(param1)
Parameters
- Required - param1 (int32)
- param1 is the amount of the ward
Usage
function cast(Caster, Target)
AddWard(25)
end
Adds a ward that will absorb 25 damage
Notes
Can only be used in a spell script
The ward will be applied to the targets of the spell that uses this spell script