Jump to content

[SOLVED] How can I make my character have effects of "insomniac" tag when insane?


Recommended Posts

Hello, I need help :).

So, if someone can tell me how can I make my character have the same affects of the "insomniac" tag when she goes insane without actually using the "insomniac" tag?

You might be saying

"Well duh just use the "insomniac" tag, idiot!"

well I can't put any more tags on my character because this lovely crash happens that Klei will never fix

"   Error serializing tags for entity adam[108664] - 32 tags; exceeds maximum size of 31   "

:wilson_facepalm::wilson_facepalm::wilson_facepalm::wilson_facepalm::wilson_facepalm::wilson_facepalm::wilson_facepalm::wilson_facepalm::wilson_facepalm::wilson_facepalm::wilson_facepalm::wilson_facepalm::wilson_facepalm::wilson_facepalm::wilson_facepalm::wilson_facepalm::wilson_facepalm::wilson_facepalm::wilson_facepalm::wilson_facepalm::wilson_facepalm::wilson_facepalm:

 

So, can someone guide me how to do this? Thanks so much for reading my problem & have a wonderful day/night :D!!!

Edited by SuperDavid
Link to comment
Share on other sites

I would suggest using components instead of Tags, at least everytime it is a Tag you invented yourself (so not a game tag), see this thread:

You can also make it very basic, in sence that you just make "AddComponent("mycomponent")" instead of adding a Tag. And instead of checking "inst:HasTag()" you check "inst.components.mycomponent".
But be aware that only server can check components! If you have code that also runs for clients, this won't work.

Edited by Serpens
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...