falloutkid12 Posted September 12, 2017 Share Posted September 12, 2017 I'm trying to make a perk (really just another rank of Pain Train) that prevents your power armor pieces from taking damage by adding the keyword "PowerArmorPreventArmorDamageKeyword" to actors that have said perk. AFAIK, you cannot add keywords to actors using spells/ enchantments, but you can using scripts. Thing is: I'm very new to scripting. I know the basics: What are objects, events, functions, syntax, parameters, etc. What I don't know is how to write the script and implement it so that when an actor gains the perk, the game adds the keyword to actors. I'm also aiming for maximum compatibility, i.e. every NPC/actor that has this perk will attain the keyword, no "player-only" shortcuts. I do have a base script, though it probably means nothing when compiled and added to anything. Scriptname PainTrainNoPADamageScript extends Actor{Adds the PowerArmorPreventArmorDamageKeyword keyword to an actor with the Pain Train rank 4 perk} Keyword Property myKey Auto;myKey is the PowerArmorPreventArmorDamageKeyword i set when I edit the script locally. Function GetActorReference(Actor akActor) akActor.AddKeyword(myKey) EndFunction Link to comment Share on other sites More sharing options...
Recommended Posts