Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: creating items through interactions in adventure mode?  (Read 1021 times)

Genkora

  • Bay Watcher
    • View Profile
creating items through interactions in adventure mode?
« on: July 31, 2012, 04:53:40 pm »

I was wondering if it would be possible to create an interaction that creates items. My idea was to add a spell that conjures arrows. I've already created a new type of material for conjured arrows or other items to be made from, nether, but I am not experienced with modding interactions. If anyone knows of a good tutorial that explains the anatomy of the interaction raws that would be great, or any other help would be appreciated.

here's the material, it's based on bronze with a different color and a value of 0.

Code: [Select]
[INORGANIC:NETHER]
[USE_MATERIAL_TEMPLATE:METAL_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:nether]
[STATE_NAME_ADJ:LIQUID:molten nether]
[STATE_NAME_ADJ:GAS:boiling nether]
[DISPLAY_COLOR:3:1:1]
[BUILD_COLOR:3:1:1]
[MATERIAL_VALUE:0]
[SPEC_HEAT:435]
[MELTING_POINT:11868]
[BOILING_POINT:14140]
[ITEMS_WEAPON][ITEMS_WEAPON_RANGED][ITEMS_AMMO][ITEMS_DIGGER][ITEMS_ARMOR]
[ITEMS_HARD]
[ITEMS_METAL]
[ITEMS_BARRED]
[ITEMS_SCALED]
[SOLID_DENSITY:8250]
[LIQUID_DENSITY:8020]
[MOLAR_MASS:80000]
[IMPACT_YIELD:602000]
[IMPACT_FRACTURE:843500]
[IMPACT_STRAIN_AT_YIELD:547]
[COMPRESSIVE_YIELD:602000]
[COMPRESSIVE_FRACTURE:843500]
[COMPRESSIVE_STRAIN_AT_YIELD:547] no data, used 110
[TENSILE_YIELD:172000]
[TENSILE_FRACTURE:241000]
[TENSILE_STRAIN_AT_YIELD:156] 110
[TORSION_YIELD:172000]
[TORSION_FRACTURE:241000]
[TORSION_STRAIN_AT_YIELD:156]
[SHEAR_YIELD:172000]
[SHEAR_FRACTURE:241000]
[SHEAR_STRAIN_AT_YIELD:156] no data, used 110
[BENDING_YIELD:172000]
[BENDING_FRACTURE:241000]
[BENDING_STRAIN_AT_YIELD:156]
[MAX_EDGE:10000]
Logged

Eagle_eye

  • Bay Watcher
    • View Profile
Re: creating items through interactions in adventure mode?
« Reply #1 on: July 31, 2012, 04:59:34 pm »

Wouldn't it be easier to just use a reaction?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: creating items through interactions in adventure mode?
« Reply #2 on: July 31, 2012, 04:59:43 pm »

No. Reactions, yes, but interactions no.

A good tutorial is... the examples in the raw folder.

Genkora

  • Bay Watcher
    • View Profile
Re: creating items through interactions in adventure mode?
« Reply #3 on: July 31, 2012, 05:04:52 pm »

I guess I forgot to mention it would be something an adventurer could do. I don't think you can do reactions in adventurer mode, unless you can make a reaction doable without a building?
Logged

Roses

  • Bay Watcher
    • View Profile
Re: creating items through interactions in adventure mode?
« Reply #4 on: July 31, 2012, 05:07:27 pm »

You can indeed use reactions in adventure mode.
Logged

Genkora

  • Bay Watcher
    • View Profile
Re: creating items through interactions in adventure mode?
« Reply #5 on: July 31, 2012, 05:10:59 pm »

Ah, on looking at the reaction raws there is indeed a tag [ADVENTURER_MODE_ENABLED]. So I suppose I could just create an entirely different type of arrow as a product of the reaction.
Logged

Steele

  • Bay Watcher
    • View Profile
Re: creating items through interactions in adventure mode?
« Reply #6 on: July 31, 2012, 05:40:26 pm »

Code: [Select]
[REACTION:CONJURE_ARROWS]
    [ADVENTURE_MODE_ENABLED]
    [NAME:conjure arrows]
    [PRODUCT:100:25:AMMO:ITEM_AMMO_ARROWS:INORGANIC:NETHER][FORCE_EDGE]
    [SKILL:CONCENTRATION]

This will produce 25 nether arrows, the quality determined by the adventurers concentration skill.
Logged