Lua Question concerning MessageBox

BECOME PART OF THE COMMUNITY - Sign up here

  • How do I read informations from "commands" ?


    I want to stop script to roll if I am missing informations.. But I can't find how to extract value from "commands", so I could ue the Cancel button.


    Thank you

  • the chosen command of a MessageBox is returned as table-entry result, not as commands


    Code
    If resultTable.result == 1 then
    --do stuff
    end


    if all you actually need is a confirmation box, there is a dedicated function for this:


    Code
    if Confirm('TEST_1','INFORMATION') then
    --do stuff
    end

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!