// script that makes randomized images concept G22Challenge > G22LAScript { S type = "Single Image"; bool usesRNG; // types sS type_singleImage = "Single Image"; sS type_animation = "Animation"; static LS types = ll(type_singleImage, type_animation); void _onChange :: after { lvType?.set(type); lvUsesRNG?.set(usesRNG); } transient SimpleLiveValue lvType; synchronized SimpleLiveValue lvType() { ret lvType if null = new SimpleLiveValue(S, type).onChange(r { setField(type := lvType!); }); } transient SimpleLiveValue lvUsesRNG; synchronized SimpleLiveValue lvUsesRNG() { ret lvUsesRNG if null = new SimpleLiveValue(Bool, usesRNG).onChange(r { setField(usesRNG := lvUsesRNG!); }); } }