Jump to content

Please clarify some config options

Pending 0.3.1

ToliburtiX
ToliburtiX

Posted (edited)

Hello,

please clarify the two config options 

a) "Allow to create item if it is not in inventory?" and 

b) "Allow to give item when respawning?"

For my understanding, if b) is set to true, the NPC gets 1 piece of the item at spawn/respawn. It will use it if applicable, and throw it away once it is defective. With only b. set to true, the NPC will only get a new one at respawn, or it finds one.

But what does a) mean if set to true? In which cases is the item created? At what time? When it needs one, or prior? Does the NPC need to have the right resources for crafting in the inventory? if a) is set too true, does the value of b) matter?

A question regarding priority order: Does it mean use/create the best one you have out of the list? Or does it mean, begin with the least one, and get better from time to time? So for example, first use the stone-axe, and when it's done, create a hatched, and so on.

A little wish/suggestion: Would be nice if the list of wear items at spawn would be a list of lists [[...], [...], ...] . So we can have different clothing-sets (one set randomly selected at spawn) with only one NPC definition. Same for the box-skins when inventory overflows.

Thanks for your time and greetings,

ToliburtiX

Edited by ToliburtiX
walkinrey

Posted

"Allow to create item if it is not in inventory?" - item is created when bot need it: for example, he needs to gather wood, so hatchet/axe will be created 

"Allow to give item when respawning?" - bot will be spawned with this item

5 hours ago, ToliburtiX said:

Does the NPC need to have the right resources for crafting in the inventory?

Bots are not crafting anything, items are just spawning

5 hours ago, ToliburtiX said:

A question regarding priority order: Does it mean use/create the best one you have out of the list? Or does it mean, begin with the least one, and get better from time to time? So for example, first use the stone-axe, and when it's done, create a hatched, and so on.

For example, you have next list:
rifle.ak
pistol.m92
pistol.python
Bot needs to fight, and he starts searching for weapons in his inventory based on this priority list from config. If "Allow to create item if it is not in inventory?" is not enabled and no such item in his inventory, he skips it and searches for next item. So, you can setup him to use looted weapons or spawn himself needed weapons from config, no crafting here

ToliburtiX

Posted

Thanks for your answer.

An advise for other users: If "Allow to create item if it is not in inventory?" is set and the bot gets in combat situation, the weapon is NOT created, if there is not already suitable ammunition in the inventory, or "Use ammo?" is set to false. 

2.2m

Downloads

Total number of downloads.

10.3k

Customers

Total customers served.

149.2k

Files Sold

Total number of files sold.

3.2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.