anb2004 Posted November 17, 2012 Share Posted November 17, 2012 Hai I'm trying to find a way to make an armor/clothing(s) that make NPC's with choosen factions become hostile towards the user of the armor, just to making things much more interesting. because i found a bit weird walking around citys with wearing DB armor, even tho i've been seen wear it while conducting several murders and being witnessed by several people but i do managed to escape. will be great if this can also works as an enchantment. i know this must be involving a script(s), but i really know none about scripting so i was hoping someone can give me some help here, or maybe something to start with. thank you.. Link to comment Share on other sites More sharing options...
acidzebra Posted November 17, 2012 Share Posted November 17, 2012 Well, you can set the player as an enemy to a faction with SOMEFACTION.SetPlayerEnemy()(and the reverse SOMEFACTION.SetPlayerEnemy(false)http://www.creationkit.com/SetPlayerEnemy_-_Faction You could combine this with a script on the equipment using the onequipped() and onunequipped() eventshttp://www.creationkit.com/OnEquipped_-_ObjectReference You could just make all the major hold factions (TownXXXFaction) player enemies when DB armor is equipped this way. But this does mean that anyone in that faction who spots you will attack on sight - which I think is why Beth didn't do that. It would make for some interesting roleplaying - and a lot of running :tongue: Link to comment Share on other sites More sharing options...
anb2004 Posted November 17, 2012 Author Share Posted November 17, 2012 hah, thank you acid.. i'll see if i can pull it off. got the recipes, now i just need to cook it properly in CK. Doing scripts always end up terribly for me, so hoping this will works right :blush: thank you. Link to comment Share on other sites More sharing options...
BigKevSexyMan Posted November 17, 2012 Share Posted November 17, 2012 Good luck, this is something I've wanted to see done for a while now. Link to comment Share on other sites More sharing options...
anb2004 Posted February 1, 2013 Author Share Posted February 1, 2013 (edited) decided to bring this up again because the last time i just cant figure why its not working so i just drop it and admiting there is no way to create a simple working scripts from my own hand !. :wallbash: but now i'm really curious and really wanted to make this work..i know there is something more that need to add, but i just cant figure what it is. attach it to my custom armor and already hook the proper faction in properties ScriptName _anbHostileArmor Extends ObjectReference Faction Property IsGuardFaction auto Event OnEquipped(Actor akActor) if akActor == Game.GetPlayer() IsGuardFaction.SetPlayerEnemy() endif EndEvent Event OnUnequipped(Actor akActor) if akActor == Game.GetPlayer() IsGuardFaction.SetPlayerEnemy(false) endif EndEvent pretty stupid script huh, could only rely on my logic and base understanding with the lines (means not function :sweat: ) from Creation Kit references. so please bear with me and thanks in advance Edited February 1, 2013 by ebony_ivory Link to comment Share on other sites More sharing options...
VectorPlexus Posted February 2, 2013 Share Posted February 2, 2013 decided to bring this up again because the last time i just cant figure why its not working so i just drop it and admiting there is no way to create a simple working scripts from my own hand !. :wallbash: but now i'm really curious and really wanted to make this work..i know there is something more that need to add, but i just cant figure what it is. attach it to my custom armor and already hook the proper faction in properties ScriptName _anbHostileArmor Extends ObjectReference Faction Property IsGuardFaction auto Event OnEquipped(Actor akActor) if akActor == Game.GetPlayer() IsGuardFaction.SetPlayerEnemy() endif EndEvent Event OnUnequipped(Actor akActor) if akActor == Game.GetPlayer() IsGuardFaction.SetPlayerEnemy(false) endif EndEvent pretty stupid script huh, could only rely on my logic and base understanding with the lines (means not function :sweat: ) from Creation Kit references. so please bear with me and thanks in advance Silly question here, but.. have you assigned the IsGuardFaction Property in the Armor Form? Otherwise it just returns NONE. Link to comment Share on other sites More sharing options...
anb2004 Posted February 2, 2013 Author Share Posted February 2, 2013 Silly question here, but.. have you assigned the IsGuardFaction Property in the Armor Form? Otherwise it just returns NONE. if you mean by link the faction in the properties, then yes already did... found some post regarding this, and some are mention it need more like of AddToFaction and GetFactionRank stuff. still trying to understand it tho. Link to comment Share on other sites More sharing options...
Recommended Posts