Jump to content

Please help with the editing of the character


Recommended Posts

I really can't try to help unless you give me the entire character mod then I can see exactly why it's crashing because I have no idea what's even causing the crash.....................................................................................................................................................;)

Link to comment
Share on other sites

12 minutes ago, SuperDavid said:

Okay, now we're making progress :)! The next thing you can do for me is tell me how does the crash happen because I just entered a world with your character & it didn't crash. Tell me exactly how to do the crash.

I just waited until comes evening.

Link to comment
Share on other sites

2 minutes ago, SuperDavid said:

I did the same & nothing happened.

I gave you the file with my code, without adding mind emptying)
It was necessary to say at once)

Sorry, I'm just a little tired)

Edited by Tezumoto
Link to comment
Share on other sites

13 minutes ago, Tezumoto said:

Sorry, I'm just a little tired)

I'm also tired, haha ;)!

That version of your mod you gave me I changed this file

reisen.lua

And her saniity drains at, heals all that stuff & everything good, it didn't crash & I skipped like 10 days. If it crashes for you I'll have to cry in a corenrer cuz I don't know. :)

Edited by SuperDavid
Link to comment
Share on other sites

17 minutes ago, SuperDavid said:

I'm also tired, haha ;)!

That version of your mod you gave me I changed this file

reisen.lua

And her saniity drains at, heals all that stuff & everything good, it didn't crash & I skipped like 10 days. If it crashes for you I'll have to cry in a corenrer cuz I don't know. :)

Now like there is no error)
It remains to polish the value and can play this character)

Link to comment
Share on other sites

20 minutes ago, SuperDavid said:

Those 2 words Healed my mind.

And to the full moon did not have a negative effect, I can just copy lines of section of the day?

	inst.components.sanity.night_drain_mult = 2
	inst.components.sanity.dapperness = TUNING.DAPPERNESS_MED

The full moon - light)
And my character is not afraid of the night)
She's afraid of the dark)

Rate of decline in the evening and at night normal edited.
But the recovery rate of the day, I can not speed up the recovery.

The idea was that night she quickly goes mad, and in the morning quickly come to normal.

Edited by Tezumoto
Link to comment
Share on other sites

26 minutes ago, Tezumoto said:

But the recovery rate of the day, I can not speed up the recovery.

You can edit it just do 

inst.components.sanity.dapperness = 2 * TUNING.DAPPERNESS_MED    --replace 2 with any multipler u want

instead of whatever is healing sanity for day.

Link to comment
Share on other sites

17 hours ago, SuperDavid said:

You can edit it just do 


inst.components.sanity.dapperness = 2 * TUNING.DAPPERNESS_MED    --replace 2 with any multipler u want

instead of whatever is healing sanity for day.

How can I increase the camera shake on a critical hit?

	inst:ListenForEvent("onattackother", function(inst, data)
local criticalchance = math.random(1,4) -- 1 out of 4 should be like 25% chance

if criticalchance == 4 and inst.next_hit_critical == nil then -- The random 25% chance of getting a critical hit has occured, so make next hit a critical hit.
inst.next_hit_critical = true
inst.components.combat.damagemultiplier = 1.75 -- Boost damage for critical hit.
else
return
end

if inst.next_hit_critical == true then
inst.next_hit_critical = nil
ShakeAllCameras(CAMERASHAKE.VERTICAL,.5, .01, .05, inst, .01) -- Give a tiny camera shake for cooler effect?
inst.components.talker:Say("Критический удар!") -- Have a critical hit quote, if u want?
inst:DoTaskInTime(0.05, function(inst) inst.components.combat.damagemultiplier = 1 end) -- Reset damage after scoring a critical hit.
end

end)

 

Link to comment
Share on other sites

Change the numbers inside until you get desired effect

ShakeAllCameras(CAMERASHAKE.VERTICAL,.5, .01, .05, inst, .01)

EDIT: @Tezumoto The last number is the range of ppl being able to see the shake, so .01 means only you can see it

And the first number is how long the shake lasts, the other 2 numbers are how strong the shake will be

Edited by SuperDavid
Link to comment
Share on other sites

11 minutes ago, SuperDavid said:

Change the numbers inside until you get desired effect


ShakeAllCameras(CAMERASHAKE.VERTICAL,.5, .01, .05, inst, .01)

EDIT: @Tezumoto The last number is the range of ppl being able to see the shake, so .01 means only you can see it

And the first number is how long the shake lasts, the other 2 numbers are how strong the shake will be

So I will increase camera shake twice?

ShakeAllCameras(CAMERASHAKE.VERTICAL,.5, .02, .1, inst, .01)

 

Edited by Tezumoto
Link to comment
Share on other sites

4 minutes ago, Tezumoto said:

I can do for the character of eating carrots bonus twice more than usual?

Inside YOURCHARCTER.lua inside master_postinit you put & you will get double points of what carrot & cooked carrot give ;).

inst:ListenForEvent("oneat", function(inst, data) 
if data.food.prefab == "carrot" then
inst.components.health:DoDelta(1)
inst.components.hunger:DoDelta(12.5)
--inst.components.sanity:DoDelta(1) -- if u want to add sanity heal too
inst.components.talker:Say("I love carrot!")
elseif data.food.prefab == "carrot" then
inst.components.health:DoDelta(3)
inst.components.hunger:DoDelta(12.5)
--inst.components.sanity:DoDelta(1) -- if u want to add sanity heal too
inst.components.talker:Say("I love cooked carrot!")
end
end)

 

Link to comment
Share on other sites

3 hours ago, SuperDavid said:

Disable & enable all your mods you had enabled & see what's causing the problem.

 

When I create a server with non-standard characters this error appears.
But if I turn off the cave on the server, there is no problem.
It can somehow fix?
What could be the problem?

I can play without the caves, but they add more variety to the game.

Edited by Tezumoto
Link to comment
Share on other sites

3 hours ago, Tezumoto said:

Someone can explain what these parameters are responsible?

inst.components.eater:SetCanEatRaw() means your character I think can eat things like raw birchnuts?

inst.components.eater.strongstomach = true means your character takes no damage from monster food stuff

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...