No categories assigned
LUA:StartDialogConversation
- Last edited 12 years ago by I need to Update My Profile
Contents
LUA Functions: StartDialogConversation()
Starts a conversation with the blue dialog box, or normal bubble conversation with them self
Syntax
StartDialogConversation(param1, param2, param3, param4, param5, [param6], [param7], [param8])
Parameters
- Required - param1 (Conversation), param2 (int8), param3 (Spawn or Item), param4 (Spawn), param5 (string)
- param1 is conversation to start
- param2 is the type of conversation
- param3 is the spawn or item talking
- param4 is the player it is talking to
- param5 is the message
- Optional - param6 (String), param7 (int32), param8 (int32)
- param6 is the voice over mp3 file
- param7 is the first key for the mp3
- param8 is the second key for the mp3
Usage
function used(Item, Spawn)
local con = CreatConversation()
AddConversationOption(con, "I must be crazy")
StartDialogConversation(con, 4, Item, Spawn, "I am talking to myself")
end
When the player uses an item they will start a conversation with themselves
Notes
Types:
1 = Spawn, blue dialog box
2 = Item, blue dialog box
3 = Spawn, conversation with self
4 = Item, conversation with self