Jump to content

Help with creating my character please


Recommended Posts

Im working on my own character, its my first time doing it and I need some help. I need to know how to make the axe have the spear damage and make it able to work like a hammer please. Also how can I make my character being able to eat nightmare fuel. Thanks in advance I really need the help

Link to comment
Share on other sites

No offense mate, but if you can't even figure out how to change numerical values to change the damage of an item, I don't think you can really do this. Go learn a bit of programming, Python, Lua, Javascript, whatever, anything other than the little to no experience you have now is going to help tremendously.

Link to comment
Share on other sites

Which one is the command I should put to make the axe do the same damage as the spear, I know how to put the damage multiplier but I just want the axe to do the damage not all weapons, also I want to know if its possible to make the axe work as a hammer too. Thanks :)

Link to comment
Share on other sites

Don't change the files directly. This is the first step to making a mod.

What you want to do is create a new folder in your mods folder and place these files in it. Feel free to edit these files so they reflect what your mod is, since it involves what you see on the mods screen in-game.

Once you've done that, then you'll need to create directories (more folders) to the files you want to edit in the mod folder. For example, to change the axe, you would create the directory (again, in your mod folder) scripts\prefabs\axe.lua. The axe.lua file can be made from scratch or copied from the original file place. If you want specific help, reply please.

Link to comment
Share on other sites

Don't change the files directly. This is the first step to making a mod.

What you want to do is create a new folder in your mods folder and place these files in it. Feel free to edit these files so they reflect what your mod is, since it involves what you see on the mods screen in-game.

Once you've done that, then you'll need to create directories (more folders) to the files you want to edit in the mod folder. For example, to change the axe, you would create the directory (again, in your mod folder) scripts\prefabs\axe.lua. The axe.lua file can be made from scratch or copied from the original file place. If you want specific help, reply please.

I'm not sure how you'd change values outside of the file, but i'm pretty sure that editing basefiles (Whether replacing them via mod or changing them from your install) is a pretty big no-no, as IIRC it can destroy compatibility with other mods (and possibly even future updates) But I'm afraid I don't know of any other way than changing base files, @TURRODOLFO have you tried, instead of messing with the default axe, creating a different item that would work for the same purpose?

Link to comment
Share on other sites

Not yet, i've been trying commands in the "Insert example of special powers here" place but I need to find the one that changes the axe damage instead of the damage multiplier of the character in general

 

I see now what you try to do.

 

My idea is using the all-magical "AddPrefabPostInit" to run axes, spears and what not through a function that increases the weapon damage IF the player avatar is your custom character.

 

Here's what I've literally just written, and it's probably wrong somewhere, but you should get the idea.

local function SharperBlade(blade)   if GetPlayer() and GetPlayer().prefab = "YOURCHAR" then      if blade.components.weapon then         blade.components.weapon.damage = blade.components.weapon.damage * 1.5         --you could add more properties here      end   endendAddPrefabPostInit("axe", SharperBlade)
Link to comment
Share on other sites

 

I see now what you try to do.

 

My idea is using the all-magical "AddPrefabPostInit" to run axes, spears and what not through a function that increases the weapon damage IF the player avatar is your custom character.

 

Here's what I've literally just written, and it's probably wrong somewhere, but you should get the idea.

local function SharperBlade(blade)   if GetPlayer() and GetPlayer().prefab = "YOURCHAR" then      if blade.components.weapon then         blade.components.weapon.damage = blade.components.weapon.damage * 1.5         --you could add more properties here      end   endendAddPrefabPostInit("axe", SharperBlade)

Do i paste it below Add example of special power here?

Link to comment
Share on other sites

Do i paste it below Add example of special power here?

 

Since it manipulates other things and not your guy, no. Put it all by itself somewhere outside of functions (when it should touch the left side), just above "local function fn()" for example.

Link to comment
Share on other sites

Ok ill watch a few tutorials thanks for the help :-) Does anybody knows how to prevent wilson's beard from growing?

Not sure what you mean by this, if you're creating a custom character, why would you want Wilson not to grow a beard?

Link to comment
Share on other sites

Not sure what you mean by this, if you're creating a custom character, why would you want Wilson not to grow a beard?

Because Im using sample_character mod and I need to know how can I prevent wilson's beard from growing for my character.

 

Link to comment
Share on other sites

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.

×
  • Create New...