Leemerful Posted July 7, 2012 Posted July 7, 2012 I've got this idea for a mod but I need a certain script and I'm not too experienced with scripting. All I can do is add messages. What I want done is when the PC activates a door, it won't let him through unless he/she is a certain rank in a certain faction. If they're not that rank it will bring up a message saying something about not being worthy. This is probably not too hard for you scripters out there but for me, I'm not really too sure how to do it. Thanks!
WarRatsG Posted July 7, 2012 Posted July 7, 2012 This script should do it: Scn LeemerfulDoorSCRIPT Begin OnActivate If IsActionRef Player If Player.GetFactionRank [insert name of faction] < [insert rank index] MessageBox "You are not a high enough rank to open this door." Return endif Endif Activate Just insert the EditorID of the faction where I've asked for the name, and insert the rank index (the rank number) of the rank required to open the door. If the player's rank is less than the required rank, then they cannot open the door. All NPCs can open the door, regardless of their rank.
Recommended Posts