For simplicity, let's say that I want bots to kill me when I enter a room without greeting them. So in this case I would need to store, somewhere, the variable
didGreet, which should be changed when I send the message "Hello." Then, when any pawn sees me, he will check the
didGreet variable and if this was false he would start firing at me.
I've heard that this should be done using the
GameInfo class, but unfortunately I don't know how to create, access and change variables there. How can I accomplish this?