Class TimbnQuestOffer
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
thenAction<TimbnLines>What the NPC says after it.
needsAction<TimbnNeeds>What has to be true to pick it. Reputation is with the quest giver.
costAction<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
textstringThe answer.
thenAction<TimbnLines>What the NPC says after it. Leave it out to say nothing.
needsAction<TimbnNeeds>What has to be true to pick it. Reputation is with the quest giver.
costAction<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
thenAction<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
textstringThe answer.
thenAction<TimbnLines>What the NPC says after it. Leave it out to say nothing.
Returns
- TimbnQuestOffer
This conversation, for chaining.