Class TimbnNeeds
What has to be true before the player can go on, checked but never taken. On an answer the game draws each need as a lock and grays the answer out until they are all met. On a quest or stage they gate its talk, so the NPC only offers it once they are met. To take something from the player, use TimbnCost.
public sealed class TimbnNeeds
- Inheritance
-
TimbnNeeds
- Inherited Members
Examples
.Needs(need => need.Reputation(30).OnWeekday(TimbnWeekday.Pride).Item("shovel"))
Methods
Gratitude(float)
Gratitude, which the town vendors ask for.
public TimbnNeeds Gratitude(float amount)
Parameters
amountfloatHow much.
Returns
- TimbnNeeds
These needs, for chaining.
Item(string, int)
Items the player has to carry but keeps.
public TimbnNeeds 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
- TimbnNeeds
These needs, for chaining.
Money(int)
Money the player has to have but keeps, in the game's raw units, where 100 is one silver coin.
public TimbnNeeds Money(int amount)
Parameters
amountintHow much.
Returns
- TimbnNeeds
These needs, for chaining.
OnWeekday(TimbnWeekday)
Only on one day of the week, shown with the day's icon. One day per answer.
public TimbnNeeds OnWeekday(TimbnWeekday day)
Parameters
dayTimbnWeekdayThe day.
Returns
- TimbnNeeds
These needs, for chaining.
OrderCompleted(string)
One of the town vendors' orders finished this week, such as quest_order_iron. One order per answer.
public TimbnNeeds OrderCompleted(string orderId)
Parameters
orderIdstringThe order id.
Returns
- TimbnNeeds
These needs, for chaining.
Reputation(int)
Reputation with the NPC the player is talking to, such as the favor a vendor asks for before a job. Herm and the village head share one reputation.
public TimbnNeeds Reputation(int amount)
Parameters
amountintHow much.
Returns
- TimbnNeeds
These needs, for chaining.
Resource(string, float)
A resource the player has to have but keeps.
public TimbnNeeds Resource(string resourceId, float amount)
Parameters
Returns
- TimbnNeeds
These needs, for chaining.