I'm trying to make a game where I can insert the player's name into the dialogue, but I can't get the string_replace function to work? The dialogue of each character originates in either the Step or Create function of each character and will read as follows: With "playername" being the substring I'm trying to replace. The character then runs a script in the step function called scr_dialogue which contains this code: The text itself, once converted to the variable "myMessage" is drawn inside of the object "obj_dialogueBox" and reads as follows: The code I am trying to use to replace "playername" with the actual name of the player is some variant of this code: where "PlayerName" is a global variable set earlier to the player's name. For example, PlayerName = "Susie". The problem is that I can't for the life of me, figure out where to put this code to make it work. Please help?