Stranded: Alien Dawn

Stranded: Alien Dawn

Stranded: Alien Dawn Workshop
Explore other users workshop creations, upload, download and subscribe to new content
Narkhen 2023 年 11 月 20 日 上午 11:34
Question Mod: an option that only uses equipment as ingredients with less than 100% durability for that recipe
hello I am trying to create a mod that only uses equipment as ingredients with less than 100% durability for that recipe.

For example: An ingredient would be an armor with less than 100%.

Do you know how I can do it?

I am creating a mod to repair armor, if the armor is below 100% , the armor is suitable for the recipe, resulting in a new armor.

At the moment I can only create recipes ignoring the durability of that object so when ''repairing the armor'' I could get into a loop and create the same object over and over again instead of using only objects with X durability.
最后由 Narkhen 编辑于; 2023 年 11 月 20 日 上午 11:53
< >
正在显示第 1 - 3 条,共 3 条留言
Jaggid Edje 43 2023 年 11 月 20 日 下午 12:33 
I think, If it's possible, it would require some lua scripting. You can't just set up a recipe that way easily.

Survivors do prioritize the lowest durability material first though, so if you did "times' instead of "until" you could just set it to do the number you actualy need repaired and it would pull only the lowest durability ones to do it with.

I'm curious though, if you got it to work at all to properly create an output that is the same as one of the inputs?

My attempt at setting up a recipe to "repair" good luck charms just failed to produce any output at all. That's what happens any time I set up a recipe where an input and output are the same item/resource. I haven't tried since the last game update though, which is why I ask.

(I instead just made a recipe to "recycle" the good luck charms, which works because the output is different).
最后由 Jaggid Edje 编辑于; 2023 年 11 月 20 日 下午 12:34
Narkhen 2023 年 11 月 20 日 下午 12:43 
Thanks, I will check what you tell me, I have a couple more ideas, and if it works, I will upload the mod to workshop in case you want to take a look at it.

I will try to do it without Lua Script.

Regards.
Narkhen 2023 年 11 月 23 日 上午 5:21 
You were right, the survivors do use the least durable material as an ingredient.

And if in the recipe both in the input and output is the same object, it results in the elimination of this, so there are only two possibilities, either recycle the item, or configure them with infinite durability.
I have not been able to find a solution to this issue.

Regards.
最后由 Narkhen 编辑于; 2023 年 11 月 23 日 上午 5:22
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50