Table of Contents

Class TimbnQuestOffer

Namespace
Timbn.GraveyardKeeperTwo.Core.Framework
Assembly
Timbn.GraveyardKeeperTwo.Core.dll

The conversation where the NPC offers the quest. It needs an Accept answer, and picking it starts the quest.

public sealed class TimbnQuestOffer : TimbnTalk<TimbnQuestOffer>
Inheritance
TimbnQuestOffer
Inherited Members

Methods

Accept(Action<TimbnLines>, Action<TimbnNeeds>?, Action<TimbnCost>?)

The Accept answer with its text only in the plugin's lang files, under the quest id plus _accept, such as my_craving_accept. Its lines follow from then, where Line(string, params object[]) reads my_craving_accept plus the line's name.

public TimbnQuestOffer Accept(Action<TimbnLines> then, Action<TimbnNeeds>? needs = null, Action<TimbnCost>? cost = null)

Parameters

then Action<TimbnLines>

What the NPC says after it.

needs Action<TimbnNeeds>

What has to be true to pick it. Reputation is with the quest giver.

cost Action<TimbnCost>

What the player pays to take the quest on.

Returns

TimbnQuestOffer

This conversation, for chaining.

Examples

.Accept(then => then.Line("thanks"))

Accept(string, Action<TimbnLines>?, Action<TimbnNeeds>?, Action<TimbnCost>?)

The player's answer that accepts and starts the quest. With needs or a cost it is grayed out with the game's locks and prices until the player has them. A cost is taken when it is picked, and given back if the quest can't start.

public TimbnQuestOffer Accept(string text, Action<TimbnLines>? then = null, Action<TimbnNeeds>? needs = null, Action<TimbnCost>? cost = null)

Parameters

text string

The answer.

then Action<TimbnLines>

What the NPC says after it. Leave it out to say nothing.

needs Action<TimbnNeeds>

What has to be true to pick it. Reputation is with the quest giver.

cost Action<TimbnCost>

What the player pays to take the quest on.

Returns

TimbnQuestOffer

This conversation, for chaining.

Examples

.Accept("I'll sort it out.", then => then.Say("Thanks!"), needs: need => need.OnWeekday(TimbnWeekday.Pride))

Decline(Action<TimbnLines>?)

The Decline answer with its text only in the plugin's lang files, under the quest id plus _decline.

public TimbnQuestOffer Decline(Action<TimbnLines>? then = null)

Parameters

then Action<TimbnLines>

What the NPC says after it. Leave it out to say nothing.

Returns

TimbnQuestOffer

This conversation, for chaining.

Decline(string, Action<TimbnLines>?)

The player's answer that turns the quest down for now. The NPC offers it again later.

public TimbnQuestOffer Decline(string text, Action<TimbnLines>? then = null)

Parameters

text string

The answer.

then Action<TimbnLines>

What the NPC says after it. Leave it out to say nothing.

Returns

TimbnQuestOffer

This conversation, for chaining.