Conditoin if im not mistaken should be in integer players property - current gold
Actions:
create variable called tempforce and choose type player group
use action Set variable and do as written.
Second action is in action's subgroup called 'Game' and then search for Game - display text.
Next one, find Unit actions, select Issued unit order No target, and choose 'Stop' in order field.
Last one is custom script, as called, its your custom code line. Select actions, find Custom Script (at the begining of the list) and write given sentence.
Done.