Hi everyone,
So I'm trying to get a Common Event to play when an actor is knocked out, which is working fine... Except for the fact that event plays whenever an enemy dies as well, which mucks up what I'm trying to do.
I'm using the current JS on the death state, but it's not filtering out enemy deaths, and my knowledge of JS is limited at best so I can't figure out how to fix it. Do I need to use a different term to check the target receiving the death state or something like that?
<JS On Add State>
if(target.isActor)($gameTemp.reserveCommonEvent(4))
</JS On Add State>
Any help would be greatly appreciated.
So I'm trying to get a Common Event to play when an actor is knocked out, which is working fine... Except for the fact that event plays whenever an enemy dies as well, which mucks up what I'm trying to do.
I'm using the current JS on the death state, but it's not filtering out enemy deaths, and my knowledge of JS is limited at best so I can't figure out how to fix it. Do I need to use a different term to check the target receiving the death state or something like that?
<JS On Add State>
if(target.isActor)($gameTemp.reserveCommonEvent(4))
</JS On Add State>
Any help would be greatly appreciated.