Lets imagine that every time you press "G" you gain 5 gold and you get "You gain 5 gold!" in your log ok? Do this:
1st you create a "Text Box" of the size you want, go to the properties of the text_box and where it says "Read-only" you choose "yes". And "type" to "text-area".
2nd, go to the event_sheet and create a global variable with the type "Text", name it "log".
3rd, go to the event_sheet and create a global variable with the type "Number", name it "gold".
Now you make the condition and the add 5 to the gold variable.
The second effect: System> add to variable > "log" > and you write ""You gained 5 gold!" & newline"
This is how it should look like:
https://www.dropbox.com/s/a6pjvu7fvy27q3a/screen_01.png?dl=0[/code:93idcvr4]
I hope I was able to explain my self