Jump to content

Winnie the mauderer refinement 2


Recommended Posts

Continuation of

My friend KURE says

Quote

KURE: winne has crash problem.
KURE: add + game start = crash.
KURE: plz investigate it

he did not specify what caused the crash OR what crashed..

I need help!

http://steamcommunity.com/sharedfiles/filedetails/?id=639322917

Also i want to add sanity based damage multiplyer. this is the value I want to use, but this is not dynamic. also would a dynamic variable make servers run slow?

inst.components.combat.damagemultiplier = 2-(0.5*inst.components.sanity.current/40)

and her knife is not click-able.. I do not know how to make her knife clickable

also her quirks get restarted when she leaves server (cave or exit server)

Edited by sparky4
adding previous thread
Link to comment
Share on other sites

 

Post this AFTER common_postinit

local function sanitydelta(inst)
   if inst.components.sanity.current >= 100 then
      inst.components.combat.damagemultiplier = 1.5
   elseif inst.components.sanity.current >= 50 then
      inst.components.combat.damagemultiplier = 2
   elseif inst.components.sanity.current <= 50 then
      inst.components.combat.damagemultiplier = 4
   end
end

put this in Master_postinit
 

inst:ListenForEvent("sanitydelta", sanitydelta)

This is a code that makes the character stronger as her Sanity goes down.

Link to comment
Share on other sites

On 12/30/2017 at 10:30 PM, Nerune said:

The game is crashing due to the compressed portraits.

I have to fix them but don't worry hopefully soon it'll be resolved.

 

-mod author major dingus

did you make your modified version named Winnie test X?

Link to comment
Share on other sites

38 minutes ago, sparky4 said:

I Do not know how to interface the configuration stuff of DST. How would one be able to do this? I need these values be able to be configurable.

if you download a mod that has a character with configurable stats you can see it's code and then copypaste it for your own mod and edit it, like this mod for example has configurable attack, sanity, hunger, ect.

Link to comment
Share on other sites

ok i am having issues with the configuration stuff STAYing the value i set with

    field("co_dm","Damage multiplier","Damage multiplier of Winnie",options_range(0.1, 4, 0.1),(1.2)),
    field("co_hr","Health regeneration multiplier","Health regeneration multiplier of Winnie",options_range(0.1, 4, 0.1),1),
    field("co_sr","Sanity regeneration multiplier","Sanity regeneration multiplier of Winnie",options_range(0.1, 4, 0.1),1),

these values are not being saved... how to fix?

 

i am uploading the file. the URL is http://4ch.mooo.com/4/winnie.7z

turns out the functions my friend uses is not 0.x friendly it only dose whole numbers...

Link to comment
Share on other sites

I put an example of how you would add a configuration option in your mod, the config would increase damage multiplier of winnie.

winnie.zip

Unfortunately, I do not understand your friend's configs or how to make them work I'm not a really good coder so I can't really help with how to fix his code, sorry :(!

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...