openquest/openquest-lib/tests/data/test.quest
2023-06-15 10:40:46 +01:00

33 lines
617 B
Plaintext

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