Counting mouse clicks

27 views
Skip to first unread message

Cindia Lai

unread,
Feb 26, 2014, 7:01:59 PM2/26/14
to twee...@googlegroups.com
is there a function or script where I can count how many mouse clicks on a certain word.

Example i want to make a game where I ask the player to click a certain word and depending how how many times they click it, it goes to different passage depending on the clicks.

André Berthiaume

unread,
Mar 1, 2014, 2:40:18 PM3/1/14
to twee...@googlegroups.com
There would be two ways depending on how you build your story.

The easiest would probably be to make a variable and increase it's value when the link is clicked and then you make a :

<<if $var eq #>>
<<display "passagename">>
<<elseif...>>

The second one would be with the visited macro.

<<if visited ("passagename") eq true >>
<<dispaly "anotherpassage">>

Cindia Lai

unread,
Mar 1, 2014, 10:06:23 PM3/1/14
to twee...@googlegroups.com
thank you i will try that
Reply all
Reply to author
Forward
0 new messages