How would I script unlockable abilities?

This is basically what I’m looking for:

  • You start off with a sword.
  • You talk to an NPC with enough money.
  • The NPC teaches you skills.

I’m just unsure as to how to go about the NPC giving you the skills.

1 Like

I mean, if the ability is an instance, you could put a bool value in it (ex. Unlocked = false) and use it to see if the ability is unlocked or not. you can use x.Changed to unlock the ability (in this case doing unlocked = true and then firing the x.Changed function)