name script

nogden74
is there any way the game could ask your name and then use your name throughout the game?

sgreig
There sure is! Call this function whenever you want to get the player's name. The name is stored as the attribute playername of the player object. Once you've asked for the player's name, you can access it anytime by referencing it as player.playername.


<function name="name_player">
msg ("Please enter your name:")
player.playername = GetInput()
</function>

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums