Bay 12 Games Forum

Please login or register.

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

Author Topic: Quick noob questions  (Read 1100 times)

Chevaleresse

  • Bay Watcher
  • A knight, returned from a journey weary and long
    • View Profile
    • Patreon
Quick noob questions
« on: August 13, 2014, 02:20:38 am »

I figure that I ask plenty of these, so why not make a dedicated thread?

Question 1: I can't seem to find how to make a reaction that gives someone a syndrome.
Logged
GM of Trespassers V2.
If you like my work, consider becoming a patron. (Since apparently people think this is a requirement: no, my game(s) are free to play and always will be.

scamtank

  • Bay Watcher
    • View Profile
Re: Quick noob questions
« Reply #1 on: August 13, 2014, 02:23:21 am »

That's where DFHack comes in, I believe.
Logged

Chevaleresse

  • Bay Watcher
  • A knight, returned from a journey weary and long
    • View Profile
    • Patreon
Re: Quick noob questions
« Reply #2 on: August 13, 2014, 02:29:47 am »

I've seen lots of people talking about modding in these without dfhack, though.
Logged
GM of Trespassers V2.
If you like my work, consider becoming a patron. (Since apparently people think this is a requirement: no, my game(s) are free to play and always will be.

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Quick noob questions
« Reply #3 on: August 13, 2014, 02:32:32 am »

old way:  reaction produces stone that evaporates into syndrome-carrying mist at room temperature (~25% success rate)
new way:  DFHack


https://github.com/DFHack/dfhack/blob/master/plugins/autoSyndrome.cpp
« Last Edit: August 13, 2014, 02:36:22 am by smakemupagus »
Logged

Chevaleresse

  • Bay Watcher
  • A knight, returned from a journey weary and long
    • View Profile
    • Patreon
Re: Quick noob questions
« Reply #4 on: August 13, 2014, 03:01:14 am »

What would the old method look like?
Logged
GM of Trespassers V2.
If you like my work, consider becoming a patron. (Since apparently people think this is a requirement: no, my game(s) are free to play and always will be.

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Quick noob questions
« Reply #5 on: August 13, 2014, 03:05:17 am »

The reaction product would be a boulder of a custom inorganic material which evaporates instantly at room temperature, and which induces a contact and/or inhalation syndrome.

http://dwarffortresswiki.org/index.php/v0.34:Syndrome#Inorganic_syndromes_and_you.21
« Last Edit: August 13, 2014, 03:07:44 am by smakemupagus »
Logged

Chevaleresse

  • Bay Watcher
  • A knight, returned from a journey weary and long
    • View Profile
    • Patreon
Re: Quick noob questions
« Reply #6 on: August 13, 2014, 03:15:36 am »

The reaction product would be a boulder of a custom inorganic material which evaporates instantly at room temperature, and which induces a contact and/or inhalation syndrome.

http://dwarffortresswiki.org/index.php/v0.34:Syndrome#Inorganic_syndromes_and_you.21
Alright, I've got this in inorganic_stone_mineral/txt:

Code: [Select]
[INORGANIC:HEALER_ROYALELF] - royal elves being a custom race and the desired target
[USE_MATERIAL_TEMPLATE:STONE_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:healing mist]
[MAT_FIXED_TEMP:9001]
[BOILING_POINT:9000]
   [SYNDROME]
      [SYN_AFFECTED_CREATURE:ROYALELF:ALL]
      [CE_BODY_TRANSFORMATION:START:0]
      [CE:CREATURE:ROYALELF:MALE]
And this in reaction_custom.txt
Code: [Select]
reaction_custom


[OBJECT:REACTION]


[REACTION:FULLHEAL_ROYAL] - currently the only reaction here
   [NAME:Regain health]
   [ADVENTURE_MODE_ENABLED]
   [REAGENT:tool stone:1:ROCK:NONE:NONE:NONE][PRESERVE:REAGENT]
   [PRODUCT:100:10:BOULDER:NONE:HEALER_ROYALELF]
   [PRODUCT:DIMENSION:10]
         What am I missing?
Logged
GM of Trespassers V2.
If you like my work, consider becoming a patron. (Since apparently people think this is a requirement: no, my game(s) are free to play and always will be.

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Quick noob questions
« Reply #7 on: August 13, 2014, 03:28:30 am »

3 things i see,

your product probably should be BOULDER:NONE:INORGANIC:HEALER_ROYALELF, check the token syntax but i am pretty sure you need that "inorganic"

it's product_dimension with an underscore not a colon

and as an aside i'm not sure why you need a product_dimension in this case, as boulders don't have unusual size units.

and you probably want [SYN_CONTACT][SYN_INHALED] inside your syndrome

other than that, you'll get better help if your question is a little more specific...    what exactly is failing: reaction is not working or does not appear at all or reaction happens but you don't transform or the inorganic doesn't exist in your world?  did you regen world?  what's in your error log?  Bad tokens generally will appear in error log.

*********

also, preserve_reagent with an underscore
« Last Edit: August 13, 2014, 03:30:04 am by smakemupagus »
Logged

Chevaleresse

  • Bay Watcher
  • A knight, returned from a journey weary and long
    • View Profile
    • Patreon
Re: Quick noob questions
« Reply #8 on: August 13, 2014, 03:36:24 am »

The reaction isn't appearing in adventure mode.
Logged
GM of Trespassers V2.
If you like my work, consider becoming a patron. (Since apparently people think this is a requirement: no, my game(s) are free to play and always will be.

celem

  • Bay Watcher
    • View Profile
Re: Quick noob questions
« Reply #9 on: August 13, 2014, 07:47:21 am »

Has it been added to the entity as a permitted reaction?  Those declarations normally head the entity files.

Also, should you ever choose to play a female elf, this will swap your gender.  you know that right?
Logged
Marksdwarf Pillboxes
I wish I had something cool to say about this.  Because it's really cool.

Chevaleresse

  • Bay Watcher
  • A knight, returned from a journey weary and long
    • View Profile
    • Patreon
Re: Quick noob questions
« Reply #10 on: August 13, 2014, 01:34:43 pm »

Has it been added to the entity as a permitted reaction?  Those declarations normally head the entity files.

Also, should you ever choose to play a female elf, this will swap your gender.  you know that right?

I haven't; the wiki states that [ADVENTURE_MODE_ENABLED] should be independent of entity reaction permissions. Plus, I don't want to generate a new world.

And yeah, i know. I don't really know how to preserve gender while doing this.
Logged
GM of Trespassers V2.
If you like my work, consider becoming a patron. (Since apparently people think this is a requirement: no, my game(s) are free to play and always will be.

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: Quick noob questions
« Reply #11 on: August 13, 2014, 02:01:16 pm »

And yeah, i know. I don't really know how to preserve gender while doing this.
You make two syndromes, one that affects each caste.  You can stack both onto the same stone.
Logged
Just got back, updating:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map

Chevaleresse

  • Bay Watcher
  • A knight, returned from a journey weary and long
    • View Profile
    • Patreon
Re: Quick noob questions
« Reply #12 on: August 13, 2014, 03:01:47 pm »

Any tips on getting it to show up in adventure mode?
Logged
GM of Trespassers V2.
If you like my work, consider becoming a patron. (Since apparently people think this is a requirement: no, my game(s) are free to play and always will be.

YAHG

  • Bay Watcher
    • View Profile
Re: Quick noob questions
« Reply #13 on: August 13, 2014, 03:08:39 pm »

Try a new world when I am trying to make something work, I will go through a dozen worlds sometimes before I get it to work, just do short history pocket stuff for testing :).
« Last Edit: August 19, 2014, 11:46:30 pm by YAHG »
Logged

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Quick noob questions
« Reply #14 on: August 13, 2014, 03:23:27 pm »

You'll need a new world for new reaction and material, anyway.
Pages: [1] 2