Topic: Alternative recipes?  (Read 5278 times)


Stonelobber

« on: July 02, 2018, 08:43:27 PM »
Is there anyway to give an alternative recipe under the same recipe? Like for example:

.Grass. (12) "Spruce twig" [effort:2] [phys:stance,one-armed] *COMMON* /90/
{[NEARBY_TILE:thicket]} +'Be near a thicket'
[NAME:Grass]
[TILEGFX:it-grss]
[TYPE:plant]
[WEIGHT:4.0]


{[NEARBY_TILE:grove]} +'Be near a grove'
[NAME:Grass] (3)
[TILEGFX:it-grss]
[TYPE:plant]
[WEIGHT:1.0]

===============================

I've been trying to make this work, but not sure how to give multiple options for one item. I really don't want a separate crafting recipe for each and every grass from different terrains...

Privateer

« Reply #1 on: July 02, 2018, 09:12:22 PM »
Not as described.
You can combine crafts to use same the same resources ie;

.North wall. etc etc
.South wall. etc etc
{Tree trunk] (6) [remove]
etc. etc.

{[NEARBY_TILE:]} may support multiple locations.

"Optional" is the supported parameter to go in that direction, though I don't know if the location tag supports the optional tag.

You could just do away with the location.
To help is it's own reward.
Mods:
https://www.unrealworld.fi/forums/index.php?action=profile;area=showposts;sa=attach;u=10 Player Quests, Arrow quiver, Bee hives honey & mead, Massive menus, Fish Farmer, Combat trainer, Player made markers, Weaving, Wood stacks, Chicken coop Fish cuts, string&bone.

Nydxz

« Reply #2 on: August 10, 2018, 05:56:53 PM »
This should already be fixed, but if it wanst, the only way to make what you want would be like this.

Code: [Select]
.Grass. (12) "Spruce twig" [effort:2] [phys:stance,one-armed] *COMMON* /90/
{[TERRAIN:grove open_mire spruce_mire]} (any terrain that you want)
{[NEARBY_TILE:thicket]} +'Be near a thicket'
[NAME:Grass]
[TILEGFX:it-grss]
[TYPE:plant]
[WEIGHT:4.0]

That will make the game check the tile you need to be near and the terrain. In this code example you can only get grass on Groves, Open mires and Spruce mires while standing next to the tile named thicket. Hope it helps