I'm having difficulty create a trigger that has multiple trigger flags using the AddTrigger() and AddTriggerEx() functions.
Ideally I would like the trigger to have 3 flags set: Enabled, Regular Expression, and OneShot. I've tried with both "or" and "and" and the pipe operator "|" doesn't seem to work in Lua.
I've also tried with both AddTrigger() and AddTriggerEx().
Ideally I would like the trigger to have 3 flags set: Enabled, Regular Expression, and OneShot. I've tried with both "or" and "and" and the pipe operator "|" doesn't seem to work in Lua.
I've also tried with both AddTrigger() and AddTriggerEx().
function loginMenu()
if (not IsConnected()) then
AddTriggerEx("login_char", "^What is your character's name?", "oligo", trigger_flag.Enabled or trigger_flag.RegularExpression or trigger_flag.OneShot, custom_colour.NoChange, 0, "", "",sendto.world,100)
Connect()
end
end