I'll try to explain the best, sorry for my English.
Video shows the possibility to attack (turn based) of neutral faction (chicken, rabbit ...)
once you kill a chicken, others are not hostile
but also citizens who are neutral faction but if you kill a citizen, they become hostile.
1- create faction
First you have to create new faction
for animals (chicken, rabbit) I create a faction "nature"
for citizen faction "citizen latanis"
(combatants in / factions)
the sympathy with the player defaults to "0"
2-change battle end event
change the battle end (thank you GIL)
go to event and open the SimpleVictory (see tutorial GIL)
event and save as a different name.
before node "show dialog" add node: add / faction step / change faction sympathy
change faction "player"
exchange for sympathy: "nature"
type value: value
value: 0
operator: set
this allows to make out the chiken will not attack you after the battle.
you can change the "show dialog" too
I put the text:
you killed a harmless animal.
as I use a "karma" I also add wickedness point for the player. (with status step)
explain this if you want.
3- create prefab "chiken" (or another :) )
add a box collider has your chicken
add an event and interaction (with the ORK szene wizard / add component
and creates a new game event
http://i59.servimg.com/u/f59/16/62/90/73/sans_t11.jpgin the event
add show dialogue.
ask if you want to attack this animal
in my game there is also the opportunity to catch it.
So add choices.
if you want to attack it, add add / factionstep / addfactionsympathy
value: -1000 (or just -1 ^^)
Here now you can click on a chicken and begin a battle, and we create the battle end event
Now create a combat area
http://i59.servimg.com/u/f59/16/62/90/73/sans_t10.jpg
be careful to layer so that the enemy is well on the ground.
faction "nature"
combatant: Chicken
I to add a respawn 180 seconds.
create a null object. I renamed "changebattleend" and add battle component
Battle Type: turn based
type start: trigger enter
add faction "nature" combatant "chicken"
it is especially necessary to change the battle end event, add our new battle end event we created before
back to your spawn combatant area
like the picture, add the "battle object" "changebattleend"
and here, it should work.
in my test I use variables but should not be useful.
for citizen you can do the same thing but without changing the battle end event, as the citizens remain hostile
https://www.facebook.com/gilshyran