Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Questions, Tips and Ideas Thread  (Read 872 times)

Featheredragon

  • Bay Watcher
  • If someone says they are sane, then they're crazy.
    • View Profile
Questions, Tips and Ideas Thread
« on: November 19, 2014, 03:03:55 pm »

After modding offline I have built up quite the arsenal of questions. So I decided to make a thread that might answer these questions and help other modders. As well as questions I hope this thread will provide a resource that all modders, Beginner - Extreme - Nolife level all can appreciate.

 What have you learned as a DF modder that you would be willing to share that other modders can appreciate? What Questions would benefit not just you but also other modders?

So be a comrade and post your best stuff. I can ensure it will be appreciated.












Logged

Featheredragon

  • Bay Watcher
  • If someone says they are sane, then they're crazy.
    • View Profile
Re: Questions, Tips and Ideas Thread
« Reply #1 on: November 19, 2014, 03:24:26 pm »

Questions:
- Is it possible to make a ranged weapon strapped to the upper body like a backpack, for items such as a throwing knife bandolier or a bola pouch?
-Can you make an Item give a [NO_BREATH] symptom for a gas mask?
-Replacing default workshops with custom ones?
-making workshop subdirectories?
-Can covering a hide armor with a metal reinforce it?
-Clay mechanisms that shatter after use?
-Are evil biome weather symptoms contact, breathable or both and can you change this.

-using tools as weapons, and giving dwarves backup weapons. (Ex. Giving a marksman a short sword for close engagements)

Tips:
- Giving a civ [LOCKPICKER] and [TRAPAVOID] is bad if you want to lock a civ in, and if you want their re-animated corpses to trigger a trap.
-If you want a custom weapon (ex; cloth and leather slings) but want metal ammo, you can still put the ammo in your entity file and it will appear in the forge directory.
-Making you civ able to have aboveground food opens up your farming and brewing options a lot and prevents non-dwar civs for sating out with dwarven wine, beer, rum and such.

Raws:

Ceramic ammunition
Code: [Select]
[REACTION:CERAMIC_ARROW]
[NAME:Make ceramic tip arrows (20)]
[BUILDING:KILN:CUSTOM_SHIFT_G]
[REAGENT:clay:1:BOULDER:NONE:NONE:NONE]
[HAS_MATERIAL_REACTION_PRODUCT:FIRED_MAT]
[PRODUCT:100:20:AMMO:ITEM_AMMO_ARROWS:GET_MATERIAL_FROM_REAGENT:clay:FIRED_MAT]
[FUEL]
[SKILL:POTTERY]

[REACTION:CERAMIC_BOLT]
[NAME:Make ceramic bolts (20)]
[BUILDING:KILN:CUSTOM_SHIFT_G]
[REAGENT:clay:1:BOULDER:NONE:NONE:NONE]
[HAS_MATERIAL_REACTION_PRODUCT:FIRED_MAT]
[PRODUCT:100:20:AMMO:ITEM_AMMO_BOLTS:GET_MATERIAL_FROM_REAGENT:clay:FIRED_MAT]
[FUEL]
[SKILL:POTTERY]

[REACTION:CERAMIC_JAVELINS]
[NAME:Make ceramic tip javalins (10)]
[BUILDING:KILN:CUSTOM_SHIFT_G]
[REAGENT:clay:1:BOULDER:NONE:NONE:NONE]
[HAS_MATERIAL_REACTION_PRODUCT:FIRED_MAT]
[PRODUCT:100:10:ITEM_AMMO_JAVALINS_5:GET_MATERIAL_FROM_REAGENT:clay:FIRED_MAT]
[FUEL]
[SKILL:POTTERY]

[REACTION:CERAMIC_BULLET]
[NAME:Make ceramic sling bullet (30)]
[BUILDING:KILN:CUSTOM_SHIFT_G]
[REAGENT:clay:1:BOULDER:NONE:NONE:NONE]
[HAS_MATERIAL_REACTION_PRODUCT:FIRED_MAT]
[PRODUCT:100:30:AMMO:ITEM_AMMO_BULLET_L:GET_MATERIAL_FROM_REAGENT:clay:FIRED_MAT]
[FUEL]
[SKILL:POTTERY]

[REACTION:MAKE_CERAMIC_BALLISTA]
[NAME:Make ceramic ballista bolt]
[BUILDING:KILN:CUSTOM_SHIFT_G]
[REAGENT:clay:1:BOULDER:NONE:NONE:NONE]
[HAS_MATERIAL_REACTION_PRODUCT:FIRED_MAT]
[PRODUCT:100:1:SIEGEAMMO:ITEM_SIEGEAMMO_BALLISTA:GET_MATERIAL_FROM_REAGENT:clay:FIRED_MAT]
[FUEL]
[SKILL:POTTERY]

[REACTION:CERAMIC_DAGGER]
[NAME:Make ceramic dagger]
[BUILDING:KILN:CUSTOM_SHIFT_G]
[REAGENT:clay:1:BOULDER:NONE:NONE:NONE]
[HAS_MATERIAL_REACTION_PRODUCT:FIRED_MAT]
[PRODUCT:100:1:WEAPON:ITEM_WEAPON_DAGGER_LARGE:GET_MATERIAL_FROM_REAGENT:clay:FIRED_MAT]
[SKILL:POTTERY]

[REACTION:CERAMIC_SPEAR]
[NAME:Make ceramic spear]
[BUILDING:KILN:CUSTOM_SHIFT_G]
[REAGENT:clay:1:BOULDER:NONE:NONE:NONE]
[HAS_MATERIAL_REACTION_PRODUCT:FIRED_MAT]
[REAGENT:B:1:WOOD:NONE:NONE:NONE]
[PRODUCT:100:1:WEAPON:ITEM_WEAPON_SPEAR:GET_MATERIAL_FROM_REAGENT:clay:FIRED_MAT]
[FUEL]
[SKILL:POTTERY]

Glass Ammunition
Code: [Select]
[REACTION:GLASS_GREEN_ARROW]
[NAME:Make green glasstip arrows(20)]
[BUILDING:HUNT:CUSTOM_SHIFT_G]
[REAGENT:A:1:ROUGH:NONE:GLASS_GREEN:NONE]
[REAGENT:B:1:WOOD:NONE:NONE:NONE]
[PRODUCT:100:25:AMMO:ITEM_AMMO_ARROWS:GLASS_GREEN:NONE]
[SKILL:GLASSMAKER]

[REACTION:GLASS_GREEN_BOLT]
[NAME:Make green glasstip bolts(20)]
[BUILDING:HUNT:CUSTOM_SHIFT_G]
[REAGENT:A:1:ROUGH:NONE:GLASS_GREEN:NONE]
[PRODUCT:100:25:AMMO:ITEM_AMMO_BOLTS:GLASS_GREEN:NONE]
[SKILL:GLASSMAKER]

[REACTION:GLASS_GREEN_JAVELINS]
[NAME:Make green glasstip javelins(10)]
[BUILDING:HUNT:CUSTOM_SHIFT_G]
[REAGENT:B:1:WOOD:NONE:NONE:NONE]
[REAGENT:A:1:ROUGH:NONE:GLASS_GREEN:NONE]
[PRODUCT:100:15:AMMO:ITEM_AMMO_JAVELINS_FIVE:GLASS_GREEN:NONE
[SKILL:GLASSMAKER]

[REACTION:MAKE_GLASS_BALLISTA_GREEN]
[NAME:Make green glass ballista bolt]
[BUILDING:HUNT:CUSTOM_SHIFT_G]
[REAGENT:A:1:ROUGH:NONE:GLASS_GREEN:NONE]
[PRODUCT:100:1:SIEGEAMMO:ITEM_SIEGEAMMO_BALLISTA:GLASS_GREEN:NONE]
[SKILL:GLASSMAKER]

[REACTION:GLASS_GREEN_DAGGER]
[NAME:Make green glass dagger]
[BUILDING:HUNT:CUSTOM_SHIFT_G]
[REAGENT:A:1:ROUGH:NONE:GLASS_GREEN:NONE]
[PRODUCT:100:1:WEAPON:ITEM_WEAPON_DAGGER_LARGE:GLASS_GREEN:NONE]
[SKILL:GLASSMAKER]

[REACTION:GLASS_GREEN_SPEAR]
[NAME:Make green glass spear]
[BUILDING:HUNT:CUSTOM_SHIFT_G]
[REAGENT:A:1:ROUGH:NONE:GLASS_GREEN:NONE]
[REAGENT:B:1:WOOD:NONE:NONE:NONE]
[PRODUCT:100:1:WEAPON:ITEM_WEAPON_SPEAR:GLASS_GREEN:NONE]
[SKILL:GLASSMAKER]

Rock ammunition
Code: [Select]
[REACTION:MAKE_BOLTS_STONE]
[NAME:Make rock bolts (25)]
[BUILDING:HUNT:CUSTOM_ALT_R]
[REAGENT:A:2:BOULDER:NONE:NONE:NONE][WORTHLESS_STONE_ONLY]
[PRODUCT:100:25:AMMO:ITEM_AMMO_BOLTS:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:BOWYER]

[REACTION:MAKE_DARTS_STONE]
[NAME:Make rock atlatl darts (10)]
[BUILDING:HUNT:CUSTOM_ALT_R]
[REAGENT:A:2:BOULDER:NONE:NONE:NONE][WORTHLESS_STONE_ONLY]
[PRODUCT:100:10:AMMO:ITEM_AMMO_DARTS:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:BOWYER]

[REACTION:MAKE_BULLET_STONE]
[NAME:Make stone sling bullets (30)]
[BUILDING:HUNT:CUSTOM_B]
[REAGENT:A:2:BOULDER:NONE:NONE:NONE][WORTHLESS_STONE_ONLY]
[PRODUCT:100:30:AMMO:ITEM_AMMO_BULLET_L:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:BOWYER]

[REACTION:MAKE_AXE_THROW_STONE]
[NAME:Make stone throwing axe (30)]
[BUILDING:HUNT:CUSTOM_B]
[REAGENT:A:2:BOULDER:NONE:NONE:NONE][WORTHLESS_STONE_ONLY]
[PRODUCT:100:30:AMMO:ITEM_AMMO_AXE:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:BOWYER][REACTION:MAKE_ARROWS_STONE]

[NAME:Make rock arrows (20)]
[BUILDING:HUNT:CUSTOM_R]
[REAGENT:A:2:BOULDER:NONE:NONE:NONE][WORTHLESS_STONE_ONLY]
[PRODUCT:100:20:AMMO:ITEM_AMMO_ARROWS:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:BOWYER]

Cloth and leather weapons:

Code: [Select]
[REACTION:CLOTH_SLING]
[NAME:Make Cloth Sling]
[BUILDING:HUNT:CUSTOM_ALT_B]
[REAGENT:B:10000:CLOTH:NONE:NONE:NONE]
[PRODUCT:100:1:WEAPON:ITEM_WEAPON_SLING:GET_MATERIAL_FROM_REAGENT:B:NONE]
[SKILL:WEAVING]

[REACTION:CLOTH_BOLA]
[NAME:Make Cloth Bola Pouch]
[BUILDING:HUNT:CUSTOM_ALT_B]
[REAGENT:B:10000:CLOTH:NONE:NONE:NONE]
[PRODUCT:100:1:WEAPON:ITEM_WEAPON_BOLA_POUCH:GET_MATERIAL_FROM_REAGENT:B:NONE]
[SKILL:WEAVING]

[REACTION:CLOTH_BAND]
[NAME:Make Cloth Throwing Knife Bandolier]
[BUILDING:HUNT:CUSTOM_ALT_B]
[REAGENT:B:10000:CLOTH:NONE:NONE:NONE]
[PRODUCT:100:1:WEAPON:ITEM_WEAPON_THOWING_KNIFE_BAND:GET_MATERIAL_FROM_REAGENT:B:NONE]
[SKILL:WEAVING]

[REACTION:LEATHER_SLING]
[NAME:Make leather Sling]
[BUILDING:HUNT:CUSTOM_ALT_B]
[REAGENT:B:1:SKIN_TANNED:NONE:NONE:NONE]
[LEATHER]
[PRODUCT:100:1:WEAPON:ITEM_WEAPON_SLING:GET_MATERIAL_FROM_REAGENT:B:NONE]
[SKILL:LEATHERWORK]

[REACTION:LEATHER_BOLA]
[NAME:Make Leather Bola Pouch]
[BUILDING:HUNT:CUSTOM_ALT_B]
[REAGENT:B:1:SKIN_TANNED:NONE:NONE:NONE]SKIN_TANNED
[LEATHER]
[PRODUCT:100:1:WEAPON:ITEM_WEAPON_BOLA_POUCH:GET_MATERIAL_FROM_REAGENT:B:NONE]
[SKILL:LEATHERWORK]

[REACTION:LEATHER_BAND]
[NAME:Make Leather Throwing Knife Bandolier]
[BUILDING:HUNT:CUSTOM_ALT_B]
[REAGENT:B:1:SKIN_TANNED:NONE:NONE:NONE]SKIN_TANNED
[LEATHER]
[PRODUCT:100:1:WEAPON:ITEM_WEAPON_THOWING_KNIFE_BAND:GET_MATERIAL_FROM_REAGENT:B:NONE]
[SKILL:LEATHERWORK]

Ideas:

Sluice: no idea why its not working but the idea is sound.
Code: [Select]
[REACTION:SLUICE]
        [BUILDING:SLUICE:CUSTOM_S]
[NAME:Sluice clay for ore]
[REAGENT:clay:1:BOULDER:NONE:NONE:NONE]
        [PRODUCT:10:1:BOULDER:NO_SUBTYPE:INORGANIC:NATIVE_COPPER]
        [PRODUCT:10:1:BOULDER:NO_SUBTYPE:INORGANIC:MALACHITE]
        [PRODUCT:10:1:BOULDER:NO_SUBTYPE:INORGANIC:SPHALERITE]
        [PRODUCT:10:1:BOULDER:NO_SUBTYPE:INORGANIC:CASSITERITE]
        [PRODUCT:10:1:BOULDER:NO_SUBTYPE:INORGANIC:TETRAHEDRITE]
        [PRODUCT:10:1:BOULDER:NO_SUBTYPE:INORGANIC:BISMUTHINITE]
       
        [PRODUCT:3:1:BOULDER:NO_SUBTYPE:INORGANIC:NATIVE_PLATINUM]
[PRODUCT:3:1:BOULDER:NO_SUBTYPE:INORGANIC:NATIVE_GOLD]
[PRODUCT:3:1:BOULDER:NO_SUBTYPE:INORGANIC:NATIVE_SILVER]
        [SKILL:MINING]

A creature that milks a poison, mix with wax to make a symptom laden material. then glaze ammo with it.

And that's all for now.
« Last Edit: November 19, 2014, 04:09:01 pm by Featheredragon »
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Questions, Tips and Ideas Thread
« Reply #2 on: November 19, 2014, 05:35:39 pm »

Questions:
1. Can't make anything behave like other things unless there's a token that explicitly makes it do that, so no.
2. Not without DFHack (item-trigger).
3. Not replacing, no.
4. Nope.
5. Depends on what you mean by "covering".
6. No.
7. Contact, breathable or both is correct AFAIK (it can be either or both), and no you can't change that.
8. Tools as weapons is possible, backup weapons probably won't work with the AI.

Featheredragon

  • Bay Watcher
  • If someone says they are sane, then they're crazy.
    • View Profile
Re: Questions, Tips and Ideas Thread
« Reply #3 on: November 21, 2014, 06:45:55 pm »

Just putting this out there, as I had an idea.

Regarding the lack of movable siege engines: Is the wagon moddable?

As the wagon is technically a creature could you alter the tiles so it looks like a ballista catapult, cannon or what have you and give it a breath attack? Or even give it an really powerful weapon it automatically equips like a crossbow?

And does the attack and prepare numbers affect ranged weapons as a rate of fire tag?
Logged

scamtank

  • Bay Watcher
    • View Profile
Re: Questions, Tips and Ideas Thread
« Reply #4 on: November 21, 2014, 06:55:53 pm »

And does the attack and prepare numbers affect ranged weapons as a rate of fire tag?

No. Weapons or projectiles can't be differentiated that way yet.
Logged

Illogical_Blox

  • Bay Watcher
    • View Profile
Re: Questions, Tips and Ideas Thread
« Reply #5 on: November 22, 2014, 08:49:05 am »

Just putting this out there, as I had an idea.

Regarding the lack of movable siege engines: Is the wagon moddable?

As the wagon is technically a creature could you alter the tiles so it looks like a ballista catapult, cannon or what have you and give it a breath attack? Or even give it an really powerful weapon it automatically equips like a crossbow?

And does the attack and prepare numbers affect ranged weapons as a rate of fire tag?
Yes; I created the Twisted Iron Predator in Dungeon Fortress.

However, unless you give it an interaction, carefully changed breath attack or material emission, it will not fire anything. I don't know about altering the tiles (I doubt it). It will, however, only appear with traders. That is certain.
Logged
Me: "Just imagine a load of dwarves sitting round a table, and one of them says, 'I like stranglers for... for their... their...'"
Brother: "SOFT HANDS!"

UnicodingUnicorn

  • Bay Watcher
  • Competent at Incompetency.
    • View Profile
Re: Questions, Tips and Ideas Thread
« Reply #6 on: November 22, 2014, 11:04:03 am »

Not sure if this is the right place to ask, but would anyone be interested in a mod adding a use for every single non-layer mineral in vanilla?
Logged
I do stuff, I guess