Am I doing something wrong?
1. I got a task from a teacher. Went to Joshua. Then he suggested to wear something cute
2. Next day. I wore "something cute" and got that
3. Hm, but ok. Third day after school I wore "something cute" again and went to Joshua and got that
Option to help with teacher's tasks disappeared
Is there a way to continue Joshua's branch ?
And where is the bully? We met him at a first day at school and after that he dissapeared. Shouldn't be his branch as well?
Ok, I dig into the code a little bit and it seems like a bug.
here is a code to start event, if you have male clothes - Joshua asks you to wear something cute
JavaScript:
<<if _outer.isMale>>\
<<set _desertFail = 1>>\
Every clothes have flags like isMale or isFemale
JSON:
casualDress:{
itemType:"outerwear",
clothingSlot:"outerwear",
name: "Casual Dress",
itemMaster: "casualDress",
daring:5,
disabled:false,
hasWorn:false,
isMale:false,
isFemale:true,
tags:{
plain:true,
}
},
The problem is when you come to Joshua house in Female clothes, it runs script that update internal state that moves story forward
JavaScript:
<<if _outerWear.isFemale or $friendG.catchUp eq 1>>\
<<set $friendG.visit.r2 to 2>>\
<<endif>>\
And this state skips all friend events to [[Friend Basic Visit]] and you can't get help with tasks from Joshua anymore
JavaScript:
<<elseif $player.daring eq 5 and $player.perversion.teacher gte 3>>\
<<if $friendG.visit.r2 eq 0 and $tasksFriend.pantieSelfie.status gt 0>>\
<<include [[Friend Intro Teacher Tasks]]>>\
<<elseif $friendG.visit.r2 lt 2>>\
<<include [[Friend Basic Teacher Tasks]]>>\
<<endif>>\
\
<<else>>\
<<include [[Friend Basic Visit]]>>\
<<endif>>\
PS: code is ... not good to my taste. For examle author uses these variables for your friend name and pronoun
JavaScript:
$friend // name
$friendG.his_her // pronoun
Why not use OOP notation like this?
JavaScript:
$friend.name // name
$friend.pronoun // pronoun
And so on. There are lot of things for refactoring