Code: Select all
#Satchel Normal Live Composite
image sat normal = LiveComposite(
(438, 1500),
(0, 0), "sat body base.png",
(0, 0), "sat bra 01.png",
(0, 0), "sat panty 01.png",
(0, 0), "sat shirt 01.png",
(0, 0), "sat_arms",
(0, 0), "sat shirt 01 shoulder.png",
(0, 0), "sat hair back curl 01.png",
(0, 0), "sat head forward.png",
(0, 0), "sat hair base.png",
(0, 0), "sat eye blink",
(0, 0), "sat mouth",
(0, 0), "sat hair front fringe 001.png")
So far, I was able to insert a simple ATL image that makes this character's eyes blink, and a separate one that uses condition switch _last_speak to control lip flap.
Now, I have put in one image that is atl choice statement, ""sat_arms". I did some search around and I found instead of using condition switch, I can apply variable check to choice, apparently, so this was what I came up with.
Code: Select all
$ satap=1
image sat_arms:
choice (satap==1):
"sat arm back.png"
choice (satap==2):
"sat arm front.png"
After fiddling around a little, I created an init: block and put that variable in there, however the live composition would not change if I were to change the variable by putting something like
"$ satap=2" in the body of the script. It'll just display whatever number that is in the init block.
Although I found its not the problem with "choice" statement itself I think. If I were to do one like the example from the documentation, it does randomly choose one of the arm poses everytime the composite was displayed. If I put pause and repeat, it'll animated it randomly, but if I were to insert a variable change, it does nothing, only display based on variable from the init: block.
I thought I needed to reload the composite for it to take effect so I did an experiment to see if after changing variable and showing the composite to see if it work, but nothing changes.
Code: Select all
label start:
scene bg betaman room 001
show sat normal at top with dissolve
s "this is a test."
hide sat normal at top with dissolve
$ satap="2"
show sat normal at top with dissolve
s "to see if my pose change base on varialbe change."
$ satap="1"
show sat normal at top with dissolve
I am not sure what I am doing wrong in this, thanks for reading.