Jump to content

How to make sanity increase(or decrease)in battle?


Recommended Posts

First, I using a translater. Please excuse me.

I want to give a character the ability to increase or decrease in sanity when fighting.

I need each code. Because i will apply the code to different characters.

And i want to know if the code can only be enabled when attacking a particular target.

The targets i want to designate are pigs and rabbits.

I'm sorry if the bulletin is not here. I didn't know where to write this.

Link to comment
Share on other sites

This post I just made explains how to give a sanity decrease (or any effect, really) when being attacked or attacking others. I added some comments about which variables are available on the data objects that are passed by the events, and you can use those to do different things depending on the target/attacker, the weapon used, etc.

Link to comment
Share on other sites

1 hour ago, Ultroman said:

내가 방금 만든 이 포스트 는 다른 사람을 공격하거나 공격 할 때 정신 건강을 감소시키는 방법 (또는 실제로는 어떤 영향을 미치는지)을 설명합니다. 이벤트가 전달한 데이터 객체에서 사용할 수있는 변수에 대한 의견을 추가했으며 대상 / 공격자, 사용 된 무기 등에 따라 다른 변수를 사용할 수 있습니다.

thank you! 

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