Jump to content

Castle Factions a scripting question?


Orcalink

Recommended Posts

Hey i'm new at modding so go easy ;-P. Basically I tried a couple of the "disguise" mods the basis being that you could put on clothing and pretend to be a guard/whatever and other ppl would react to you as if it were so . I thought this meant you would have access to areas such as within castles. However after finally settling with ranokoas undercover overhaul i set about my first test infiltration to see if it actually worked. It did. Kinda. Guards spoke to me as if I was a guard and i had access to guard areas such as Ulrich Leland's room in the cheydinhal castle guard barracks. Great I thought so I set off to explore the castle, only to find that the cheydinhal castle private rooms were off limits to me. That is to say the door icon was red and when i went inside (still in guard uniform) another guard spotted me, ran up and told me it was a restricted area and I should leave. However I still had a disposition of 100 with him (so the guard faction still applied to me). Ok I thought and hit the construction set to see what was going on. I thought I discovered the problem when I found that the castle inhabitants (castle guards included) were in a separate faction to the city guards one. So I used the script that was already set for the cheydinhal guard armour which looked like this: [w/o quotation marks]

"scriptname 01ChipndalesguardsUndercover

 

begin onEquip Player

player.SetFactionRank CheydinhalGuardFaction, 0

end

 

begin OnUnEquip Player

player.SetFactionRank CheydinhalGuardFaction, -1

end"

 

And added lines that I believed would enable addition to the CheydinhalCastleFaction thinking that that would mean I could enter those rooms in the armour w/o trespassing so I tried changing it to this:

"scriptname 01ChipndalesguardsUndercover

 

begin onEquip Player

player.SetFactionRank CheydinhalGuardFaction, 0

player.SetFactionRank CheydinhalCastleFaction, 0

end

 

begin OnUnEquip Player

player.SetFactionRank CheydinhalGuardFaction, -1

player.SetFactionRank CheydinhalCastleFaction, -1

end"

 

That didn't have any effect so I tried this:

"scriptname 01ChipndalesguardsUndercover

 

begin onEquip Player

player.SetFactionRank CheydinhalGuardFaction, 0

end

 

begin onEquip Player

player.SetFactionRank CheydinhalCastleFaction, 0

end

 

begin OnUnEquip Player

player.SetFactionRank CheydinhalGuardFaction, -1

end

 

begin OnUnEquip Player

player.SetFactionRank CheydinhalCastleFaction, -1

end"

 

This again didn't change a thing and it seemed very much like I was still not being added to faction that I wanted. I then had a look through the factions and found that some were hidden from the player and some were not. This didn't seem to ahve been changed by the mod but none the less I made sure that each faction I wanted affected was unticked but still I had no luck.

 

Am I mistaken as to the workings of the factions and that admission into forbidden areas inside the castles aren't actually related to the particular NPC faction that UESP.net says they are? Or have I misunderstood how scripting work/made a simple error etc etc???

 

Cheers for any help

 

Orcalink

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...