Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: MatiasHarder on August 16, 2017, 09:19:45 AM

Title: Skill enhancement system HELP
Post by: MatiasHarder on August 16, 2017, 09:19:45 AM
Some way that by pressing a "Control or Strong" button this will increase my strength stats.

2d rpg Game
Title: Re: Skill enhancement system HELP
Post by: tcmeric on August 16, 2017, 01:29:01 PM
Hi. Have you created some type of management system for your stats? First you will need to create a management system using playmaker and then create the specific conditions for it to occur.

Maybe first start by making some float variables on your character to hold the states. Strength, health, etc. Then you need to decide what conditions will change these stats.

For example, each time you kill an enemy, maybe the player needs to get +0.1 to the strength (or experience).
Title: Re: Skill enhancement system HELP
Post by: MatiasHarder on August 17, 2017, 03:24:55 PM
Oh I understand .. this would work well with global variables or not?
Title: Re: Skill enhancement system HELP
Post by: elusiven on August 18, 2017, 05:52:09 AM
Don't use global variables unless you really have to. Definitely not for a skill management system. There are other ways that you can send information there and back to different FSMs. You can access other FSMs by getting their gameobjects and you can also use events.
Title: Re: Skill enhancement system HELP
Post by: MatiasHarder on August 18, 2017, 04:26:14 PM
I had no idea of that .. thanks a lot I'm going to implement it :O