No categories assigned

LUA:OfferQuest

Syntax
OfferQuest(Quest, QuestID)

Explination
This is used to offer a quest to the player.

Example
Here is an example from a conversation between the player and Brood Matron Vrim Malthyk.


 function dlg_1_5(NPC, Spawn)
   FaceTarget(NPC, Spawn)
   conversation = CreateConversation()
OfferQuest(NPC, Spawn, QUEST_2) PlayFlavor(NPC, "voiceover/english/tutorial_revamp/brood_matron_vrim_malthyk/fprt_hood06/rcp_vrim021.mp3", "", "", 791154437, 3626211974, Spawn) AddConversationOption(conversation, "Then, I'm off!") StartConversation(conversation, NPC, Spawn, "No, that should be enough to send those two off the deep end. You should be able to find Tristan near the Heated Stone Inn and Wesley tends to lurk around the South Freeport Gate.") end

For the sake of keeping the example visible I have added a break in the "StartConversation" line, this should remain a single line in your script.


Back to LUA Functions