1
0
EQ2Emu/docs/lua_functions/StartConversation.md

30 lines
1.1 KiB
Markdown

### Function: StartConversation(conversation, source, player, text, mp3, key1, key2, language, can_close)
**Description:**
Begin a conversation with the Player from the Source Spawn with the previously established conversation options.
**Parameters:**
- `conversation` (Conversation) - Conversation object representing `conversation`.
- `source` (Spawn) - Spawn object representing `source`.
- `player` (Spawn) - Spawn object representing `player`.
- `text` (string) - String `text`.
- `mp3` (int32) - Integer value `mp3`.
- `key1` (int32) - Integer value `key1`.
- `key2` (int32) - Integer value `key2`.
- `language` (int32) - Integer value `language`.
- `can_close` (bool) - Boolean flag `can_close`.
**Returns:** None.
**Example:**
```lua
-- From Quests/Antonica/attack_of_the_killer_bear.lua
function Accepted(Quest, QuestGiver, Player)
FaceTarget(QuestGiver, Player)
local conversation = CreateConversation()
AddConversationOption(conversation, "I will be careful.")
StartConversation(conversation, QuestGiver, Player, "Be careful though! This one is big!")
end
```