No categories assigned

LUA:Resurrect

Revision as of 23:16, 12 December 2013 by Thefoof (talk | contribs) (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,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: Resurrect()

Resurrects a dead player.


Syntax

Resurrect(param1, param2, param3, param4, param5, param6, param7) [float] hp_perc, [float] power_perc, [int8] send_window, [Spawn*] target_override, [string] "heal_name", [int8] crit_mod, [int8] no_calcs)


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.