Class TimbnAsk
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
textstringThe answer.
thenAction<TimbnLines>What follows it. Leave it out to carry straight on.
needsAction<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.
costAction<TimbnCost>What the player pays when they pick it. The answer shows the price and is grayed out until they can pay.
rewardAction<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.
keystringA name for the answer's localization key, such as accept, in place of a number. See Named(string).
Returns
- TimbnAsk
These answers, for chaining.