Lua Question concerning MessageBox


  • 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