Search the Community
Showing results for tags 'transform'.
Found 3 results
-- Panic mode local panicmode = false local function panicfn (inst) if panicmode == false and inst.components.health.currenthealth == .5 then --Transformation local x, y, z = inst.Transform:GetWorldPosition() local fx = SpawnPrefab("maxwell smoke") SpawnPrefab("statue_transition").Transform:SetPosition(inst:GetPosition():Get()) inst.AnimState:SetBuild("aki") --Stat changes inst.components.combat.damagemultiplier = 2.5 inst.components.locomotor.walkspeed = 5 inst.components.locomotor.runspeed = 7 inst.components.talker:Say("WAIT STOP!") if inst.components.healthtrigger ~= nil then end panicmode = true end if panicmode == true and inst.components.health.currenthealth == 1 then local x, y, z = inst.Transform:GetWorldPosition() local fx = SpawnPrefab("maxwell smoke") SpawnPrefab("statue_transition").Transform:SetPosition(inst:GetPosition():Get()) inst.AnimState:SetBuild("aki_panic") inst.components.combat.damagemultiplier = 1 inst.components.locomotor.walkspeed = 3 inst.components.locomotor.runspeed = 5 if inst.components.healthtrigger ~= nil then end panicmode = false end if inst.components.healthtrigger ~= nil then end end inst.components.healthtrigger:AddTrigger(panicfn) When I apply this to my character It keeps on crashing, I really need help
Hey there! long time no modding- I need some help, so I'm currently porting my regular don't starve character into dst but i've run across one big issue. I have coded my character correctly and everything was ready to go, till I stumbled upon an issue; when you die after transforming the characters ghost will not appear. upon searching around I found some similar issues but I cannot see how to fix this occurrence on my own. I would be very ecstatic if someone could help me finish this off and tell me why this is happening in the first place. I understand that the files are critically mismatching but why? i've looked at wolfgang and I can't seem to grasp how his works and how I can fix mine with his coding. i've attached a screenshot of the issue and the prefab.lua that I have been working on. rena.lua
'I hate the outdoors so much.' Perks: • Sanity regenerates quickly • Transforms at low sanity • Sanity is slightly faster with more company • Max Health - 150 • Max Hunger - 200 • Max Sanity - 80 Trent - DST was made using the Extended Character Template by Dleowolf. This is my first mod so if there's any glitches or bugs put it here or http://forums.kleientertainment.com/files/file/1090-trent-dst/ here