Skip to main content

AddAnswer

Function

local Dialogue = WXSCore.Dialogue
Dialogue:AddAnswer(answer, cb)

Parameters

NameTypeDescription
answerstringThe answer to add
cbfunctionThe function called when the answer is done typewriting

Example

local Dialogue = WXSCore.Dialogue
Dialogue:AddAnswer("I'll beat you for talking like that", function()
-- close the dialogue and initiate a fight!
end)