RPG Upgrade System?
Hello UE4 Community! I'm relatively new to the community, and to UE4 in general. I know how to do simple blueprint events and scripts, however, I can't find any tutorials on how to go more advanced, at least in the path I'm trying to head. I'm planning on making a game similar to Bioshock or System Shock 2, where you have RPG style upgrades and the like, but also FPS and puzzle elements. The problem I'm running into is the lack of RPG guides, tutorials and anything relating to the subject. I'm looking for something to help with a simple upgrade system, e.g. "When blank happens change movement speed" and "When blank happens change damage variable", things like that. A specific guide isn't needed, just something to build off of, that I could easily turn into something like "When player has picked up blank amount of XP points unlock ability to press upgrade button widget. When button is pressed, change movement speed." Obviously not that exactly, but you get the idea. If you could link me something or show me yourself, it would be very much appreciated!
Thanks everyone in advance,
Sagan (AKA MrGeeky)
asked Nov 15 '15 at 01:33 AM in Blueprint Scripting
I'm assuming you're only working with blueprint, so I'm going to post the easiest way to do this with that. The simplest system would be to have a "IUpgrade" interface which has two methods: OnActivate and OnDeactivate. Both of these methods should take in your game-specific pawn blueprint. Each skill will be a blueprint derived from UObject that implements this interface. OnActivate will apply the "effects" and "OnDeactivate" will remove them. Your game-specific pawn should have "AddUpgrade" and "RemoveUpgrade" both of which take in the "IUpgrade" interface.The "AddUpgrade" method will add the upgrade to your game-specific pawn's array of upgrades, if the pawn doesn't already have it and call OnActivate." The "RemoveUpgrade" should do the opposite.
Follow this question
Once you sign in you will be able to subscribe for any updates here