You are viewing an old version of this page. Return to the latest version.
Version of 23:16, 12 December 2013 by I need to Update My Profile
Difference between revisions of "LUA:Resurrect"
(Created page with "= LUA Functions: Resurrect() = Resurrects a dead player. ==== Syntax ==== Resurrect(param1, param2, param3, param4, param5, param6, param7) [float] hp_perc, [float] power_perc,...") |
(→Syntax) |
||
| Line 4: | Line 4: | ||
==== Syntax ==== | ==== Syntax ==== | ||
| − | Resurrect(param1, param2, param3, param4, param5, param6, param7) | + | Resurrect(param1, param2, param3, param4, param5, param6, param7) |
| − | |||
==== Parameters ==== | ==== Parameters ==== | ||
Latest revision as of 23:17, 12 December 2013
LUA Functions: Resurrect()
Resurrects a dead player.
Syntax
Resurrect(param1, param2, param3, param4, param5, param6, param7)
Parameters
- Optional - param1 (float), param2 (float), param3 (int8), param4 (Spawn), "heal_name" (string), crit_mod (int8), no_calcs [int8[
- param1 percentage of max hp to heal the player
- param2 percentage of max power to give the player
- param3 set as 1 to send the choice window
- param4 this overrides the spell's targets and only uses this spawn
- param5 this is the name of the actual heal effect for the heal packet, if set
- param6 set this to 1 to force crit, 2 to disable
- param7 disables extra amount checks on the heals (potency, ability_mod, crit, ect)
Usage
function cast(Caster, Target)
Resurrect(65, 50, 1)
end
When this spell is cast it will offer a resurrection to all dead targets, giving them 65% max health and 50% max power if accepted.