new
(
string
dialogue_id
,
string
text
,
string
title
= ""
,
string
subject
= ""
,
string
unlock_flag
= "none"
,
string
action
= "none"
)
__gc
(
)
__eq
(
am.dialogue
rhs
)
->
(
boolean
)
text
(
)
->
(
string
)
text
(
string
text
)
->
(
am.dialogue
)
title
(
)
->
(
string
)
title
(
string
title
)
->
(
am.dialogue
)
id
(
)
->
(
string
)
id
(
string
id
)
->
(
am.dialogue
)
subject
(
)
->
(
string
)
subject
(
string
subject
)
->
(
am.dialogue
)
unlock
(
)
->
(
string
)
unlock
(
string
flag
)
->
(
am.dialogue
)
action
(
)
->
(
string
)
action
(
string
action
)
->
(
am.dialogue
)
static
add_dialogue
(
am.dialogue
dialogue
)
->
(
boolean
)
static
remove_dialogue
(
string
dialogue_id
)
->
(
boolean
)
static
remove_all_dialogue
(
)
->
(
)
static
dialogue
(
string
dialogue_id
)
->
(
am.dialogue
)
on
(
string
event_type
,
function
listener
,
table
content
= nil
)
->
(
boolean
)
off
(
string
event_type
,
function
listener
,
table
context
= nil
)
->
(
boolean
)
has_event_listener
(
string
event_type
)
->
(
boolean
)
new
(
string
dialogue_id
,
string
text
,
string
title
= ""
,
string
subject
= ""
,
string
unlock_flag
= "none"
,
string
action
= "none"
)
__gc
(
)
__eq
(
am.dialogue
rhs
)
->
(
boolean
)
text
(
)
->
(
string
)
text
(
string
text
)
->
(
am.dialogue
)
title
(
)
->
(
string
)
title
(
string
title
)
->
(
am.dialogue
)
id
(
)
->
(
string
)
id
(
string
id
)
->
(
am.dialogue
)
subject
(
)
->
(
string
)
subject
(
string
subject
)
->
(
am.dialogue
)
unlock
(
)
->
(
string
)
unlock
(
string
flag
)
->
(
am.dialogue
)
action
(
)
->
(
string
)
action
(
string
action
)
->
(
am.dialogue
)
static
add_dialogue
(
am.dialogue
dialogue
)
->
(
boolean
)
static
remove_dialogue
(
string
dialogue_id
)
->
(
boolean
)
static
remove_all_dialogue
(
)
->
(
)
static
dialogue
(
string
dialogue_id
)
->
(
am.dialogue
)
on
(
string
event_type
,
function
listener
,
table
content
= nil
)
->
(
boolean
)
character:on("talkTo", function(event) am_log("Character talked to") end)
off
(
string
event_type
,
function
listener
,
table
context
= nil
)
->
(
boolean
)
function talkToOnce(event) am_log("Character talked to once") character:off("talkTo", talkToOnce) end character:on("talkTo", talkToOnce)
has_event_listener
(
string
event_type
)
->
(
boolean
)