Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hello! So in renpy I made it where the player can insert their name in the story. Which I used as the string [player_name] but when I put "[player_name]" as the MC_Name it doesn"t use the phone send icon like it's supposed to just the phone received icon. As if it's another character in the game and not the main character. Why is this?

Also found out it only works when the player decides to choose their name literally puts in "[player_name]" as their character name

Hello! Yes Ren'Py doesn't replace variable between brackets everywhere, so that's why your example only work when the player input literally [player_name].

I don't have a way to test right now, but simply defining MC_Name = player_name rather than MC_Name = "[player_name]" should work. Let me know if it does! :)

It came up as an error but I decided to put in another variable and it works! :3 Thank you so much for replying though!

Deleted 2 years ago

how did u go around it?
I'm having the same trouble