You are viewing an old version of this page. Return to the latest version.
Version of 15:15, 12 September 2013 by I need to Update My Profile
Difference between revisions of "LUA:StartDialogConversation"
(Created page with "= LUA Functions: StartDialogConversation() = Starts a conversation with the blue dialog box, or normal bubble conversation with them self ==== Syntax ==== StartDialogConversati...") |
|||
| Line 43: | Line 43: | ||
== Reference == | == Reference == | ||
| − | [http://www.eq2emulator.net/phpBB3/viewtopic.php?f=3&t=3562] | + | [http://www.eq2emulator.net/phpBB3/viewtopic.php?f=3&t=3562 Forum post about this function] |
Latest revision as of 15:18, 12 September 2013
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