0 votes
by (390 points)
edited by

I am working on a baseball game and want to make it possible for the player to see a recap of each play throughout the game. Ultimately, I would like for there to be a recap displayed at the end of each inning so the player can see what happened.

Is there a way to do this?


PS. Here is some example code of what I did. Obviously, this does not work as the $event variable is constantly getting updated. My thought was that it would copy the content of $event as a string of text to avoid that, but I do not know how to do it or if it is even possible.

(set:$recap to (a:))


(if:$result is "hit")[
(set:$event to "(print:$batter's name) got on base with a $hit to $fieldloc")]

(set:$recap to it + (a:$event))


Please log in or register to answer this question.