Bay 12 Games Forum

Please login or register.

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

Author Topic: I need a lot of help modding dragons.  (Read 1896 times)

roushguy

  • Bay Watcher
    • View Profile
I need a lot of help modding dragons.
« on: February 24, 2013, 02:51:43 am »

As the topic states, I plan on rather heavily modifying dragons. I need to remove their typical scale material, and replace it with a new metal. I also need to replace their bones with ANOTHER new kind of metal, and I need both to be dropped when the dragon is butchered.

Dragons also need to be changed from megabeasts to natural creatures (I'm after a very dragon-heavy world), and they need to gain the metals from being butchered only once they've reached a certain age. I /think/ that can be handled by castes and interactions/syndromes, using the milk counter token and 403200 (One year of DF time). Unfortunately, putting together such a thing is completely beyond my skill. If someone can make me the five different 'castes' of dragon, with the interaction/syndrome to make them 'age' appropriately, as well as adding the butcherable metals, I can handle the rest.


Code for the metals:

Code: [Select]
[INORGANIC:DRAGONSLAG]
[USE_MATERIAL_TEMPLATE:METAL_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:dragonslag]
[STATE_NAME_ADJ:LIQUID:molten dragonslag]
[STATE_NAME_ADJ:GAS:boiling dragonslag]
[STATE_COLOR:ALL_SOLID:SILVER]
[DISPLAY_COLOR:3:3:1][BUILD_COLOR:3:3:1]
[MATERIAL_VALUE:150]
[SPEC_HEAT:7500]
[MOLAR_MASS:800000]
[MAX_EDGE:50000]
[WAFERS]
[ITEMS_WEAPON] [ITEMS_WEAPON_RANGED] [ITEMS_AMMO] [ITEMS_DIGGER]
[ITEMS_HARD] [ITEMS_METAL] [ITEMS_BARRED] [ITEMS_SCALED]
[ITEMS_ANVIL] [ITEMS_SOFT] [ITEMS_ARMOR]
[MELTING_POINT:250000] [SOLID_DENSITY:2000]
[BOILING_POINT:500000] [LIQUID_DENSITY:26000]
[IMPACT_YIELD:50000000] [COMPRESSIVE_YIELD:50000000]
[IMPACT_FRACTURE:50000000] [COMPRESSIVE_FRACTURE:50000000]
[IMPACT_STRAIN_AT_YIELD:0] [COMPRESSIVE_STRAIN_AT_YIELD:0]
[SHEAR_YIELD:50000000] [BENDING_YIELD:50000000]
[SHEAR_FRACTURE:50000000] [BENDING_FRACTURE:50000000]
[SHEAR_STRAIN_AT_YIELD:0] [BENDING_STRAIN_AT_YIELD:0]

[INORGANIC:DRAGONSTEEL]
[USE_MATERIAL_TEMPLATE:METAL_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:dragonsteel]
[STATE_NAME_ADJ:LIQUID:molten dragonsteel]
[STATE_NAME_ADJ:GAS:boiling dragonsteel]
[STATE_COLOR:ALL_SOLID:SILVER]
[DISPLAY_COLOR:3:3:1] [BUILD_COLOR:3:3:1]
[MATERIAL_VALUE:500]
[SPEC_HEAT:7500]
[MOLAR_MASS:400000]
[MAX_EDGE:100000]
[ITEMS_WEAPON] [ITEMS_WEAPON_RANGED] [ITEMS_AMMO] [ITEMS_DIGGER]
[ITEMS_HARD] [ITEMS_METAL] [ITEMS_BARRED] [ITEMS_SCALED]
[ITEMS_ANVIL] [ITEMS_SOFT] [ITEMS_ARMOR]
[MELTING_POINT:25000] [SOLID_DENSITY:200]
[BOILING_POINT:50000] [LIQUID_DENSITY:2600]
[IMPACT_YIELD:5000000] [COMPRESSIVE_YIELD:5000000]
[IMPACT_FRACTURE:5000000] [COMPRESSIVE_FRACTURE:5000000]
[IMPACT_STRAIN_AT_YIELD:0] [COMPRESSIVE_STRAIN_AT_YIELD:0]
[TENSILE_YIELD:5000000] [TORSION_YIELD:5000000]
[TENSILE_FRACTURE:5000000] [TORSION_FRACTURE:5000000]
[TENSILE_STRAIN_AT_YIELD:0] [TORSION_STRAIN_AT_YIELD:0]
[SHEAR_YIELD:5000000] [BENDING_YIELD:5000000]
[SHEAR_FRACTURE:5000000] [BENDING_FRACTURE:5000000]
[SHEAR_STRAIN_AT_YIELD:0] [BENDING_STRAIN_AT_YIELD:0]

I need dragonslag to replace scales, and dragonsteel to replace the bones. Dragonsteel should only be obtainable from a 'mature' or 'old' dragon. (age 4 and 5), while slag should only come from 'adolescent', 'mature', and 'old'. (3, 4, and 5.) The other stages of age are 'hatchling' and 'young', which should drop no special materials, nor have them. If anyone helps, thanks a ton.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: I need a lot of help modding dragons.
« Reply #1 on: February 24, 2013, 03:41:18 am »

Interactions can't change materials; if you mean a transformation, however, I don't think milk counters can help with that much.

roushguy

  • Bay Watcher
    • View Profile
Re: I need a lot of help modding dragons.
« Reply #2 on: February 24, 2013, 04:08:21 am »

The milk counter changes their caste after the appropriate amount of time, and the castes need to have the appropriate tags for replacing their bits with the new materials.
Logged

Wannabehero

  • Bay Watcher
    • View Profile
Re: I need a lot of help modding dragons.
« Reply #3 on: February 24, 2013, 12:41:53 pm »

I don't think the milk counter will do what you want it to do.

Are you thinking that you could milk them for an extract, attach a syndrome to the extract that will transform the dragon by the giving the dragon a specific CREATURE_CLASS that only that syndrome effects?  That might be possible if the extract immediately vaporizes, but it will only work once, and it is hard to guarantee to syndrome will hit the dragon.  Once a creature transforms I don't think it can be transformed again.

Everything else you want is doable, depending on how in depth you want to go.  You can make the bones and scales out of whatever material you want, and by playing with layer thicknesses and relsizes, you can determine at what age the dragon will yield those materials from butchering, within a certain window.

You might need to make some conceptual sacrifices to get your modded dragons to work in practice.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: I need a lot of help modding dragons.
« Reply #4 on: February 24, 2013, 01:05:34 pm »

The milk counter changes their caste after the appropriate amount of time, and the castes need to have the appropriate tags for replacing their bits with the new materials.

The problem is that it almost certainly won't go up in worldgen at all.

roushguy

  • Bay Watcher
    • View Profile
Re: I need a lot of help modding dragons.
« Reply #5 on: February 24, 2013, 01:42:42 pm »

No, the milk counter is there solely to tick time. I tried already simply replacing tissues with the metals, and it didn't seem to do anything but occasionally drop a single piece when they were butchered.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: I need a lot of help modding dragons.
« Reply #6 on: February 24, 2013, 01:46:39 pm »

No, the milk counter is there solely to tick time.

Then you could just have START:x >_>

I tried already simply replacing tissues with the metals, and it didn't seem to do anything but occasionally drop a single piece when they were butchered.

Try extra butcher objects.

roushguy

  • Bay Watcher
    • View Profile
Re: I need a lot of help modding dragons.
« Reply #7 on: February 24, 2013, 03:18:45 pm »

And now you see why I am no good with modding... I was hoping to use EXTRA_BUTCHER_OBJECT to get the slag and steel out of them. It seems like the easiest way. However, I still want their bones and scales made of it so they're not as easy to kill.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: I need a lot of help modding dragons.
« Reply #8 on: February 24, 2013, 05:52:57 pm »

You can have both!

Wannabehero

  • Bay Watcher
    • View Profile
Re: I need a lot of help modding dragons.
« Reply #9 on: February 24, 2013, 07:18:41 pm »

Moreover, you can use BUTCHER_SPECIAL:'item token':'item subtype' in the material definition so that you won't get useless body parts when butchered.  BUTCHER_SPECIAL:BAR:NONE will mean that when butchered, you will get bars of the slag scales and bone metals.
Logged

roushguy

  • Bay Watcher
    • View Profile
Re: I need a lot of help modding dragons.
« Reply #10 on: February 24, 2013, 09:10:19 pm »

Where does the tag go, exactly? In the creature or into the metal?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: I need a lot of help modding dragons.
« Reply #11 on: February 24, 2013, 09:27:32 pm »

The creature.

Wannabehero

  • Bay Watcher
    • View Profile
Re: I need a lot of help modding dragons.
« Reply #12 on: February 25, 2013, 04:31:44 pm »

EXTRA_BUTCHER_OBJECT goes into the creature file

BUTCHER_SPECIAL needs to be tied into the material.  It can either go in the material template or inorganic raw, or in the creature file as long is it is being tied into the material.

To tie it into the material, you need to place it directly after defining the material as a creature mat and before defining anything else in the creature

Example:
[USE_MATERIAL_TEMPLATE:SCALE:DRAGON_SCALE_TEMPLATE]
     [BUTCHER_SPECIAL:BAR:NONE]

Or you can use the SELECT_MATERIAL command, and then define the new tag

[SELECT_MATERIAL:SCALE]
     [BUTCHER_SPECIAL:BAR:NONE]



The easiest way to apply BUTCHER_SPECIAL to inorganic materials is to go into the material_template_default raw and add it to the base template used by all derivative materials.  For example, basically all metals use the METAL_TEMPLATE in their own raw before being furthered defined.  If you add a tag to the METAL_TEMPLATE, it will carry over to all derivative metals, including your dragon ones.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: I need a lot of help modding dragons.
« Reply #13 on: February 25, 2013, 06:12:01 pm »

I wonder if adding BUTCHER_SPECIAL:BAR:NONE to metals would allow metal titans and FBs to be butchered for bars?

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: I need a lot of help modding dragons.
« Reply #14 on: February 25, 2013, 08:03:36 pm »

Don't they have NOT_BUTCHERABLE?
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository
Pages: [1] 2