name script
nogden74
25 Feb 2012, 10:12is there any way the game could ask your name and then use your name throughout the game?
sgreig
25 Feb 2012, 11:02There 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>