Not logged inOpenClonk Forum
Up Topic Alternate components

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Marky
Related to the discussion in the liquid container things, and the discussion in the feature wish: http://bugs.openclonk.org/view.php?id=1148

I think a good option would be the format:
IsSubstituteForComponent(id in_product){ return [id component, int amount];}

It has the following advantages:
- the original object does not have to know anything about the object that can substitute it, so it can be used by modders for their new content
- the user can decide if this object is a substitute in all products (e.g. bear skin can replace wipf skin), or in specific products (a smelter can produce metal from ore and coal. The ore may be substituted by a metal barrel in this specific case)
- the user has the option to set a different ratio for the substituted component (e.g. a monster egg can be substituted by 2 bird eggs in my omelette).

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill