ATL like choices in labels
Posted: Fri Feb 03, 2023 1:54 pm
Hi guys,
Is it possible to implement a "choice" feature from the ATL into regular labels?
I like how I can do this:
And Lucy will stay calm for 4 seconds then do a wierdo with 3 random variations for 1 second, and return to calm for another 4 seconds.
It would be awesome if I could do something similar in dialogs:
I know I can use renpy.random for that purpose, and thats what I'm using right now:
But there is a couple downsides in this method in comparison to "choices" in ATL:
- things it's starting getting harder when I need to use random within another random
- I have to specify amount of variations beforehand
- weighted random are harder to do
Is it possible to implement a "choice" feature from the ATL into regular labels?
I like how I can do this:
Code: Select all
image lucy:
"lucy_calm"
4.
choice:
"lucy_wierd_1"
choice:
"lucy_wierd_2"
choice:
"lucy_wierd_3"
1.
repeat
It would be awesome if I could do something similar in dialogs:
Code: Select all
label classroom:
"I've entered a classroom."
choice:
friend1 "Whatsup?"
choice:
friend2 "Yo!"
choice:
classmates "(Noise)"
call screen WhatToDoInClassroom()
Code: Select all
label classroom:
"I've entered a classroom."
$ my_random = renpy.random.randint(1, 3)
if my_random == 1:
friend1 "Whatsup?"
elif my_random == 2:
friend2 "Yo!"
elif my_random == 3:
classmates "(Noise)"
call screen WhatToDoInClassroom()
- things it's starting getting harder when I need to use random within another random
- I have to specify amount of variations beforehand
- weighted random are harder to do