People tell you not to use Form ID's in scripts and you replace the last few editor ID's you had in the script with Form ID's. :unsure:
I haven't had much luck with Editor IDs in Fallout 3 where I've had the most experience scripting, while Form IDs always work. Yes, there is the load order issue - but what can I do if it didn't work with Editor IDs? However, it DID work with The Elder Scrolls IV - Oblivion. So, consider me admonished. . .
There's also the minor problem that if you were in the faction before equipping the items, your script doesn't record that and unconditionally expels you from the faction when you unequip. The DB faction, for example, likes to kill its ex-members.
How do I fix this issue? My scripting knowledge is clearly quite limited. I would appreciate some input on this matter and, of course, thanks for all the replies.
UPDATEI got it to work. Now the script does nothing if you wear or remove the clothing whilst already a member of the faction.
scriptName MythicDawnClothingshort AlreadyInFactionshort NotInFactionbegin GameMode if player.getinfaction MythicDawn == 1 set AlreadyInFaction to 1 endifendbegin OnEquip if (player.getequipped MythicDawnRobe && player.getequipped MythicDawnRobeHood == 0) && AlreadyInFaction == 0 player.setfactionrank MythicDawn 0 set NotInFaction to 1 endifendbegin OnUnequip if NotInFaction == 1 player.setfactionrank MythicDawn -1 set NotInFaction to 0 endifend
- Ryan Paul Fialcowitz