476 B
476 B
Function: SetIntBase(spawn, value)
Description: Sets the Spawn's base intelligence to the specified value.
Parameters:
spawn
(Spawn) - Spawn object representingspawn
.value
(int32) - Integer valuevalue
.
Returns: None.
Example:
-- From SpawnScripts/Generic/CombatModule.lua
function attributes(NPC, Spawn)
-- Calculate attributes
if level <= 4 then
baseStat = 19 else
baseStat = level + 15
end