Honestly, using Ngui or Unity's native Ui, this is actually a playmaker thing.
Though, to be honest, i wouldn't have thought to use the global variable. I'd probably have the object that needs to do all this have a start state setup that when it instantiates, it looks for (the find actions probably) the GUI object so that it knows what to tell to fire off the gui-based event.