|
Post by Reth on Jun 30, 2022 22:47:53 GMT
Hi everybody,
sorry for maybe asking dumb questions, but I am completely new to MSE. While helping working on a Template for the TCG named Redemption I came across the issue that when doing nested choices for card fields I am struggling to access those via inline-scripts used within the enabled-value.
Here is what I am talking about:
card field: type: multiple choice name: Brigade1 choice: Good Dominant choice: Evil Dominant choice: Artifact choice: Curse choice: Good Fortress choice: Evil Fortress choice: name: Good Brigade choice: name: All Good line below: true choice: name: Blue enabled: { not chosen(choice:"All Good",card.Brigade1) } choice: Clay choice: Gold choice: Green choice: Purple choice: Red choice: Silver choice: Teal choice: White choice: name: Evil Brigade choice: All Evil choice: Black choice: Brown choice: Crimson choice: Evil Gold choice: Gray choice: Orange choice: Pale Green So the nested choice menu works. But 1st thing I recognised is that the "line below" is not drawn. Second problem is: How do I get the enabled evaluation of the script working?
Since the choice named "Good Brigade" is a "sub-choice" of the choice named "Brigade1" I tried to access it via "card.Brigade1.Good_Brigade" which resulted in an error. Also accessing it via enabled: { not chosen(choice:"Brigade1 All Good",card.Brigade1) } does not work (it does nothing).
Question is: How can I access such nested choices? And how can I get separating lines working with them? Already did a search within then boards but did not find anything yet.
Thank you in advance!
Bye
|
|
|
Post by Reth on Jun 30, 2022 23:07:05 GMT
Hah! Managed to get it working.
Solution is:
card field: type: multiple choice name: Brigade1 choice: Good Dominant choice: Evil Dominant choice: Artifact choice: Curse choice: Good Fortress choice: Evil Fortress choice: name: Good Brigade choice: name: All Good line below: true choice: name: Blue enabled: { not chosen(choice:"Good Brigade All Good",card.Brigade1) } choice: Clay choice: Gold choice: Green choice: Purple choice: Red choice: Silver choice: Teal choice: White choice: name: Evil Brigade choice: All Evil choice: Black choice: Brown choice: Crimson choice: Evil Gold choice: Gray choice: Orange choice: Pale Green
But the "line below: true" does still not work. Any idea on that? <= works too
Thanks!
|
|