#lua cutscenes help

82 messages · Page 1 of 1 (latest)

lean python
#

<@&673391557939953684> im trying to make a lua talker to set up a darkness level after the talker is interacted with, but couldnt make it set the darkness, the dialog works

warm moat
#

I'd assume setDarkness accepts a number, not a string

lean python
#

i couldnt make it work with a number either for some reason thonkeline

surreal radish
#

does lua allow spaces before parentheses in the function call?

lean python
#

huh????????????????????????

#

ok nvm

#

no it still doesnt work

#

doesnt work

#

yep no

#

does this command like

#

not work????

warm moat
#

Does anything show up in the log?

surreal radish
#

have you tried it with an extreme value to make sure it's actually not working?

lean python
lean python
#

yep it definitely does nothing

surreal radish
#

it does, it sets bloom rad3dpausecorn

lean python
#

WHAT??????????????*

#

so there is no darkness command????????????????**

surreal radish
#

doesn't look like it

lean python
#

@split bay ohnoshiro

lost crow
#

There's another one for bloom strength too ohnoshiro

lean python
#

🗞️

#

how did no one notice this????

surreal radish
#

I'm assuming people just used set darkness alpha triggers

lean python
#

this is a talker though

surreal radish
#

also you can still just set Session.DarkRoomAlpha from lua cutscenes

lean python
#

how do i do that?

#

i dont know c#

#

like

#

at all

lost crow
#

I'm not sure DarkRoomAlpha would do it, it's only applied on room load it seems

lean python
surreal radish
#

does the same apply to level.DarkRoom?

#

looks like it yeah

lean python
#

soooooooooooooooooooooo

lost crow
#

this happens on room load

#

you probably want engine.Scene.Lighting.Alpha = amount to set the lighting immediately, but you might also want to mess with the session to have the value persist (unless you also use a light fade trigger) laugheline

lean python
#

well

surreal radish
#

(to get engine, do local engine = require("#monocle.engine"))

lean python
#

this did not work either

lost crow
#

oh, or you can do getLevel().Lighting.Alpha = amount

lean python
#

can you write it out ohnoshiro im stupid for c sharp lua syntax

lost crow
#

does it say the dialogue? thinkeline

surreal radish
#

just replace amount with the value you want

lean python
#

worked

#

but now the dialog doesnt

lost crow
#

and there's literally nothing between the lighting changing and the dialog? ohnoshiro

lean python
#

wait nvm

#

ok got it to work

#

thanks

#

also cruor 🗞️

#

solved

#

!

lean python
#

uh

#

unsolved

#

im now gonna ask something else

#

@surreal radish or whoever knows fmod fuckery

#

doesnt play sound

#

i did everything according to the wiki page

surreal radish
#

uhhh idk shit about fmod sorry

lean python
#

@lost crow ?

warm moat
#

Does your event show up in the sound test menu?

lean python
#

uhhhhhhhhhhhhhhhhhhhhhhh

#

no

#

😭 I HATE FMOD

#

I DID EVERYTHING RIGH

surreal radish
#

if you just created the bank, did you restart the game?

#

otherwise, if you just created the event, do you have fmod live update on?

lean python
#

pretty sure i have live update on?

#

restarted the game

#

does

#

not work

#

enough celeste for today im tired holy fuck

split bay