No categories assigned

LUA:OfferQuest

Revision as of 16:49, 3 April 2009 by Xanibunib (talk | contribs) (New page: '''Syntax'''<br> OfferQuest(Quest, QuestID) '''Explination'''<br> This is used to offer a quest to the player. '''Example'''<br> Here is an example from a conversation between the playe...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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