So this is not working:
So this is not working:
The first byte (in your case, 0x02) is not used as this is specific to that mod.
Try Game.GetFormFromFile(0x1A565B, "Duke Patricks - TEST.esp") as faction
um... but I get this 1243240027 from this :
debug.messagebox(TestFaction.GetFormID())
when I run this in my test esp that has the test faction
I just thought to do this after I made the post. What number is 1243240027 this then?
= 0x4A1A565B
the "4A" (just like the 02) is dependent on mod load order. This is not needed when using GetFormFromFile
Neither one of these worked:
see here:
http://spookyfx.com/Skyrim/Image1.jpg
IS that the form id?
nevermind I did this:
debug.messagebox(TestFaction.getname())
and got "TEST"
which is indeed the name of the faction, so that part is working. I must be doing some other thing wrong.
OK, Thanks for the help guys!
FormIDs have two parts but are displayed as a single number 8 digit hex number. The first 2 digits are used to identify what plugin the form comes from. This will change depending on if you view it in the ck/tesedit (based on the masters of the plugin) or in game (based on load order). The last 6 digits are the numeric ID of the form in that plugin and will be the the same in both tools, like the CK or tesedit, and in game. GetFormFromFile uses only the last six digits and uses the filename instead of the first 2 digits.
Your issue might be that the player has rank -1 in the faction which is usually used as the may eventually join the faction rank. Try Player.getFactionRank instead. But getFactionRank will error if they aren't in the faction so to use it if and only if that mod is present do something like
TestFaction = Game.GetFormFromFile(0x1A565B, "Duke Patricks - TEST.esp") as factionif (testFaction)debug.messagebox(playerRef.GetFactionRank(testFaction))EndIf
PLB said he would look into addressing this in skse but I'm not sure its in the latest one.
yep, that was it. Thanks again to all of you.
I just wish I had more smart questions than dumb ones.