Difference between revisions of "LUA:SetWis"

(Created page with "= LUA Functions: SetWis() = Modifies the wisdom of the given spawn ==== Syntax ==== SetWis(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Spawn), ''param2'' (s...")
 
(No difference)

Latest revision as of 13:38, 12 September 2013

LUA Functions: SetWis()

Modifies the wisdom of the given spawn


Syntax

SetWis(param1, param2)


Parameters

Required - param1 (Spawn), param2 (sint32)
param1 is the spawn we want to modify
param2 is the amount we want to modify by


Usage

function hailed(NPC, Spawn)
    SetWis(Spawn, 15)
end

When this NPC is hailed the players power will be increased by 15