ED209
Plantera
The goblin/pirate/martian invasions can be triggered by teleporting in the NPC. You don't have to go back to home base.
I've always wandered about this; does this apply for console as well? Every time I get an invasion warning I have to go to the centre of the map, do I just need 1 NPC near me for them to attack me whereever I am?