It looks like you're new here. If you want to get involved, click one of these buttons!
<<widget "undress">>
<<set $top = 0>>
<<set $pant =0>>
<<set $socks = 0>>
<<set $shoes = 0>>
<</widget>>
At the next day you choose your clothes again. But now I stuck at a problem. You are at the swimming pool. You are a a medical examination. So I run my <<undress>> widget. When that is done I want to make that you wear that clothes that you removed before you undressed the last time. Is that possible. I tryed it with remember but stuck at it. Please help me.
Comments
Since you're setting them to zero in your code sample, I assume that your clothing values are also integers? If so, you simply need to create another set of $variables for the last worn clothing and set them in
<<undress>>
. For example: Then you could use a widget (e.g.<<redress>>
) to restore any existing last worn clothing set. For example:My standard mantra about the use of
<<remember>>
is like the trite aphorism about regular expressions:[quote]Some people, when confronted with a problem, think "I know, I'll use
<<remember>>
". Now they have two problems.Basically,
<<remember>>
is almost never the solution to anyone's problem.Now I stuck at another point. Maybe someone can help there to.
First:
Im plan to add a skill system. Skills like cooking and so on are easy to code. They improve by doing it but some other raise with time. Let us take high heels as example. The skills improve when you wear them and that over time. Now Im searching for a way that improves the skill when you wear heels and walk. I tried it with a widget: But now I have to write at every passage <<skill>>
Is there an easier way?
Second:
I want that it increase the skill to a maximum point. If you wear low heels you cant walk in high heels. So it would be the best:
PassageDone
special passage, which is executed just after the rendering of each passage. For example: A couple of notes: