Rudgar
Content Creator
- Joined
- Nov 18, 2016
Ahoy!
I working on a dialogue in which the user should be able to switch through some (in this case 3) different groups with different backgrounds in different subfolders. It starts with an initiating "group 0" and switches to the next until it reached the last one, from which it switches to "group 1" (not "group 0")
This is the code as far I got it yet.
Nice, but ... I'd rather have it like this:
Is there a way to get this work somehow?
Thanks in advance and kind regards,
Me
I working on a dialogue in which the user should be able to switch through some (in this case 3) different groups with different backgrounds in different subfolders. It starts with an initiating "group 0" and switches to the next until it reached the last one, from which it switches to "group 1" (not "group 0")
This is the code as far I got it yet.
Code:
start:"[BUTTON1_ON][grp]" {"set":{"grp":0, "da.button1.name":"Next"}}
button1:"[grp]" {"set":{"grp":"+1"}}
grp:"[HIDE_HER][HIDE_HAIR][grp*grp*]"
grp0:"[CHANGE_BACKGROUND][set_menu*grp*]" {"set":{"da.background.load":"Grp0/BG.png"}}
grp1:"[CHANGE_BACKGROUND][set_menu*grp*]" {"set":{"da.background.load":"Grp1/BG.png"}}
grp2:"[CHANGE_BACKGROUND][set_menu*grp*]" {"set":{"da.background.load":"Grp2/BG.png"}}
grp3:"[CHANGE_BACKGROUND][set_menu*grp*]" {"set":{"da.background.load":"Grp3/BG.png"}}
grp4:"[grp]" {"set":{"grp":1}}
Code:
start:"[BUTTON1_ON][grp]" {"set":{"grp":0, "da.button1.name":"Next"}}
button1:"[grp*( grp > 3 )*]" {"set":{"grp":"+1"}}
grp1:"[grp*( grp > 3 )*]" {"set":{"grp":1}}
grp0:"[CHANGE_BACKGROUND][set_menu*grp*]" {"set":{"da.background.load":"Grp*grp*/BG.png"}}
Thanks in advance and kind regards,
Me