I've been working on a third person game where each player picks their class and levels up. Each level up the player gets to pick a new spell.
I currently have a hidden UI with a dialog spell bar (like a WoW spell bar) on the bottom of the screen, with WASD movement and Diablo controls - i.e. press 1 and that assigns the spell in the first slot on the spell bar to the right mouse button. I use triggers to order the unit to target the players camera yaw and fire the spell in that direction (its a shooter, all spells are directional except for a guardian shield and healing)
What I want to do is create either a command card or dialogue that allows the player to pick a new spell each time they level up, and also (could be a separate dialog) allows the player to assign one of their already researched spells to the spell bar.
Basically, you would see a list of all the spells for your class (Actually 4 lists, one for each school of magic) and you would see which ones you have researched, and can assign those to the spell bar. Then you could also spend a point you get from leveling up to increase your proficiency in one school of magic. I don't mind using the WC3 system of picking spells if that is going to be a lot easier to implement.
The only way to do this I could think up was to make a system of arrays which tracked what level each's player's class and schools of magic were at and then built a UI based on these variables... So like, if your "fire" was at level 3, you would see Fire spells, 1,2,3 as available and could equip them, but fire spell 4 would be greyed out but researchable. but this seems extremely tedious. I'm going to have something like 60 spells (multiple ranks of most) and this would require me to have if/then statements for each spell in each magic school. :-(
Is there a way to accomplish these basic functionalities with a custom UI? All I want is basically to show the command card(?), allow people to spend points to research their abilities and then assign previously researched spells to the spell bar. I don't care if it looks like the command card or whatever, In fact that might be better since I already set up the icons/tooltips for a bunch of spells.
Thanks.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I've been working on a third person game where each player picks their class and levels up. Each level up the player gets to pick a new spell.
I currently have a hidden UI with a dialog spell bar (like a WoW spell bar) on the bottom of the screen, with WASD movement and Diablo controls - i.e. press 1 and that assigns the spell in the first slot on the spell bar to the right mouse button. I use triggers to order the unit to target the players camera yaw and fire the spell in that direction (its a shooter, all spells are directional except for a guardian shield and healing)
What I want to do is create either a command card or dialogue that allows the player to pick a new spell each time they level up, and also (could be a separate dialog) allows the player to assign one of their already researched spells to the spell bar.
Basically, you would see a list of all the spells for your class (Actually 4 lists, one for each school of magic) and you would see which ones you have researched, and can assign those to the spell bar. Then you could also spend a point you get from leveling up to increase your proficiency in one school of magic. I don't mind using the WC3 system of picking spells if that is going to be a lot easier to implement.
The only way to do this I could think up was to make a system of arrays which tracked what level each's player's class and schools of magic were at and then built a UI based on these variables... So like, if your "fire" was at level 3, you would see Fire spells, 1,2,3 as available and could equip them, but fire spell 4 would be greyed out but researchable. but this seems extremely tedious. I'm going to have something like 60 spells (multiple ranks of most) and this would require me to have if/then statements for each spell in each magic school. :-(
Is there a way to accomplish these basic functionalities with a custom UI? All I want is basically to show the command card(?), allow people to spend points to research their abilities and then assign previously researched spells to the spell bar. I don't care if it looks like the command card or whatever, In fact that might be better since I already set up the icons/tooltips for a bunch of spells.
Thanks.