Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
now all i need is someone to make heat man and my life will be complete QwQ
the 12 here is the duration
end
end
inst.SoundEmitter:PlaySound("dontstarve/creatures/hound/icehound_explo", "explosion")
-- set cooldown timer
inst:DoTaskInTime(--[[Cooldown]] freeze_cooldownamount, function() inst.freeze_cooldown = false inst.SoundEmitter:PlaySound("dontstarve/common/butterfly_trap") end )
elseif inst.components.hunger.current<freeze_hungercost then
inst.components.talker:Say("I'm too hungry", 1, true)
elseif inst.components.sanity.current<freeze_sanitycost then
inst.components.talker:Say("I'm too exhausted", 1, true)
end
end
AddModRPCHandler("Char_name", "freezetime", FreezeTime)
freeze_sanitycost
inst.components.sanity:DoDelta(-freeze_sanitycost)
-- (activate)
-- (freeze nearby targets)
local x,y,z = inst.Transform:GetWorldPosition()
local ents = TheSim:FindEntities(x, y, z, 16, {"freezable"}, NO_TAGS) --the 16 here is the range
for i,v in pairs(ents) do
if v.components.freezable then
v.components.freezable:AddColdness(4)
-- (do task in 7 seconds, unfreeze targets)
v:DoTaskInTime(12, function(inst) v.components.freezable:Unfreeze() end ) --
-- [ Freeze Spell ]
local freeze_hungercost = 0
local freeze_sanitycost = 20
local freeze_cooldownamount = 20 --how long between attacks
-- freeze time[Z]
local FreezeTime = function(inst)
local NO_TAGS = {"FX", "NOCLICK","DECOR","INLIMBO", "player"} -- "playerghost"
-- conditions (if player alive, and can afford the cost, and cooldown is ready)
if inst.components.health and inst.components.health.currenthealth>0 and not inst:HasTag("playerghost")
and inst.components.hunger.current>=freeze_hungercost and inst.components.sanity.current>=freeze_sanitycost
and not inst.freeze_cooldown then
-- actions
inst.freeze_cooldown = true
-- (cost)
inst.components.hunger.current = inst.components.hunger.current - freeze_hungercost
-- inst.components.sanity.current = inst.components.sanity.current -
In modmain