User Tools

Site Tools


tasks:continuity

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tasks:continuity [2017/04/12 03:42]
chissoku
tasks:continuity [2019/08/29 17:55] (current)
Line 1: Line 1:
 <​code>​ <​code>​
-Title:Continuity+Title:Snippet Save user state between tasks
 Sex: Female T Male T Trans T Sex: Female T Male T Trans T
-Require:  +Require: 
-Limits: ​ +Limits:
 ;* Save task outcome and load for next time the task is run * ;* Save task outcome and load for next time the task is run *
 +;* this is meant as a proof of concept that other can use, it is not a separate task*
 ;* beginning * ;* beginning *
- 
 loadtemp1:​continuity loadtemp1:​continuity
- +show:File status is... TEMP1
-show:Current file status is... TEMP1 +
 wait:3 wait:3
- +if:('TEMP1'==''​) 
-if:​(TEMP1=''​) +  show:​Welcome SNAME this is your FIRST time trying this task.
-show: Welcome SNAME this is your FIRST time trying this task.+
 fi: fi:
- +if:('TEMP1'=='​repeater'​) 
-if:​(TEMP1='​repeater'​) +  show: Welcome back SNAME you have tried this task before. 
-show: Welcome back SNAME you have tried this task before. +fi: 
-fi:  +wait:3
 show:Please select what to do with the save file from below. show:Please select what to do with the save file from below.
 choice:​Empty,​Register choice:​Empty,​Register
-wait:+wait:1
-show: TEMP1 +
-wait:3 +
 if:​(LASTASK==1) if:​(LASTASK==1)
-settemp1:undefined+  ​settemp1:''​
 fi: fi:
 if:​(LASTASK==2) if:​(LASTASK==2)
-settemp1:​repeater+  ​settemp1:'repeater'
 fi: fi:
-wait:2+showOutcome is saved as TEMP1, we are done here SNAME. 
 +button:​Thank you DTITLE
 savetemp1:​continuity savetemp1:​continuity
-show: Outcome is saved, we are done here SNAME. +;
-button: Thank you Mistress.+
 </​code>​ </​code>​
tasks/continuity.1491968536.txt.gz · Last modified: 2017/04/12 03:42 by chissoku