Search the Community
Showing results for tags 'sleeping'.
Found 4 results
Hi everyone, I have been working on project that includes weapon which makes enemies fall asleep after hit. I had searched through game files and I haven't found any code lines to make my effect based on luck. I mean that I don't want this effect to occur everytime character hits with the weapon. So maybe you know method to cause sleep on attack every few hits. This is the code: ------sleep local function sleepattack(inst, owner, target) if not target:IsValid() then --target killed or removed in combat damage phase return end target.SoundEmitter:PlaySound("dontstarve/common/blackpowder_explo") if target.components.sleeper ~= nil then target.components.sleeper:AddSleepiness(100, 15, inst) elseif target.components.grogginess ~= nil then target.components.grogginess:AddGrogginess(100, 15) end end Thanks in advance and have a great day/night
So, here's my idea for this mod, (im working on it as you read ^_^) It will add two different swords to the game, which are pretty much polar opposites the first one, is known as Scary Sword* Recipe - 5 Nightmarefuel, 4 living logs, 1 purple amulet* Your damage goes up as your sanity goes down, but at a static rate, like this, Sanity > 100 then damage = 51* Sanity > 50 then damage = 60* Sanity < 50 then damage = 68* Next, we have the... Dreamy Sword* Recipe - ???* Your damage goes up as your sanity goes up, but instead of statically, dynamically! Basically, the formula is something like : PlayerSanity * 0.45 = damage 12% Completed X - Completed 0 - Working on Z - Need Help Y - Planned, But not working on atm. ----------------------------------- X - Dreamy sword coding 0 - Dreamy sword recipe 0 - Dreamy sword balancing Z - Dreamy Sword Art - Z0 - Scary sword coding 0 - Scary sword recipe Y - Scary sword balancing Z - Scary sword art
So, after mulling it over a bit, i couldn't really decide which of the three was the best, so i've come to you guys for some opinions ^_^ so, im going to list the pros and cons of each item (both from the wiki and my own observations) and let you guys decide which is the best - Note - Putting em all in spoilers because its a fairly big list Straw Roll - Fur Roll - Tent - So, what do you think? which of the three are superior?
When I was at work, thinking all day long about gameplay, this is what I came up with. The Tent now acts as a night phase skipping dimension that also restores your hunger level with Voodoo magics. Wrong concept and lets scrap that! ... Presenting The New Tent! Step 1 / Question 1 - How do we will make people want to use it more? Build stage / Answer : Add the ability to restore health and sanity. Step 2 / Question 2 - How balance it out, so the gameplay isn't SO easy? Build stage / Answer : Make the abilities to cap at sertain point like - restore Health @ 35% of characters BASE Health pool rather than the CURRENT Health pool ( Regarding to Meat Effigy penalty) and increase Sanity by maybe 20%. Step 3 / Question 3 - How to prevent exploiting the benefits of sleeping ? Build stage / Answer : Make the abilities to depend on how much time you have left to sleep. Example - When you are HALFWAY through the night phase and you want to restore some HP and sanity, you would only gain 50% of the HP and sanity increase resulting in 17,5% Base HP and 10% of sanity restored, if the ability cap is 35% for HP and 20% for Sanity. Results Now we have a solid and somewhat balanced build or the whole concept for the Tent,Straw Roll usage. People would have to choose from crafting things and building the base all night long or skipping night phase to sleep and restore HP and Sanity. We could have more balanced food because now we have a solid HP restoring mechanic. There would be no more OP food items just for the cause of restoring your HP with 1 bite! And there would be less mmorpg style gameplay like gathering a stack or two of high HP healing food to destroy 10 spider nests in one day. There could be less spider nests, cause regaining health easier would be in sleeping, therefore making free room for extra content in future thus not making the world too BIG. Tent would serve its purpose as a more pernament object and/or fixed amount of uses. Straw Roll would serve as an emergency Tent for 1 night only for less requirement of resources than the Tent. Tweaking and Tuning in Future To make sleeping maybe more balanced, add hunger decrease penalty for useing Tent or Straw Roll. To make more dynamic HP(Only) restoration mechanic, make this: HP restoration cap is 20% if you sleep 100% of night phase time and on top of that add extra 25% healing cap based on the %% how much well fed you are. Resulting having to eat before sleeping would be more benefitial. When winter would come, the advantages changes. Everything is growing slower or isnt at all. Grass would be harder to gather, thus making Straw Roll more expensive. To balance this out - presuming winter will have some heat meter like hunger, you would have to sleep in a Straw Roll near a fireplace to keep warm or increase heat level rather than sleeping in a cold Tent. Applying firepit/campfire heat levels in distance similiar how to hatch an egg. There could be 4 distance stages for sleeping near campfire: No heat source or too far from would make the freeze meter to drop more than you would be staying awake all night. Close but not enough would make the same amount of freezeing penalty you could have stayed awake in the that certain spot but not on top of that like it was in previous stage. Comfort zone would NOT make heat meter to drop or raise. Sleeping to close would raise heat level significantly, but will restore much more less HP. I think this would be awesome purpose to use it, but I fear it would be TOO COMPLICATED for new players to figure it out when the game launches.