MFD - primable equipment ?
Posted: Wed Oct 07, 2015 2:14 pm
After various changes to existing OXPs I was wondering about making an own one.
I would like to have an MFD that displays all of that equipment that is primable and which equipment currently is primed and how many times you need to press key_prime_equipment in order to prime that equipment that you want to prime previously to doing it.
However, after browsing the documentation I get the impression that there is at least not an easy way to determine whether some equipment is primable. An array of all equipment can be iterated upon, but then I would have to add manual support for all equipment that is known to be primable. And as there doesn't seem to be a general event handler for some equipment being primed, all primable equipment would need support for such an MFD by notifying it in their "activated" function.
I also noticed that the order of primable equipments that is iterated through by key_prime_equipment is not stable between saveloads (it changes each time) and there also doesn't seem to be a way of getting this array or set directly. So knowing which equipment is the next to prime seems impossible.
What determines if some equipment is primable ? The presence of a "script" entry in its equipment.plist entry ? At some point I also managed it by removing a this.activated() function.
I would like to have an MFD that displays all of that equipment that is primable and which equipment currently is primed and how many times you need to press key_prime_equipment in order to prime that equipment that you want to prime previously to doing it.
However, after browsing the documentation I get the impression that there is at least not an easy way to determine whether some equipment is primable. An array of all equipment can be iterated upon, but then I would have to add manual support for all equipment that is known to be primable. And as there doesn't seem to be a general event handler for some equipment being primed, all primable equipment would need support for such an MFD by notifying it in their "activated" function.
I also noticed that the order of primable equipments that is iterated through by key_prime_equipment is not stable between saveloads (it changes each time) and there also doesn't seem to be a way of getting this array or set directly. So knowing which equipment is the next to prime seems impossible.
What determines if some equipment is primable ? The presence of a "script" entry in its equipment.plist entry ? At some point I also managed it by removing a this.activated() function.