Table of Contents

Class TimbnAsk

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

The answers of one Ask, each with the lines that follow it.

public sealed class TimbnAsk
Inheritance
TimbnAsk
Inherited Members

Methods

Answer(string, Action<TimbnLines>?, Action<TimbnNeeds>?, Action<TimbnCost>?, Action<TimbnRewards>?, string?)

One answer the player can pick.

public TimbnAsk Answer(string text, Action<TimbnLines>? then = null, Action<TimbnNeeds>? needs = null, Action<TimbnCost>? cost = null, Action<TimbnRewards>? reward = null, string? key = null)

Parameters

text string

The answer.

then Action<TimbnLines>

What follows it. Leave it out to carry straight on.

needs Action<TimbnNeeds>

What has to be true to pick it, checked but not taken, such as reputation with the NPC the player is talking to. The answer shows a lock for each and is grayed out until they are all met.

cost Action<TimbnCost>

What the player pays when they pick it. The answer shows the price and is grayed out until they can pay.

reward Action<TimbnRewards>

What the player gets for picking it. The game pays money, items and resources when it is picked, and Core pays reputation with the NPC the player is talking to.

key string

A name for the answer's localization key, such as accept, in place of a number. See Named(string).

Returns

TimbnAsk

These answers, for chaining.