Jump to content

HELP OUT. CODING


Recommended Posts

im planning of some special ability or whatsoever, but i don't know how to start it.

 

btw here are the details:

 

i only know how to add the self_absorb. and other basic code in editing a mod.

what i want to happen  is that when the character takes damage it will somehow absorb some damage then the rest will damage the sanity. 

 

the idea was like the sanity armor.

but the damage absoprtion is not to high...somewhat like the damage absorb of the wood or grass armor.

 

 

 

...will appreciate help from you guys .thanks

Link to comment
Share on other sites

@FltAdm, HI, LOOK AT DATA/SCRIPTS/PREFABS/ARMOR_SANITY.LUA. I BELIEVE YOU CAN ATTACH A SIMILAR FUNCTION TO ONTAKEDAMAGE TO AN ONHITFN IN THE COMBAT COMPONENT.

 

well thank you @rezecib

i'll try this later.

actually i'm still quite confused about the coding of files lol...i only know about the basic, but i'll try my best.

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