julz1981 Posted November 27, 2013 Share Posted November 27, 2013 (edited) Hi, i would like the cane to give a very slight sanity boost, like 1/min or wathever the smallest is! Because who can say cane without dapper? so, how would i do this? i searched in the tuning.lua and didnt find anything "mind you i completely suck at moding" Edited November 27, 2013 by julz1981 Link to comment https://forums.kleientertainment.com/forums/topic/30020-how-to-give-dapperness-to-the-walking-cane/ Share on other sites More sharing options...
_Q_ Posted November 27, 2013 Share Posted November 27, 2013 You just need to add: inst:AddComponent("dapperness") inst.components.dapperness.dapperness = TUNING.DAPPERNESS_SMALLin fn function in cane.lua file, file is in prefabs folder. Link to comment https://forums.kleientertainment.com/forums/topic/30020-how-to-give-dapperness-to-the-walking-cane/#findComment-378925 Share on other sites More sharing options...
Rosten Posted November 27, 2013 Share Posted November 27, 2013 Also, at the end there are a couple of things you could put instead of small TinySmallMedThere may be a "Large" but im not sure. Link to comment https://forums.kleientertainment.com/forums/topic/30020-how-to-give-dapperness-to-the-walking-cane/#findComment-378944 Share on other sites More sharing options...
NikMik Posted November 27, 2013 Share Posted November 27, 2013 Also, at the end there are a couple of things you could put instead of small TinySmallMedThere may be a "Large" but im not sure.Yeah, there's a large. And I think there's a Huge, as well. Link to comment https://forums.kleientertainment.com/forums/topic/30020-how-to-give-dapperness-to-the-walking-cane/#findComment-378971 Share on other sites More sharing options...
julz1981 Posted November 27, 2013 Author Share Posted November 27, 2013 (edited) great thank you, i will probably try tiny first XD edit: So, just to be sure, i should add it somewhere in there?local function fn(Sim) local inst = CreateEntity() local trans = inst.entity:AddTransform() local anim = inst.entity:AddAnimState() inst.entity:AddSoundEmitter() MakeInventoryPhysics(inst) anim:SetBank("cane") anim:SetBuild("cane") anim:PlayAnimation("idle") inst:AddComponent("weapon") inst.components.weapon:SetDamage(TUNING.CANE_DAMAGE) inst:AddComponent("inspectable") inst:AddComponent("inventoryitem") inst:AddComponent("equippable") inst.components.equippable:SetOnEquip( onequip ) inst.components.equippable:SetOnUnequip( onunequip ) inst.components.equippable.walkspeedmult = TUNING.CANE_SPEED_MUL Edited November 27, 2013 by julz1981 Link to comment https://forums.kleientertainment.com/forums/topic/30020-how-to-give-dapperness-to-the-walking-cane/#findComment-379098 Share on other sites More sharing options...
julz1981 Posted November 27, 2013 Author Share Posted November 27, 2013 I added "tiny" and it works great, thx. Link to comment https://forums.kleientertainment.com/forums/topic/30020-how-to-give-dapperness-to-the-walking-cane/#findComment-379119 Share on other sites More sharing options...
Frankenmoo Posted December 6, 2013 Share Posted December 6, 2013 Hi everyone i'm working on a similar mod but instead of sanity its health, i cant seem to find the equivalent of dapperness for health. will i have to fiddle/experiment with the in-game ticks? or is there an equivalent to dapperness? Link to comment https://forums.kleientertainment.com/forums/topic/30020-how-to-give-dapperness-to-the-walking-cane/#findComment-385108 Share on other sites More sharing options...
julz1981 Posted December 6, 2013 Author Share Posted December 6, 2013 Hi everyone i'm working on a similar mod but instead of sanity its health, i cant seem to find the equivalent of dapperness for health. will i have to fiddle/experiment with the in-game ticks? or is there an equivalent to dapperness?i personally dont know, but you should look in the life-giving amulet scripts, but why would you make a cane heal you? Link to comment https://forums.kleientertainment.com/forums/topic/30020-how-to-give-dapperness-to-the-walking-cane/#findComment-385109 Share on other sites More sharing options...
Frankenmoo Posted December 6, 2013 Share Posted December 6, 2013 i personally dont know, but you should look in the life-giving amulet scripts, but why would you make a cane heal you? Im not making a healing cane, i want it so that when my hunger stat is at full my health bar starts to slowly fill up sort of like if (hunger ==100){ heals some hp } that's the idea at least i have some basic knowledge of LUA Link to comment https://forums.kleientertainment.com/forums/topic/30020-how-to-give-dapperness-to-the-walking-cane/#findComment-385137 Share on other sites More sharing options...
mikey99222 Posted February 4, 2015 Share Posted February 4, 2015 (edited) Yeah, there's a large. And I think there's a Huge, as well. and there is a crazyness_med etc inst:AddComponent("dapperness") inst.components.dapperness.dapperness = TUNING.CRAZINESS_SMALL found in armor_sanity.lua Edited February 4, 2015 by mikey99222 Link to comment https://forums.kleientertainment.com/forums/topic/30020-how-to-give-dapperness-to-the-walking-cane/#findComment-609748 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now