Difference between revisions of "LUA:AddToWard"

 
Line 1: Line 1:
= LUA Functions: AddToWard() =
+
{{LUAFunction
Adds the given amount to the ward
+
|Name = AddToWard
 
+
|Description = Adds the given amount to the ward
==== Syntax ====
+
|Param1 = unt32
AddToWard(param1)
+
|Param1Desc = is the amount to add
 
+
|Example =
 
 
==== Parameters ====
 
; Required - ''param1'' (int32)
 
: ''param1'' is the amount to add
 
 
 
==== Usage ====
 
 
<pre>
 
<pre>
 
function tick(Caster, Target)
 
function tick(Caster, Target)
Line 16: Line 10:
 
end
 
end
 
</pre>
 
</pre>
 +
|ExampleDesc = This will add 5 more points of damage absorb to the ward every tick
 +
|Notes = Must be in a spell script
  
This will add 5 more points of damage absorb to the ward every tick
 
  
== Notes ==
+
This won't do anything if the spell script hasn't used AddWard at some point before the call to this function.
Must be in a spell script
 
  
This won't do anything if the spell script hasn't used AddWard at some point before the call to this function.
 
  
 
You can not go over the base amount given by the param in AddWard
 
You can not go over the base amount given by the param in AddWard
 +
}}

Latest revision as of 12:08, 30 January 2021


LUA:AllFunctions - AddToWard

Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker


Adds the given amount to the ward

Syntax

AddToWard(param1)

Parameters

Required - param1 (unt32)
param1 is the amount to add


Example

function tick(Caster, Target)
    AddToWard(5)
end

This will add 5 more points of damage absorb to the ward every tick

Notes

Must be in a spell script


This won't do anything if the spell script hasn't used AddWard at some point before the call to this function.


You can not go over the base amount given by the param in AddWard