Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Reaction question  (Read 692 times)

Terratoch

  • Bay Watcher
    • View Profile
Reaction question
« on: April 03, 2012, 10:44:08 am »

Okay, for the still, it just randomly grabs plants and creates a drink based on the plants it grabbed.
Is it possible to create a catch-all reaction that would function like that?
Logged
The only thing better than dining on a fine goblin is using said goblins tallow for soap to fix up my soldiers.

Sorcerer

  • Bay Watcher
  • [magical]
    • View Profile
Re: Reaction question
« Reply #1 on: April 03, 2012, 11:05:40 am »

yep! you can do
[REAGENT:input:NONE:NONE:NONE:NONE][HAS_MATERIAL_REACTION_PRODUCT:X] or [REACTION_CLASS:X]

and for output

[PRODUCT:WHATEVER:NONE:GET_MATERIAL_FROM_REAGENT:input:X]

Just look at the default reactions as well as the wiki for details (as i just typed those out from memory)


Logged