FNVGuy1127 Posted September 21, 2020 Share Posted September 21, 2020 I'm working on making a trait that adds effects to the player when they're in any vault, but I'm not quite sure what I need to do in order to make the effects apply to all vaults in the game. Link to comment Share on other sites More sharing options...
UnvalidUserName Posted September 21, 2020 Share Posted September 21, 2020 Check the GetInCell function. I recommend you read it from the wiki. It can take incomplete arguments so if you do something like: Player.GetInCell VaultIt will return true for any cell with an ID that starts with Vault Link to comment Share on other sites More sharing options...
FNVGuy1127 Posted September 22, 2020 Author Share Posted September 22, 2020 Check the GetInCell function. I recommend you read it from the wiki. It can take incomplete arguments so if you do something like: Player.GetInCell VaultIt will return true for any cell with an ID that starts with VaultWhen I do that, it shows something like "Vault11a" and so on. So do I add everything that starts with "Vault" as a condition for the perk to have an effect? Link to comment Share on other sites More sharing options...
Ladez Posted September 22, 2020 Share Posted September 22, 2020 I believe you have to add a dummy cell that is simply named Vault for this to work. According to the wiki, it will indeed return true for anything that starts with the given name, but the given name will still need to be a valid editor ID. Link to comment Share on other sites More sharing options...
Recommended Posts