Jump to content

Recommended Posts

Posted

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

Posted
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.
Posted
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
Posted

Owk:

 

scn Factiondoorlockscript

ref target

Begin OnActivate
set target to GetActionRef
if target.GetFactionRank MyFaction == Rank
	activate
endif
End

Example (Arch-Mage): if target.GetFactionRank MagesGuild == 9

Posted
  Conman1991 said:
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

NPCs 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.

Posted

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

Posted
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 ?
Posted
That's odd. You could also use Door.SetOpenState 1 instead. See if that works.
Posted

solved .. thnaks for any help

in the end i used this script if anyone wanted to know

 

scn magevaultdoor

 

short button

 

Begin OnActivate

if (player.getFactionRank magesguild == 9)

activate

endif

End

  • Recently Browsing   0 members

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