tigrotto wrote: ↑Sun Aug 20, 2017 9:22 am
Hi everybody!
I have a problem with a script I'm writing. Could you help me sort it out?
The idea of the script is:
Sub needs to be punished
Domme picks a random audio file from a specified folder for the user to stroke to
At this point what I'm trying to do is:
The script should pause somehow(for
pause I mean is not just disabling domme's ability to respond with @AFKOn, but avoiding the script to progress) until the sub reaches an edge or manages to stroke to end without edging.
- If the sub edges the script should move to a line where domme tells him to stop stroking and to cooldown a bit.
Then the domme would restart the audio file again from the beginning and tell the user to strat stroking again until he manages to stroke for the entire file without edging.
- If/When the sub manages to stroke to the end without edging the script will continue as normal
Do you have any ideas to solve this problem?
I may have found an alternative solution(I didn't tried it yet), but I don't like it very much so I would use it as last resource.
Thanks in advance for your help!
Bye
There are a few option to do that.
For the "fail" part, where the user edge, you can use @EdgeMode(Goto, useredged) and create a (useredged) line. After a break, put a @Goto(Startagain) to go back. The only problem is to pick the same audio file, since you want a ramdom. You can use a @TempFlag to make sure the same audio will be playing.
For the pause part, the best way to do that it's using a @Wait() with the audio file duration. Since you will use a ramdom file, you can create a vocabulary file calling all the audio files, something like this:
#ThisWillPlayTheAudio
@NotFlag(02,03) @NullResponse @PlayAudio[Audiofolder/01.mp3] @Wait(20) @TempFlag(01)
@NotFlag(01,03) @NullResponse @PlayAudio[Audiofolder/02.mp3] @Wait(30) @TempFlag(02)
@NotFlag(02,01) @NullResponse @PlayAudio[Audiofolder/03.mp3] @Wait(25) @TempFlag(03)
When the wait finish, the script will continue normaly.
The script would look like this:
Pet, stroke without edging @EdgeMode(Goto, useredged)
(Starting)
#ThisWillPlayTheAudio
#Stop
You did @EdgeMode(Normal)
@End
(useredged)
#Stop
You failed @Wait(20)
Let's try again @Goto(Starting)