You are viewing an old version of this page. Return to the latest version.
Version of 21:50, 28 August 2013 by I need to Update My Profile
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'' ...") |
|||
| (3 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | = | + | {{LUAFunction |
| − | + | |Name = AddWard | |
| + | |Description = Adds a ward with the given amount | ||
| + | |Param1 = in32 | ||
| + | |Param1Desc = is the amount of the ward | ||
| + | |OptionalParam1 = bool | ||
| + | |OptionalParam1Desc = is if we want to keep the spell active or remove it when the ward is depleted | ||
| + | |OptionalParam2 = int8 | ||
| + | |OptionalParam2Desc = is the type of ward | ||
| + | |OptionalParam3 = int8 | ||
| + | |OptionalParam3Desc = is the damage type to absorb if ward type is magical | ||
| + | |Example = | ||
| + | <pre> | ||
| + | function cast(Caster, Target) | ||
| + | AddWard(25) | ||
| + | end | ||
| + | </pre> | ||
| + | |ExampleDesc = 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 | |
| − | |||
| + | === Ward Type === | ||
| − | + | 0 - all | |
| − | |||
| − | |||
| − | + | 1 - physical | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | 2 - magical | |
| − | + | damage type is the magical damage to absorb | |
| − | + | }} | |
Latest revision as of 12:07, 30 January 2021
LUA:AllFunctions - AddWard
Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker
Adds a ward with the given amount
Syntax
AddWard(param1, [opt param1], [opt param2], [opt param3])
Parameters
- Required - param1 (in32)
- param1 is the amount of the ward
- Optional - opt param1 (bool), opt param2 (int8), opt param3 (int8)
- opt param1 is if we want to keep the spell active or remove it when the ward is depleted
- opt param2 is the type of ward
- opt param3 is the damage type to absorb if ward type is magical
Example
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
Ward Type
0 - all
1 - physical
2 - magical
damage type is the magical damage to absorb