Create account / Log in

Dice with Random AND also a set face

Talk about module design ideas and techniques.

Moderators: uckelman, Tim M

Dice with Random AND also a set face

Postby kerkael » October 27th, 2020, 10:06 pm

Hello there,

I'd like to use 6 faces dice. I named 6 images, and used the Randomize Key Command for the Layer trait, which is all fine.
But I'd also want these faces to be manually set !
As in : after dice were rolled in a classic random manner, you can change the face to what you want.
I can use Increase level AND random.
But I'd prefer to set the level (especially if I need to move to 20 faces dice, some day).

How would you propose both random AND manual face ?

Is there a property for the layer to be set, based on the layer name, just like there is one to get it ?
Module I developed: Terraforming Mars
Module I'm working on: Trismegistus
kerkael
 
Posts: 179
Joined: December 1st, 2017, 3:03 pm

Re: Dice with Random AND also a set face

Postby jrwatts » October 27th, 2020, 11:46 pm

Have the layer follow an expression (a dynamic property), and then have options on the dynamic property to either randomize it (set it to "Random(6)") or set it to a specific value.
jrwatts
 
Posts: 128
Joined: April 29th, 2020, 10:30 pm

Re: Dice with Random AND also a set face

Postby kerkael » October 28th, 2020, 4:44 pm

Ok, thx. Now that many functions are included in some traits, I forget to go back to the basics.
Module I developed: Terraforming Mars
Module I'm working on: Trismegistus
kerkael
 
Posts: 179
Joined: December 1st, 2017, 3:03 pm


Return to Module Design

Who is online

Users browsing this forum: No registered users and 4 guests

cron