I\'ve been creating a series of random events where each function does something different to a main set of variables, yet I keep getting unbound local errors. Here\'s a wat