Select Control Variables, choose a variable you are not using. I have 5 variables called TEMP 1, TEMP 2 etc for such things if they are one-offs. However, if this is something that will run more than once it is better to have a dedicated variable switch for it, in which case, name it so that you don't accidentally use it for something else as well.
Select 'Game Data' and click on the ... at the end.
Select 'Other', then Gold from the drop down menu.
This sets the variable to the amount of gold the player has
New event command, select that variable again.
In the 'Operation' choose Div
In the 'Operand' chose 'Constant' and enter 2
This divides the amount of gold by 2
New event command, 'Change Gold'
Select 'Variable', then the switch you've just been working with.
Done. When the event runs, it will take half the gold.
EDIT
I strongly recommend that you have a look at Andar's excellent compilation of
info for new users. There you will find a link to a playable tutorial on Switches and Variables.