myav Posted December 23, 2019 Share Posted December 23, 2019 (edited) Who knows, how the game hands out id of the forms? Why i ask this, explanation. I have checking code: ActorBase UCM_TempBase = selfactor.GetActorBase() string ucm_temp=UCM_TempBase.GetFormID() debug.notification("id: " + ucm_temp) and with this check, i have created a lot of functions. As example, if NPC is Female Bandit, their id's: if (ucm_temp=="228348" || ucm_temp=="228351" || ucm_temp=="228358" || ucm_temp=="236789" || ucm_temp=="236791" || ucm_temp=="236792" || ucm_temp=="236901")or, if npc is Jarl, or if npc is not hired but potential follower, with my cheсk i already found their ActorBase form id's and use them in the different functions/conditions. MY QUESTION 1: Do all players have THE SAME NUMBERS inside ActorBase Form id's and Combatstyle Ref id's of vanilla objects? regardless of the number of installed mods? Because in the wiki on some pages i saw examples where was written id's i check that id's inside my creation kit and i have noticed that these objects have other id. So, 2 variants: 1. in the wiki is old info. and id's were changed after game updates by official patches2. vanilla form id's depends on something else if you know how this works, pls explain here. MY QUESTION 2: The same but about mod. Example, i have created a new CombatStyle and new Spell. Then i have checked their form id and i used this inside different functions. Then i have installed this mod on other PC where already was a lot of mods. Other mod can take a free (not used) id? And to create Spell/CombatStyle with the same id or not? (while this mod was not installed on the current PC)? Or each form id have info about mod and can't be conflicts? I'm asking about form id, not about ref id) And I want to know about potential conflicts. Edited December 23, 2019 by myav Link to comment Share on other sites More sharing options...
IsharaMeradin Posted December 23, 2019 Share Posted December 23, 2019 Any plugin can utilize the same form ID numbers for any record. The Creation Kit starts at a given value and increases the form ID number by one for each record created and in the order that they are created. Mod A can have a specific form ID for a quest while Mod B has that same form ID on an actor. Form ID numbers do not change once the record is created. The only way to change the number is to either delete and recreate the record within the Creation Kit or use TES5Edit to forcibly change the form ID. For your information, the term Form ID is used to describe the 6 character number that corresponds to the specific record as well as the full 8 character hex number that corresponds to load order position as well as the record. This may lead to confusion for some and can explain why a different number is seen for the same object. For the sake of explanation lets call the 8 character hex number Editor IDEditor ID = Load Order hex position + Form ID hex valueEditor ID = 00 + 0a12bcEditor ID = 000a12bc GetFormID pulls the last 6 characters and displays them as a decimal value instead of hex. The reason your method is working is that you are already taking a known object type and comparing it to a known decimal form ID that matches an object of that type. If you were doing something crazy like taking the object that the cross hair is on and comparing that to a specific form ID, you can very well get false positives as there could be a variety of objects across several mods that would be valid for such a comparison. You may wish to use GetFormFromFile instead and store the target objects locally if your intent is to avoid using properties for said objects. With GetFormFromFile you are guaranteed that your target object is the one that you want from the plugin that you want. Hope that helps and doesn't make things even more confusing Link to comment Share on other sites More sharing options...
myav Posted December 23, 2019 Author Share Posted December 23, 2019 (edited) So, i can use without fear only Formid from objects from skyrim.esp? that not to have confuses with other mods (game don't receive official updates 5 years, and all people have the same last patch of the game, and as result: the same number of forms and their id, inside skyrim.esp). But not all people have the same dlc, so after - order of forms and their id's can be different. Okey, Big thanks for explanation! IsharaMeradin Then.. For other objects i will found other way, how to determine their id's without conflicts. p.s.: size of needed work again increased ((( Edited December 23, 2019 by myav Link to comment Share on other sites More sharing options...
Recommended Posts