Jump to content

Poison = true Error


Izeick

Recommended Posts

Good time of day, faced with one problem when modding

I added one item that has a poison flag. However, if I craft it, it does not show its poisonous properties. But if I add it via the console, then everything is fine. What can it be related to? Does anyone know?

As always, code is pasted below

items.txt


item poisbottle
    {
        DisplayName         = poisbottle,
        DisplayCategory     = Poison,
        Type = Food,
        CustomContextMenu = Drink,
        ReplaceOnUse = Base.BottleEmpty,
        Poison = true,
        PoisonDetectionLevel = 7,
        PoisonPower = 150,
        UseForPoison = 35,
        Weight              = 1,
        Icon                = poisbottle,
        CookingSound        = BoilingFood,
        IsCookable          = TRUE,
        UseWhileEquipped    = FALSE,
        WorldStaticModel    =  poisbottle,
        MinutesToCook       = 60,
        ReplaceOnCooked     = POIS.poisbottle2,
        Tooltip  = Tooltip_PoisBottle
    }

recipes.txt

 

recipe cook poison
    {
        Base.BottleEmpty,
        POIS.comp1,
        POIS.comp2,
        keep Base.Spoon,
        
        Result: POIS.poisbottle,
        Time: 200,
        Category: Poison,
    }

Link to comment
Share on other sites

Try swapping the recipe result to Base.Bleach - if that works you will know its your mod causing the issue, if that also shows as non-poisonous then it could be a bug in the game.

 

You could also try dropping PoisonDetectionLevel to zero to see if that has any impact - the name suggests the poison is only visible when some skill (cooking?) is at level 7 or above.

Link to comment
Share on other sites

start over with the 1:1 copy for bleach.

also i noticed the display category poison - that might be an issue also 

 

DisplayCategory = Ammo,
Will be displayed as the item's category, can be anything but custom Categories need a Translation file.
Edited by excon
Link to comment
Share on other sites

12 hours ago, Hugo Qwerty said:

Try swapping the recipe result to Base.Bleach - if that works you will know its your mod causing the issue, if that also shows as non-poisonous then it could be a bug in the game.

 

You could also try dropping PoisonDetectionLevel to zero to see if that has any impact - the name suggests the poison is only visible when some skill (cooking?) is at level 7 or above.

Hi Hugo!
Whats about swapping to Base.Bleach - that works, poison scull shows up.

Whats about poison detection level,
extract from pz wiki:

image.thumb.png.0229aa5fa925dd58021c5e8e79ae7b6b.png

I tried on "0" and "10" lvl with zero cooking level, and this did not give results. Still thinking about this

Link to comment
Share on other sites

7 hours ago, excon said:

start over with the 1:1 copy for bleach.

also i noticed the display category poison - that might be an issue also 

 

DisplayCategory = Ammo,
Will be displayed as the item's category, can be anything but custom Categories need a Translation file.

So, 1:1 copy of bleach works fine.
However, displaycategory doesn't matter in this issue

Trouble shows up, when I add "IsCookable = TRUE," line
Mb pz cant define cookable item as poison?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...