Thanks both of you, but the problem isn't showing or switching the images, both work fine. The problem is that when switched back from static to random image, it doesn't get picked randomly, for that to work the game has to restart.
@zmook opposed to if/else, ConditionSwitch is explicitely meant to be used with displayables, it won't work without anything else. The biggest advantage for me is that you can shorten the amount of code a good bit when you have several images with conditions.
Imagine this one using if/else instead:
Code: Select all
image d10ahd44= ConditionSwitch(
"of10 and not of11 and not of12", "/jpg/d10ahd44_1.jpg",
"of10 == 2", "/jpg/d10ahd44_1.jpg",
"of11 and not of10 and not of12", "/jpg/d10ahd44_2.jpg",
"of12 and not of11 and not of10", "/jpg/d10ahd44_3.jpg",
"of10 and of11 and not of12", "/jpg/d10ahd44_[edress1a2].jpg",
"of10 and not of11 and of12", "/jpg/d10ahd44_[edress1a3].jpg",
"of11 and not of10 and of12", "/jpg/d10ahd44_[edress2a3].jpg",
"of10 and of11 and of12", "/jpg/d10ahd44_[edressall].jpg",
"True", "/jpg/d10ahd44.jpg")