PaladinPlayer

  • Content Count

    17
  • Joined

  • Last visited

Community Reputation

1 Neutral

About PaladinPlayer

  • Rank
    Junior Member
...
  1. So I did a bit more work on the mod around the melee aspect and ended up trying this: local MakePlayerCharacter = require "prefabs/player_common"local assets = { Asset( "ANIM", "anim/player_basic.zip" ), Asset( "ANIM", "anim/player_idles_shiver.zip" ), Asset( "ANIM", "anim/player_actions.zip" ), Asset( "ANIM", "anim/player_actions_axe.zip" ), Asset( "ANIM", "anim/player_actions_pickaxe.zip" ), Asset( "ANIM", "anim/player_actions_shovel.zip" ), Asset( "ANIM", "anim/player_actions_blowdart.zip" ), Asset( "ANIM", "anim/player_actions_eat.zip" ), Asset( "ANIM", "anim/player_actions_item.zip" ), Asset( "ANIM", "anim/player_actions_uniqueitem.zip" ), Asset( "ANIM", "anim/player_actions_bugnet.zip" ), Asset( "ANIM", "anim/player_actions_fishing.zip" ), Asset( "ANIM", "anim/player_actions_boomerang.zip" ), Asset( "ANIM", "anim/player_bush_hat.zip" ), Asset( "ANIM", "anim/player_attacks.zip" ), Asset( "ANIM", "anim/player_idles.zip" ), Asset( "ANIM", "anim/player_rebirth.zip" ), Asset( "ANIM", "anim/player_jump.zip" ), Asset( "ANIM", "anim/player_amulet_resurrect.zip" ), Asset( "ANIM", "anim/player_teleport.zip" ), Asset( "ANIM", "anim/wilson_fx.zip" ), Asset( "ANIM", "anim/player_one_man_band.zip" ), Asset( "ANIM", "anim/shadow_hands.zip" ), Asset( "SOUND", "sound/sfx.fsb" ), Asset( "SOUND", "sound/wilson.fsb" ), Asset( "ANIM", "anim/beard.zip" ), -- Don't forget to include your character's custom assets! Asset( "ANIM", "anim/wilda.zip" ),}local prefabs = {}local function common_postinit(inst) -- choose which sounds this character will play inst.soundsname = "wendy"endlocal start_inv = { "feather_robin",}local function master_postinit(inst) inst:AddComponent("reader")inst.components.eater.foodprefs = { FOODTYPE.VEGGIE, FOODTYPE.INSECT, FOODTYPE.SEEDS, FOODTYPE.GENERIC, FOODTYPE.BIRDFOOD } -- a minimap icon must be specified inst.MiniMapEntity:SetIcon( "wilda.png" ) -- todo: Add an example special power here. inst.components.health:SetMaxHealth(125) inst.components.hunger:SetMax(125) inst.components.sanity:SetMax(150)local redbirds = {"robin"}local redfeathers = {"feather_robin"}local function damagemultiplierfn(inst) local hasredbird = false local hasredfeather = false for k,v in pairs(redbirds) do if inst.components.inventory:Has(v) then hasredbird = true end if inst.components.inventory:Has("feather_"..v) then hasredfeather = true end end return hasredbird and inst.components.combat.damagemultiplier = 1.5 or (hasredfeather and inst.components.combat.damagemultiplier = 5.1)endinst.components.combat.damagemultiplier = damagemultiplierfn(inst)endreturn MakePlayerCharacter("wilda", prefabs, assets, common_postinit, master_postinit, start_inv)(The stats are just temporary until I know it works) So I tried this in hope of achieving a system where when a red feather is in your inventory you get a melee boost but when you have a red bird that boost is overwritten and larger. (IK feather boost has 5.1 but wanting to test since she started with a feather) However when I did this I got this error screen when joining a private server with no other mods: Any help would be appreciated, also if anyone knew how to change the speed of a character uses a similar system that would be awesome!
  2. Hi Community! A while ago I made an Ornithologist character for DST, while she was ok (and my first mod) now I wish to give her an overhaul with new abilities and art. So, I was wondering if anybody knew: 1. What would be a good MINOR resistance to the temperature. (Like small insulation, small cooling? Less damage taken from cold and heat/fire?) 2. If anybody knew how to code ^ perk so that it would activate while an item was in your inventory. 3. The same as No. 2 but with extra speed and damage respectively instead? 4. Suggestions, I want to re-make this character, so any suggestions will also be helpful! Thanks! Edit: I do have a small knowledge of coding, however adding the resistance, speed or damage is out of my league.
  3. @rezecib, Thanks again for all of your help! It works really well now and after a bit of food tweaking I think this mod is finished!
  4. @rezecib, also she is a vegetarian but I wanted to add eggs to her diet so how would I go about doing that?
  5. @rezecib, This works well now thank you but the birds now give the same amount of sanity as the feathers.
  6. @rezecib First of all I assume the crash log is in documents/klei/donotstarvetogether/log.txt When sanityfn is here: local birds = {"robin", "robin_winter", "crow"} local function sanityfn(inst) local hasbird = false local hasfeather = false for k,v in pairs(birds) do if inst.components.inventory:Has(v) then hasbird = true end if inst.components.inventory:Has("feather_"..v) then hasfeather = true end end return hasbird and TUNING.DAPPERNESS_SMALL or (hasfeather and TUNING.DAPPERNESS_TINY or 0)endinst.components.sanity.custom_rate_fn = sanityfnend I get this crash: and this log:log.txt But when sanityfn is placed outside of master_postinit:local birds = {"robin", "robin_winter", "crow"}local function sanityfn(inst) local hasbird = false local hasfeather = false for k,v in pairs(birds) do if inst.components.inventory:Has(v) then hasbird = true end if inst.components.inventory:Has("feather_"..v) then hasfeather = true end end return hasbird and TUNING.DAPPERNESS_SMALL or (hasfeather and TUNING.DAPPERNESS_TINY or 0)endendinst.components.sanity.custom_rate_fn = sanityfn It will not load past this screen: and the log is:log.txt P.S. Thanks for the help and sorry for the long post
  7. @rezecib Your code worked perfectly up to a point but now it freezes/refuses to load/crashes and I don't know what to do please help this was such a nice feature before. P.S. I will do my best to provide info where it is needed but for now this is the prefab file I am using: wilda.lua
  8. Hi Rez! Thanks (again) for the code it was very helpful since it worked perfectly! Also while I look through more Modding Help pages I see your posts are always helpful which is awesome!
  9. Hello, Thank you for stumbling upon this thread stranger! I would like to add a sanity perk to my character but I don't know how to write code very we so here goes. The perks work like this; She will have a small sanity gain when holding a bird and a slightly smaller gain when holding a feather. They are and simple but I do not know how to check for an item in an inventory. Thank you for your help kind stranger!
  10. @rezecib I toyed around with the distance birds see the play at changed it to zero and now the birds will not fly away. This works but it will apply to everyone on the server so I will keep looking and messing around with code but the real thing I wanted to ask you about was crashing when ever I try to add the ghost build to then anim folder it crashes but if I don't do know include it the ghost is invisible and any shift tabbing, alt tabbing or pressing escape will crash the game with out a log in don't starve and it will create a window saying don't starve has stopped working. So if you could help me out (again) that would be greatly appreciated (this seems to be a reoccurring problem.) Nevermind the ghost is visible now but shift-tabbing will still crash the game.
  11. @rezecib I was thinking along the lings of when birds were murdered (in inventory not using and form of combat) they would drop more meat or feathers because she knows the anatomy of birds very well. Also would there be anyway to stop birds flying away? I was thinking if they did not fly away from here she could catch or kill the birds at a cost of sanity.
  12. Hey @rezecib, do you know how to change drop rates for birds?
  13. I will be giving her bird-themed starting items but I was wondering if you guys had any ideas for an ability.
  14. Thanks for your all of your help guys! I just have to questions, Firstly did you have any url, name or mod that you wanted me to use to reference you being extremely helpful on the workshop? And secondly I wanted to make her an ornithologist but I figured have birds not fly away from her who be two over powered (especially winter), So would you have any ideas for a bird-themed ability?