Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]

Author Topic: Quality control  (Read 2332 times)

Raidau

  • Bay Watcher
    • View Profile
Re: Quality control
« Reply #15 on: December 29, 2014, 09:02:27 am »

there is a script for quality too
Logged
Marital status manipulator
Custom item descriprions
Natural Balance Mod (2013-2015) development suspended...

Boltgun

  • Bay Watcher
  • [UTTERANCES]
    • View Profile
Re: Quality control
« Reply #16 on: December 29, 2014, 11:41:16 am »

That would be a very nice script to have. Reaction accepts any weapon that is not masterwork, levels it up one quality level. I'd put that into MasterworkDF in a heartbeat.

Guess what?  ;)
https://github.com/Meph248/MDF-Dev-Version/blob/master/Dwarf%20Fortress/raw/objects/reaction_fooccubus.txt#L490

All reactions named 'LUA_HOOK_IMPROVE_ITEM_...' raises the quality or the 'target' reagent based on its worker's skills (+1 every 3 levels). Roses improveitem can also raise it by one level instead of using skills.

There is no way to prevent DF from picking a masterwork reagent however so I limit to one upgrade per item using decorations.

Not guaranted for DF2014, I must update that using the newest and more supple items/improve.
« Last Edit: December 29, 2014, 11:49:29 am by Boltgun »
Logged

Manzeenan

  • Bay Watcher
  • [SLOWLEARNER]
    • View Profile
Re: Quality control
« Reply #17 on: December 29, 2014, 12:05:45 pm »

stockpiles have a quality control function, just exclude any masterworks and only take from said stockpile
Logged

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: Quality control
« Reply #18 on: December 29, 2014, 03:07:38 pm »

Okay, this would be about the 311th time I've re-invented the wheel.  Though it's useful to me as a learning experience, I wish there was an easier way to find existing scripts.
Logged
Just got back, updating:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map

milo christiansen

  • Bay Watcher
  • Something generic here
    • View Profile
Re: Quality control
« Reply #19 on: December 29, 2014, 03:11:07 pm »

I reinvent the wheel all the time, it's a way better way to learn than just using something pre-made and you often get something that better fits your needs :)
Logged
Rubble 8 - The most powerful modding suite in existence!
After all, coke is for furnaces, not for snorting.
You're not true dwarven royalty unless you own the complete 'Signature Collection' baby-bone bedroom set from NOKEAS

Boltgun

  • Bay Watcher
  • [UTTERANCES]
    • View Profile
Re: Quality control
« Reply #20 on: December 29, 2014, 03:49:31 pm »

stockpiles have a quality control function, just exclude any masterworks and only take from said stockpile

Using actual interfaces provided by the game. I always forget to do that.

I like to read others scripts a lot, but when given the choice I prefer to give simple tools for others.
Logged

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: Quality control
« Reply #21 on: December 29, 2014, 03:58:12 pm »

The script you are looking for already exists, see here
http://www.bay12forums.com/smf/index.php?topic=135597.0
It looks like improve.lua is a far more general solution.  It also doesn't check the current quality level before changing it, so upgrading a masterful item would allegedly change it into an artifact.  Not sure what downgrading an ordinary item would do, either.
Logged
Just got back, updating:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Quality control
« Reply #22 on: December 29, 2014, 06:05:24 pm »

That would be a very nice script to have. Reaction accepts any weapon that is not masterwork, levels it up one quality level. I'd put that into MasterworkDF in a heartbeat.

Guess what?  ;)
https://github.com/Meph248/MDF-Dev-Version/blob/master/Dwarf%20Fortress/raw/objects/reaction_fooccubus.txt#L490

All reactions named 'LUA_HOOK_IMPROVE_ITEM_...' raises the quality or the 'target' reagent based on its worker's skills (+1 every 3 levels). Roses improveitem can also raise it by one level instead of using skills.

There is no way to prevent DF from picking a masterwork reagent however so I limit to one upgrade per item using decorations.

Not guaranted for DF2014, I must update that using the newest and more supple items/improve.
:D

Seens I dont have to put it into Masterwork after all... since its already included. Oh man, the mod is really a bit big by now.
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::
Pages: 1 [2]