- May 24, 2020
- 80
- 28
My apologies for that and thank you for the help. While I might have more questions, I'll read up on Special Passages and names before I proceed.Please wrap code in code tags instead of taking screenshots.
By default, the code will only run when the passage it's in runs. There are someYou must be registered to see the linksthat have different behavior. I suggest placing most of that code in the PassageReady passage.
<<if ($nuditystate is "All Natural" or "Pretty Much Nude" or "Topless and Spilling") and (($shame - $lewdness) gte 1)>>
Uh... you don't intend to leave the house like THAT, do you? For shame, if you have any! Get changed first!
<<else>>
What to do on this fine day?
<</if>>
<<if ($nuditystate is 'All Natural' or $nuditystate is 'Topless and Spilling' or $nuditystate is 'Pretty Much Nude') and (($shame - $lewdness) gte 1)>>
Uh... you don't intend to leave the house like THAT, do you? For shame, if you have any! Get changed first!
<<else>>
What to do on this fine day?
<</if>>
It can be helpfull to actually use symbols sometimes and not words.I have another problem.
I typed
Code:<<if ($nuditystate is "All Natural" or "Pretty Much Nude" or "Topless and Spilling") and (($shame - $lewdness) gte 1)>> Uh... you don't intend to leave the house like THAT, do you? For shame, if you have any! Get changed first! <<else>> What to do on this fine day? <</if>>
==
, <=
, !=
Part!<<if ($nuditystate == 'All Natural' or $nuditystate == 'Topless and Spilling' or $nuditystate == 'Pretty Much Nude') and (($shame - $lewdness) >= 1)>>
<<if tags().includes('nature')>>
stuff where it will trigger if the passage has a certain tag, but how about the opposite, where I want an event to trigger provided something DOESN'T have a certain tag? like instead of including, it's excludingWidgets are not functions. You can't return anything.You can make Widgets in Twine that takes an input and outputs something else, so you could make a widget, that takes in $NudityState and gives an apporitate string back where needed.
Something along the lines of if
IF $nuditystate == 1; return "All Natural"
IF $nuditystate == 2; return "Topless and Spilling"
I'm aware of the<<if tags().includes('nature')>>
stuff where it will trigger if the passage has a certain tag, but how about the opposite, where I want an event to trigger provided something DOESN'T have a certain tag?
<<if !tags().includes('nature')>>
Guess its been a hot minute since i have touched SC Script, but yeah, Directly Returning is impossible, atleast for Widget's that is!Widgets are not functions. You can't return anything.