Scripting- Identifying a Hostile Enemy? - 11/10/14 02:12 AM
I have come up with a certain script for fun, but it would be infinitely better if I could pick out the hostile enemies for any given encounter when combat starts.
What I have right now is something like this:
I imagine that I would use something like CharacterGetRelationToCharacter, but I'm not sure which value would be necessary.
What I have right now is something like this:
Code
INIT Section DB_ProtectedCharacters(CHARACTER_HOM_Astarte); DB_ProtectedCharacters(CHARACTER_HOM_Astarte_SecondFight); DB_ProtectedCharacters(CHARACTER_HIB_Leandra); KB Section IF CharacterEnteredCombat(_Char, _ID) AND NOT _Char.isPlayer() AND NOT DB_ProtectedCharacters(_Char) THEN CharacterSetHitpointsPercentage(_Char, 0);
I imagine that I would use something like CharacterGetRelationToCharacter, but I'm not sure which value would be necessary.