Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Marking an item as grown using DFhack?  (Read 758 times)

LargeSnail

  • Bay Watcher
  • Sluggish Modder
    • View Profile
Marking an item as grown using DFhack?
« on: September 29, 2019, 07:39:37 pm »

I'm developing an Elven Mod, and using DFhack I can create reactions to produce wooden items with its material selected from the local tree populations. The only problem I have is that, while those items are produced without cutting down any tree, they aren't properly "grown"; that is, they aren't recognised as growned items by the elven merchants and will make them upset anyways.

There's a flag (something like item.flags.grown = true) or whatever to mark an item as grown?

Warmist

  • Bay Watcher
  • Master of unfinished jobs
    • View Profile
Re: Marking an item as grown using DFhack?
« Reply #1 on: September 30, 2019, 02:07:27 am »

I'm developing an Elven Mod, and using DFhack I can create reactions to produce wooden items with its material selected from the local tree populations. The only problem I have is that, while those items are produced without cutting down any tree, they aren't properly "grown"; that is, they aren't recognised as growned items by the elven merchants and will make them upset anyways.

There's a flag (something like item.flags.grown = true) or whatever to mark an item as grown?
Yes.
item.flags2.grown=true