Hi,
So I want the player see randomly the sentence first, and when he has seen it, always see it.
The fact is : it's always random.
Here is the code :
<<if $Observant>=random(100) || $Votpan==1>>You see an
voting panel][$Votpan to1<</if>>
$Observant is fix between 0 and 100, $Votpan is set as 0 in the storyinit
BTW : little question here :
https://twinery.org/forum/discussion/comment/20400/#Comment_20400 (re sorry for the dig up)
Sorry for my english, that's not my native language.
Thx for the answers.
Comments
First the issues:
Now the suggestions:
For example, do the following within your StoryInit special passage:
And the rest of the code:
A final observation. Even after initially noticing the voting panel, if the player doesn't click the link, then $Votpan will not be set to true. You may instead wish to separate the two actions, so when the player notices the panel it stays noticed whether they immediately click on it or not. For example:
1 : StoryInit is ok. (just me who write it wrong, I'll pay more attention next time)
2 : I correct the error : same, always random.
Suggestions :
Your code is clearly more optimize.
But always random TT, even with $Votpan puts first. (I assume that $Votpan without true means it's true by default).
I don't really understand what's going wrong with this code.
I continue to work on it.
Thx for your answer.
And yes I use the <<back>> macro. Is that reseting the previous action ?
Thx for your time.
The <<back>> macro undoes existing history, yes. Using it is undoing the change to $Votpan made by the setter link.
If you simply want an immediate return from the voting panel passage to the previous passage, you could use the <<return>> macro—from its documentation: Functionally identical to <<back>>, save that it pushes forward to the destination state/passage, rather than popping back (i.e. it creates new history, rather than undoing existing history).
As well for <<return>>.
I thank you a lot.
I check answered.