CreateConversation()
Pre-Requisite(s)
- None
Parameter(s)
- None
Return(s)
- Returns ConversationOption LUA Pointer
Example(s)
– Taken from SpawnScripts/FarJourneyFreeport/HelmsmanNyles.lua
function hailed(NPC, Spawn)
local conversation = CreateConversation() – CreateConversation creates a ConversationOption to use with AddConversationOption and StartConversation
AddConversationOption(conversation, "Yes", "leave")
AddConversationOption(conversation, "No")
if GetClass(Spawn)>0 then
AddConversationOption(conversation, "Wait, I'm just a commoner.\n\n[CLASSIC CLASS CHANGE TO COMMONER].","Commoner")
end
StartConversation(conversation, NPC, Spawn, "Head for land?\n[Leave The Far Journey?]")
end
function leave(NPC, Spawn)
– determine next action when Player selects “Yes”
end
Result
Additional Notes