Gender Help

Hi! Not sure if I’m posting this in the right place but I’m currently working on a project and I’ve run into an issue. I absolutely suck at coding so it’s been a bit difficult. I wanted gender specific dialogue for a scene. For example, if the player wants to play as a male, then they’ll have male specific dialogue available with the female specific dialogue greyed out. I have no idea how to go about it. I thought about using the ‘if’ command but I’m not sure if that’s correct. Would appreciate any tips!

I also keep getting this error:

‘Cannot read property endline of undefined’ D

Does anyone know what it means? Thanks! I’m using cside btw

1 Like

For me it usually is simplest to go by variation. It would look something like this.

In startup:

*create player_gender 0

Zero here serves as a neutral value before setting up the gender. Then we use numbered variables to make varied scenes.

Like this! Just got to make sure all indents are even for both *if commands.

*if player_gender=1
/dude stuff/

*if player_gender=2
/girl stuff/


Something you might want to look into in addition to what vera said is multireplace.


thank u sm! would you happen to know what this error means?
‘cannot read property endline of undefined’

I’m using cside if that helps

Something not yet mentioned: *selectable_if. This will let you grey out dialogue choice options like you mentioned.