Bay 12 Games Forum

Please login or register.

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

Author Topic: [MODDING] REACTIONS QUESTIONS THREAD  (Read 42785 times)

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: [MODDING] REACTIONS QUESTIONS THREAD
« Reply #15 on: May 30, 2012, 09:48:13 am »

I'm pretty sure you can, by aranging them in the order you wish in the Entity. Of course all reactions that can be acually done will jump to the top.
Logged

scamtank

  • Bay Watcher
    • View Profile
Re: [MODDING] REACTIONS QUESTIONS THREAD
« Reply #16 on: May 30, 2012, 10:10:15 am »

I think I worded that a little wrong. Can you add your own subcategories into workshop menus like the ones in the forge or the clothier's shop?
Logged

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: [MODDING] REACTIONS QUESTIONS THREAD
« Reply #17 on: May 30, 2012, 10:12:04 am »

Saddly No, It would be a great boon tho. That is for sure.
Logged

Twangykid

  • Bay Watcher
    • View Profile
Re: [MODDING] REACTIONS QUESTIONS THREAD
« Reply #18 on: June 03, 2012, 07:03:38 am »

Making a wrestler fortress, elves are monks and as such I'm trying to give them bo staves.
However, trying them out in-game to test them (You still play as dwarves but still.) I can't get them to make. I added Tapered wood which is bronze level (AKA copy pasted) metal, that elves can make from just one log. This is the only weapon in the game, and the reaction won't work. The metal is made without any reagants, then the "Make Bo Staff" reaction eats that bar, without returning a weapon.

[REACTION:MAKETAPEREDWOOD]
[NAME:make tapered wood]
[BUILDING:CRAFTSMAN:SHIFT_T]
[REAGENT:A:WOOD:1:NONE:NONE]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:TAPEREDWOOD][PRODUCT_DIMENSION:150]
[SKILL:WOODCRAFT]

[REACTION:MAKEBOSTAFF]
[NAME: Make bo staff]
[BUILDING:CRAFTSMAN:SHIFT_M]
[REAGENT:A:100:1:BAR:NO_SUBTYPE:METAL:TAPEREDWOOD]
[PRODUCT:100:1:WEAPON:METAL:ITEM_BOSTAFF]
[SKILL:WOODCRAFT]

I can't see the problem, this is my first mod though.
Logged

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: [MODDING] REACTIONS QUESTIONS THREAD
« Reply #19 on: June 03, 2012, 08:35:30 am »

Ah well welcome to the forums and the wonderful world of modding. Now allow me to educate

Spoiler (click to show/hide)

Before I go on, I must say there is a nifty "errorlog.txt" located in the same spot "DF.exe" is. Use that to help you troubleshoot.

ok Reagents and Products

reagent
Spoiler (click to show/hide)
Product follows the same lines as reagents, only slightly different
Spoiler (click to show/hide)

so to correct your reactions
Spoiler (click to show/hide)
« Last Edit: June 04, 2012, 11:19:27 am by Hugo_The_Dwarf »
Logged

Twangykid

  • Bay Watcher
    • View Profile
Re: [MODDING] REACTIONS QUESTIONS THREAD
« Reply #20 on: June 03, 2012, 04:45:51 pm »

Heh, I just noticed that I copied it from entity default because I was in a hurry, but thanks for fixing it.I knew there was something like the material from reagant that I was missing :)
Logged

Twangykid

  • Bay Watcher
    • View Profile
Re: [MODDING] REACTIONS QUESTIONS THREAD
« Reply #21 on: June 04, 2012, 05:21:24 am »

*** Error(s) finalizing the reaction MAKEBOSTAFF
MAKEBOSTAFF:Unrecognized Item Token: 1

I copied your reaction, got this error. Looked up item tokens, 1 is cut gems, but that 1 is in the spot for quantity isn't it?

EDIT: Never mind, I fixed it

[PRODUCT:100:1:WEAPON:ITEM_BOSTAFF:GET_MATERIAL_FROM_REAGENT:A:NONE]
The A:NONE shouldn't be there.
« Last Edit: June 04, 2012, 07:40:03 am by Twangykid »
Logged

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: [MODDING] REACTIONS QUESTIONS THREAD
« Reply #22 on: June 04, 2012, 11:18:42 am »

REAGENT:A:100:1:BAR:NONE:INORGANIC:TAPEREDWOOD

found it thats waht happens with copy paste

REAGENT:A:150:BAR:NONE:INORGANIC:TAPEREDWOOD
Logged

Lurking Grue

  • Bay Watcher
    • View Profile
Re: [MODDING] REACTIONS QUESTIONS THREAD
« Reply #23 on: June 29, 2012, 10:25:08 am »

Ok will this work as a way to ensure that an entity will always have access to metal, even if the worldgen has a real low mineral occurence?

[REACTION:PRODUCE_BASE_METAL]
   [NAME:produce bars of base metal]
   [PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:COPPER][PRODUCT_DIMENSION:150]
   [PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:TIN][PRODUCT_DIMENSION:150]
   [PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:SILVER][PRODUCT_DIMENSION:150]
   [PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:IRON][PRODUCT_DIMENSION:150]
   [SKILL:SMELT]

I remember seeing something like it before but that was a long while back and I couldnt find the thread now.
Logged

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: [MODDING] REACTIONS QUESTIONS THREAD
« Reply #24 on: June 29, 2012, 11:03:43 am »

Yes it will work.
Logged

Lurking Grue

  • Bay Watcher
    • View Profile
Re: [MODDING] REACTIONS QUESTIONS THREAD
« Reply #25 on: June 29, 2012, 12:16:39 pm »

Thanks  :)
Logged

newman0830

  • Escaped Lunatic
    • View Profile
Re: [MODDING] REACTIONS QUESTIONS THREAD
« Reply #26 on: January 20, 2013, 02:58:10 am »

I would like to know if it is possible to make a Adventure mode reaction that allows me to summon one of my custom weapons, The Yari.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] REACTIONS QUESTIONS THREAD
« Reply #27 on: January 20, 2013, 02:41:01 pm »

Easily.

Code: [Select]
[REACTION:MAKE_YARI_ADV]
[NAME:summon Yari]
[PRODUCT:100:1:WEAPON:(yari goes here):INORGANIC:(material you want it to be made of)]
[ADVENTURE_MODE_ENABLED]

newman0830

  • Escaped Lunatic
    • View Profile
Re: [MODDING] REACTIONS QUESTIONS THREAD
« Reply #28 on: January 26, 2013, 10:12:51 am »

Unfortunatly it does not work on existing worlds AND it does not give me a Yari on the first try, it gives me a random weapon each time i use it
Logged

jaxy15

  • Bay Watcher
  • Adept Modder
    • View Profile
Re: [MODDING] REACTIONS QUESTIONS THREAD
« Reply #29 on: January 26, 2013, 10:56:20 am »

How do you make a reaction accept only CORPSES and SEVERED BODY PARTS, and not turtle shells or such?
Logged
Dwarf Fortress: Threats of metabolism.
Pages: 1 [2] 3 4 ... 13