Jump to content

Photo

If I wanted a trait or perk to apply to several specific locations, how would I do that?

vault perk trait

  • Please log in to reply
3 replies to this topic

#1
FNVGuy1127

FNVGuy1127

    Journeyman

  • Members
  • Pip
  • 43 posts

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.



#2
UnvalidUserName

UnvalidUserName

    Enthusiast

  • Members
  • PipPip
  • 204 posts
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 Vault
It will return true for any cell with an ID that starts with Vault

#3
FNVGuy1127

FNVGuy1127

    Journeyman

  • Members
  • Pip
  • 43 posts

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 Vault
It will return true for any cell with an ID that starts with Vault

When 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?



#4
Ladez

Ladez

    Useful Idiot

  • Supporter
  • PipPipPipPip
  • 1,866 posts

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.







Also tagged with one or more of these keywords: vault, perk, trait

Page loaded in: 1.154 seconds