Yes, it would. I think so, yes. Sounds possible to me. You may want to add a check for if GetCompanionIndex returns a value smaller than 0; that happens whenever you have an empty companion slot. How do you propose to deal with a quick free repaint to reset the fort memory? I forgot to mention it earlier, but that would be another potential exploit.