Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: To Refer to No Specific Plants  (Read 413 times)

Pickerel

  • Bay Watcher
    • View Profile
To Refer to No Specific Plants
« on: February 11, 2010, 07:47:11 pm »

To Refer to No Specific Plants...

Usually to refer to plants we need things like [REAGENT:10:PLANT:NO_SUBTYPE:PLUMP_HELMUT:NO_MATGLOSS]
This is significantly different from other materials, which instead of specifying the specific plant in the materials token spot, instead specify only the general type (e.g. STONE) in the materials token spot and reserve the sybtype spot for specifying, should one want to, the specific type.

I would like to make use of ANY plant for something.  Is there a way to make a reaction that does not need a specific plant, but can make use of any plant?  For example:
[REAGENT:10:PLANT:NO_SUBTYPE:ANY:NO_MATGLOSS]
or
[REAGENT:10:PLANT:NO_SUBTYPE:NONE:NO_MATGLOSS]
or something else?
Logged

Igfig

  • Bay Watcher
    • View Profile
Re: To Refer to No Specific Plants
« Reply #1 on: February 11, 2010, 11:26:57 pm »

I'm not entirely sure about how it works right now, but in the next version it'll just be [REAGENT:A:10:PLANT:NONE:NONE:NONE].

Noble Digger

  • Bay Watcher
    • View Profile
Re: To Refer to No Specific Plants
« Reply #2 on: February 11, 2010, 11:56:01 pm »

You could try adding [REACTION_CLASS:PLANT] tokens to each of the plants in MATGLOSS_PLANT.TXT and then use the following in a reaction:

Code: [Select]
[REAGENT:10:REACTION_CLASS:PLANT]

The only way this wouldn't work is if the reaction class token is somehow hard-coded to only work with rough stones.
Logged
quib·ble
1. To evade the truth or importance of an issue by raising trivial distinctions and objections.
2. To find fault or criticize for petty reasons; cavil.

Pickerel

  • Bay Watcher
    • View Profile
Re: To Refer to No Specific Plants
« Reply #3 on: February 12, 2010, 12:35:21 pm »

Ahh, I think this will be a very good way to go about it, thankye!
Logged