Jump to content

character perks disappearing [ignore]


Recommended Posts

Hey there forum! So I've made a lot of progress on two character mods I've been cobbling together - but now we're running into an interesting problem. Some of the character's perks seem to disappear on death!

Like, one character loses his level 1 science tier and the other loses a light aura among other things. It feels like this kind of error would be common for newbie modders. Is there a well known fix for this behavior? Or could anyone help me troubleshoot it if I shared the files here?   

On disconnecting and reconnecting the perks come back, but if the server host is using one of the characters it's kind of a pain.

 

Ah nevermind, managed to find a workaround after digging through some old tutorials. 

Edited by circle666
Link to comment
Share on other sites

You have to post the file, because it doesn't make sense.

 

I can imagine somebody put

inst.components.builder.science_bonus = 1

in the master_postinit and

inst.components.builder.science_bonus = 0

on the function that runs when the character dies.

 

But the thing is, master_postinit runs only on initialization, not revival.

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