Class TimbnCost
What the player pays for an answer or a quest step, taken when they pick the answer. The game draws each cost as the item's icon or the price with how much the player has, and grays the answer out until they can pay. Something the player only has to have goes in TimbnNeeds instead.
public sealed class TimbnCost
- Inheritance
-
TimbnCost
- Inherited Members
Examples
.Cost(cost => cost.Money(200))
Methods
Item(string, int)
Items the player hands over.
public TimbnCost Item(string itemId, int count = 1)
Parameters
itemIdstringThe item id, with its quality suffix where it has one, such as grape_wine:1.
countintHow many.
Returns
- TimbnCost
This cost, for chaining.
Money(int)
Money in the game's raw units, where 100 is one silver coin and 10,000 one gold coin.
public TimbnCost Money(int amount)
Parameters
amountintHow much.
Returns
- TimbnCost
This cost, for chaining.
Resource(string, float)
A resource the player pays.
public TimbnCost Resource(string resourceId, float amount)
Parameters
Returns
- TimbnCost
This cost, for chaining.