yes. it is VERY complicated. because for each name, you need to re create the storygame. you'd be better off choosing the name for them.
Better off just reading up on how to script, ask someone who knows how to do it, or just forget about it. But you know. If you just do what CYOA books do, have the game mention the reader as simply YOU, it's the same principle. They would just replace the word YOU with their name.