Hi guys, I’m looking for something really more complex that anything I’ve done before (well, I haven’t set the standard really high though ^^)
I already have a lock/unlock Skill System (basically, an array with skill ID → and 0 (lock) or 1 (unlock) value for each skill. If the value for the iD is 1, the skill is unlock.
Now what I’d like is also to have a “quick selection” skill menu : the classic action rpg like, a square item that shows the active skill, when you press the “up input” (on a controller let’s say) the item displayed is the next skill unlock, and obviously, when you trigger the “skill button” the active skill is fired.
What part of making this exactly do you need help on…? Just make a variable that stores your currently selected skill (an int that can be used to reference the array by index). Then when you press your up or down or whatever you’re wanting to use to change it, have it increase or decrease that variable to the next ‘unlocked’ skill in your array.
Also why not use an array of bool instead of an array of int that are always going to be 0 or 1?
Thank you Thaao, I actually managed to make it kinda work on my own. (actually, this is even working great)
But I want to make my system a little more modulable cause right now I have :
-my skills on separate gameobjects, set as child of my player object.
-these children are set inactive and have behaviors fired on “enabled”
-they are also dragged in an “skill array” on the Player itself.
-my “active skill manager” enable/disable these children when the “skill key” is pressed
-it also navigate properly in the array to set which one is the ACTIVE skill, and take care of the cool down et stuff like that.
Now, what I’d like is to actually Unlock these items by picking them up.
What I need then is to set them as “Player Child Object” when picked up (ie. on trigger)… and I don’t have any idea how I should to it !
Never had to do that before, and when I’m searching for “on trigger set child object” I just get these “how to trigger with a child object” topics ^^’
PS: Paykoman, as soon as the system works really fine, I’ll be glad to share it with you
PS2: Thaao, I don’t really know why I haven’t chose a bool array, I guess I just used something that I found more easy, it’s probably not ^^
But now that I have this pretty much set and working, I’m gonna stick with it I think, but you’re obviously right.