问题在于我在得分版本的位置,$ numOrder相当于c1 c2 c3的orderedArray,但我似乎无法将它们用作点击的钩子。错误消息表明它需要?this或字符串。可以点击钩子是一个数字吗?
(print: "$temp <br/>")
<b>(print: "$c1 $c2 $c3")</b>
(set: $numOrder to (sorted:...(a:$c1,$c2,$c3)))
(if: $temp is $Bigger)
[
(click:$numOrder's 1st)[(set:$score to $score-0.5)]
(click:$numOrder's 2nd)[(set:$score to $score-0.5)]
(click:$numOrder's 3rd)[(set:$score to $score+1)]
]
(elseif:$temp is $Smaller)
[
(click:$numOrder's 1st)[(set:$score to $score+1)]
(click:$numOrder's 2nd)[(set:$score to $score-0.5)]
(click:$numOrder's 3rd)[(set:$score to $score-0.5)]
]
(else:)
[
(click:$numOrder's 1st)[(set:$score to $score-0.5)]
(click:$numOrder's 2nd)[(set:$score to $score+1)]
(click:$numOrder's 3rd)[(set:$score to $score-0.5)]
]
]
(else:)
[
(print:"<br\><br\>Well that was easy!")
(stop:)
]
]}