Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: ITEMCORPSE  (Read 765 times)

Karzack

  • Bay Watcher
    • View Profile
ITEMCORPSE
« on: December 13, 2007, 07:25:00 pm »

I am trying to get a creature to drop a new metal I have made.  This will be the only way to get this new metal.  But I can't seem to get it to work, all I get are crashes.  I know I am missing something but I just can't seem to get it to work.  I have tried a few different things but I still get crashes.

Or is this not possible, I am assuming that it is and I am just missing something.  And now I'm frustrated so I can't think straight.  =\

If it helps it's...

[MATGLOSS_METAL:DRAKE_SCALE]

I have the creature made, just having a minor hangup here.  =)

Or, if I could get them to drop "bars" so I don't need to do any smelting that would be nice.  Although Drake Scale Bars don't sound right to me.

Ok, need to go get the frustration level down so I can start making sence and stop rambling...

Logged
Life is short, live it.

Vanigo

  • Bay Watcher
    • View Profile
Re: ITEMCORPSE
« Reply #1 on: December 13, 2007, 08:15:00 pm »

If you want it to drop ore, you'll also need to add a new stone type. Something like:
code:
[MATGLOSS_STONE:DRAKE_SCALES]
[NAME:unworked drake scales][COLOR:2:2:1][TILE:238]
[ITEM_SYMBOL:238]
[METAL_ORE:DRAKE_SCALE:100]
[SOLID_DENSITY:2000]
[VALUE:20]


should work. It'll still need to be smelted into bars before it can be used, although you could have it be smelted into wafers instead by adding the [WAFERS] tag to the metal. In any case, the ITEMCORPSE tag you'll want is this:

[ITEMCORPSE:STONE:NO_SUBTYPE:STONE:DRAKE_SCALES]

If you want it to drop bars (or wafers) instead, use:

[ITEMCORPSE:BAR:NO_SUBTYPE:METAL:DRAKE_SCALE]

Logged

THLawrence

  • Bay Watcher
  • Mad Scientest
    • View Profile
Re: ITEMCORPSE
« Reply #2 on: December 13, 2007, 08:19:00 pm »

A quick glance says that this should work. You have to regenerate the world after adding the DRAKE_SCALE metal type. Then this can be put into any existing creature  block.

code:
 
[ITEMCORPSE:BAR:NO_SUBTYPE:METAL :DRAKE_SCALE]

This should work.


Beaten to it.

[ December 13, 2007: Message edited by: THLawrence ]

Logged

Karzack

  • Bay Watcher
    • View Profile
Re: ITEMCORPSE
« Reply #3 on: December 13, 2007, 09:50:00 pm »

Awesome, got it to work.  I knew I was missing something, the stone type completely slipped my mind, big thanks. Now I need to do a touch of tweaking.

The wafers tag makes more sense then bars, but I noticed there are some items that want drake scale cloth now.   :)  But thats minor, I still like the wafers instead of bars.  Tried to extract strands from the scales but it asked for adamantine.

Thanks again.

Logged
Life is short, live it.

Vanigo

  • Bay Watcher
    • View Profile
Re: ITEMCORPSE
« Reply #4 on: December 13, 2007, 09:57:00 pm »

Oh, if you want strands, you should change METAL_ORE to THREAD_METAL. (I'm not sure if you have to generate a new world after this or not.)
Logged

Karzack

  • Bay Watcher
    • View Profile
Re: ITEMCORPSE
« Reply #5 on: December 14, 2007, 12:27:00 pm »

Not really interested in strands so I haven't looked into it.  But that is a good bit of info to know.
Logged
Life is short, live it.

Alfador

  • Bay Watcher
  • Dangerous Lunatic
    • View Profile
Re: ITEMCORPSE
« Reply #6 on: December 14, 2007, 01:22:00 pm »

Well hey, a more common metal that uses the strand extraction techniques would be great training for dwarves who are going to be working with adamantine later.
Logged
This is a fox skull helmet. All craftsdwarfship is of the highest quality. It menaces with spikes of fox bone and is encircled with bands of fox leather. This item is haunted by the ghost of Alfador Angrorung the fox.

Karzack

  • Bay Watcher
    • View Profile
Re: ITEMCORPSE
« Reply #7 on: December 14, 2007, 06:43:00 pm »

Well, if anyone is interested.  Although I can't say that I have tested it a whole lot though.  The drake is kind of an elephant dragon hybrid.  I used the elephant and then added dragon qualities.  It is meant to be a harvestable creature.  Some of the values I'm not sure what to set at, age, child, etc.

code:
creature_drake

[OBJECT:CREATURE]

[CREATURE:DRAKE]
   [NAME:drake:drakes:drakish]
   [TILE:'D'][COLOR:4:0:0]
   [LARGE_ROAMING]
   [MODVALUE:10]
   [FIREIMMUNE]
   [GENPOWER:3]
   [PREFSTRING:hard scales]
   [POPULATION_NUMBER:15:30]
   [CLUSTER_NUMBER:3:7]
   [BENIGN][MEANDERER][NATURAL][PET]
   [PETVALUE:1000]
   [BODY:QUADRUPED:TAIL:2EYES:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:MOUTH]
   [BODYGLOSS:CLAW_FOOT]
   [DAMBLOCK:1]
   [SIZE:16]
   [MAXAGE:50:70]
   [ATTACK:MAIN:BYTYPE:MOUTH:bite:bites:1:6:GORE][ATTACKFLAG_CANLATCH]
   [CHILD:12][CHILDNAME:drake hatchling:drake hatchlings]
   [FAT:10]
   [ALL_ACTIVE]
   [BIOME_ANY_LAND]
   [ITEMCORPSE:BAR:NO_SUBTYPE:METAL:DRAKE_SCALE]
   [STANDARD_FLESH]
   [SWIMS_INNATE][SWIM_SPEED:2500]
   [HOMEOTHERM:10040]


And here is for the 'drake scales'

code:
matgloss_scales

[OBJECT:MATGLOSS]

[MATGLOSS_STONE:DRAKE_SCALES]
[NAME:raw drake scales][COLOR:4:0:0][TILE:238]
[ITEM_SYMBOL:238]
[METAL_ORE:DRAKE_SCALE:100]
[SOLID_DENSITY:2000]
[VALUE:40]

[MATGLOSS_METAL:DRAKE_SCALE]
[NAME:drake scale][ADJ:drake scale][COLOR:4:0:0]
[VALUE:40]
[SPEC_HEAT:500]
[MELTING_POINT:12718]
[BOILING_POINT:14968]
[WAFERS]
[ARMOR]
[BLOCK_PERC:150]
[SOLID_DENSITY:2000]
[DEEP]


Logged
Life is short, live it.