Twine Version:
[harlowe3.2.3]
Can the (count:) macro be applied to a sequence of variables?
I wanted the user to assign weight(+2, +1, +1, 0, 0, -1) to each of the 6 variables.
So I used (cycling-link:) to select
After counting the number of each weight through the (count:) macro,
If the number of weights does not match the set value, a short warning message is displayed.
(go-to: ) macro to force the previous passage to be selected again.
The rest of the code works fine, but the problem occurred at the (count: ) macro step. This macro probably doesn’t count variable values.
Is there any way to solve this problem? Or is there a way to implement my intent in better code? Please help…
These are my code(in error):
STR: (cycling-link: bind $STR, "+2", "+1", "0", "-1")
DEX: (cycling-link: bind $DEX, "+2", "+1", "0", "-1")
CON: (cycling-link: bind $CON, "+2", "+1", "0", "-1")
INT: (cycling-link: bind $INT, "+2", "+1", "0", "-1")
WIS: (cycling-link: bind $WIS, "+2", "+1", "0", "-1")
CHA: (cycling-link: bind $CHA, "+2", "+1", "0", "-1")
[[2]]
(a: $STR, $DEX, $CON, $INT, $WIS, $CHA)
+2:(count: (a: $STR, $DEX, $CON, $INT, $WIS, $CHA), +2)
+1:(count: (a: $STR, $DEX, $CON, $INT, $WIS, $CHA), +1)
0:(count: (a: $STR, $DEX, $CON, $INT, $WIS, $CHA), 0)
-1:(count: (a: $STR, $DEX, $CON, $INT, $WIS, $CHA), -1)