Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

How can I write a find:replace function for gender? [Snowman 1.3]

$
0
0
Hello, could someone explain how find:replace functions work in Snowman 1.3 I'd like to use it as means to assign a player's gender. The current code I'm working with looks something like this, and it doesn't make the writing process any easier.
I wish <% if (s.player_sex == "female") { %>she<% } %><% if (s.player_sex == "male") { %>he<% } %> was still here.

Viewing all articles
Browse latest Browse all 1844

Trending Articles