draiza Posted September 10, 2017 Share Posted September 10, 2017 Hello! I want to create a character modification but I am not strong in codding so I want to ask you to help me. It will be demon-like character with some abilities: 1.Losts sanity when there is nothing bad. 2.Gets sanity when there are monsters near, when kills animals and monsters and when use dark weapons and armour (later about it). 3.Has 100 hp and 1.5-2x damage (lower hp-more damage). Has 100 sanity. 4. Gains nightmare fuel with 10% chance when kills monsters. 5.Has special crafts: dark spear, dark sabre and different dark armour. Dark spear is analog of spear, sabre is analog of thulecite club dark armour is analog for default armours. You can craft all with default items and nightmare fuel. It's better because character gains sanity from it. Link to comment Share on other sites More sharing options...
Draukel Posted September 12, 2017 Share Posted September 12, 2017 For the hp, go in your scripts and go down in "[charactername].lua". At one moment you'l read this Quote -- Stats inst.components.health:SetMaxHealth(250) inst.components.hunger:SetMax(150) inst.components.sanity:SetMax(75) That's your stats, just change every numbers into the exact result you want and save Quote -- Stats inst.components.health:SetMaxHealth(100) inst.components.hunger:SetMax(150) inst.components.sanity:SetMax(100) Like this. And for the damage, it's Quote -- Damage multiplier (optional) inst.components.combat.damagemultiplier = 1 In the same file, change just the number to a point you want and it's done. That's not all you asked, but I can't give more. I start in codes too and don't know so much. Link to comment Share on other sites More sharing options...
draiza Posted September 13, 2017 Author Share Posted September 13, 2017 Thank you, it will be good first steps! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.