Conman1991 Posted October 25, 2009 Share Posted October 25, 2009 Im building a house for a high level character and some parts are guild related. I want the doors of these areas to be locked until the person is the head of the guild what is the short lock script that makes the door locked until player is the right faction rank. thanks in advance Link to comment Share on other sites More sharing options...
Pronam Posted October 25, 2009 Share Posted October 25, 2009 Probably no need for a script. Look at ownership and assign it to a faction and a rank and get it locked with only a key to open it. Link to comment Share on other sites More sharing options...
Conman1991 Posted October 25, 2009 Author Share Posted October 25, 2009 nah i could do that.. but i want it so that it checks the faction rank and is unlocked only if at that rank... cos the guild masters dnt all get news keys when they finish the quest line; so a short script that enables the door if the rank is right, is what im looking for Link to comment Share on other sites More sharing options...
Pronam Posted October 25, 2009 Share Posted October 25, 2009 Owk: scn Factiondoorlockscript ref target Begin OnActivate set target to GetActionRef if target.GetFactionRank MyFaction == Rank activate endif EndExample (Arch-Mage): if target.GetFactionRank MagesGuild == 9 Link to comment Share on other sites More sharing options...
Vagrant0 Posted October 26, 2009 Share Posted October 26, 2009 nah i could do that.. but i want it so that it checks the faction rank and is unlocked only if at that rank... cos the guild masters dnt all get news keys when they finish the quest line; so a short script that enables the door if the rank is right, is what im looking forNPCs can open any locked door they own without aid of a key. You can see this by stealing keys from NPCs around the IC, and following them around. NPCs only need the key if they are to lock or unlock a door by package, not if they are only trying to go through that door. However, keep in mind that this may not always work when you're dealing with non-load doors. Additionally, you can also just give keys a weight of 5-10, since heavier items are harder to steal, consolidate things to only requiring a few keys (making use of faction ownership on doors to control NPC behavios) and giving all they keys needed to each NPC who will be moving through that space. Combined with that, setting ownership of cells or objects to a certain faction rank can help discourage the player from going where they shouldn't be. Paired with some scripting on faction NPCs, it can be quite efficient at keeping the player out. Link to comment Share on other sites More sharing options...
Conman1991 Posted October 27, 2009 Author Share Posted October 27, 2009 there won't be any guild people, its for the player. Just want him to have to be a certain guild rank @Pronam thanks for the script, looks something like i thought, ill implement and try it. :D Link to comment Share on other sites More sharing options...
Conman1991 Posted October 29, 2009 Author Share Posted October 29, 2009 this script has made the doors disapear... they are interior doors rather than teleport doors, duno if that makes a difference .. but atm they arnt there ... any help ? Link to comment Share on other sites More sharing options...
Pronam Posted October 29, 2009 Share Posted October 29, 2009 That's odd. You could also use Door.SetOpenState 1 instead. See if that works. Link to comment Share on other sites More sharing options...
Conman1991 Posted November 5, 2009 Author Share Posted November 5, 2009 that wont even save as a viable script ... says thje setopenstate command does not exist Link to comment Share on other sites More sharing options...
Conman1991 Posted November 5, 2009 Author Share Posted November 5, 2009 solved .. thnaks for any helpin the end i used this script if anyone wanted to know scn magevaultdoor short button Begin OnActivate if (player.getFactionRank magesguild == 9) activate endifEnd Link to comment Share on other sites More sharing options...
Recommended Posts