I'm using the Phase battle system. I'm trying to access via script, which faction's phase is currently active. Is there a way to access this? This is the main thing I need but fully I'd like:
1) What faction's phase is currently active
2) function that ends the phase
3) An event that triggers when the phase changes
Are these items possible through script?