quest test begin state simple begin when trigger begin do_something() end when trigger with condition begin something() end end state trigger_complex begin when trigger."some" begin triggered_some() end function triggered_some() -- Lua section as well end end state expressions begin when trigger with 1 > 2 begin end when trigger begin if 1 > 1 then -- Reached a basic condition context end end end end