One common thing to do in modding is making variants on a given item. ie you need a certain event on that item or you are making a variant to overwrite the original (ie making the original notrandom)
In OnGlobalTypesInit you can overwrite anything you want with dynamic types. The issue is you often don't know the original (it might be a modded item or it might be changed in a different OnGlobalTypesInit).
What I propose is a function that returns a string that fulfills this condition. (assuming not the trivial case of deriveItemXML returning a constant)
(typCreate myID (deriveItemXML otherID))
(eq (deriveItemXML myID) (deriveItemXML otherID))
This would make all mods that using this compatible with each other and would make it much easier to make existing mods compatible with each other. You could even make a system where all future mods would be compatible with your mod without changes. (not counting the changes made to the translisp)
Any thoughts or problems?
Freeform discussion about anything related to modding Transcendence.
2 posts • Page 1 of 1
- Fleet Admiral
- Posts: 2876
- Joined: Thu Feb 03, 2011 5:21 am
- Location: Hmm... I'm confused. Anybody have a starmap to the Core?
Seconded! This would be a great check so that you don't accidentally overwrite ssHeretic or something