Hello guys, thanks for taking the time to help me out. I'm running into a bit of a problem in my game I'm working on. The script is working correctly at runtime; and when I encounter enemies, the combat gets loaded and set up correctly. However, when I run the combat 'for each' loop that iterates through each member in a…
I think Farfarer got it. But specifically, the code block that you have highlighted references ActiveDefender.ToString() but ActiveDefender has not been initialized before that code executes, so it must be a null value. Nor has Active Combatant for that matter. You might just break the lookat bit into its own little…