letting the player choose there own name?

I'm very new to squiffy and I want to know if and how I can let the player choose his/her own name I couldn't find how to do this anywhere


Use html+js. A combination of input/text and js to set the catch into squiffy variables. It works for me.


This is what I used for name input.

[[Enjoy]]

[[Enjoy]]:
First off, tell me your character’s name please?
Type your name here
<textarea id="text_first"></textarea><br>
[[Continue:]](cname)

[[cname]]:
        squiffy.set("textline", jQuery("#text_first").val());
Welcome {textline}, enjoy the game.<br>

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

Support

Forums