Hello
Since weeks im trying to write a script, but im a noob, reading a lot tutorials and looking for some similar scripts was more confusing than helpful. i hope to find some help here, a script to mess around with, to understand some of the Papyrus mechanics.
The Background, i build a Cell, a Prison with a Mine, 6 prisoners are working by day, mining, a Guard is watching them, so far it works all well with AI-Packages.
To get some live into the Scene:
one of the prisoners (randomly selected), stops working and try to escape (changing his Faction from PrisonerFaction to an enemy Faction)
the Guard catch and beat him until he turns back to work (changing back to PrisonerFaction, by low health)
this should happen 1 or 2 times a day, only 1 prisoner at once.
Thanks in advance for any help