I'm making a turn-based game, along the lines of final fantasy and the legends of the dragoon.
I've been able to implement stats, levels, etc without any problem (well that's a lie, it kept me up all night until I figured it out), but now i'm moving onto the typical skill-selection pages in the average final fantasy game
Now creating the dialog buttons isn't a problem, but it's getting like 1 of the 20 on the page to do specifically what I want to do. I can do it my way and make another 200 variables, but I figure there has to be an easier and less-confusing way
thanks for any help with this... i can't bear the thought of creating 2-3 variables per skill
You're going to have to assign each button one variable at minimum. The fastest way to deal with it would be to use a loop to create each button and assign the next variable in an array. Depending on how much customization you need, this may not be feasible.
no matter what, if it's trigger based system you will have to create at least one action call per spell in book. But in the end is should be very simple. Especially if you use structs/records. you could use double array as spell location like spelldata[page][index]
I'm making a turn-based game, along the lines of final fantasy and the legends of the dragoon.
I've been able to implement stats, levels, etc without any problem (well that's a lie, it kept me up all night until I figured it out), but now i'm moving onto the typical skill-selection pages in the average final fantasy game
Now creating the dialog buttons isn't a problem, but it's getting like 1 of the 20 on the page to do specifically what I want to do. I can do it my way and make another 200 variables, but I figure there has to be an easier and less-confusing way
thanks for any help with this... i can't bear the thought of creating 2-3 variables per skill
You're going to have to assign each button one variable at minimum. The fastest way to deal with it would be to use a loop to create each button and assign the next variable in an array. Depending on how much customization you need, this may not be feasible.
@BasharTeg: Go
ugh, was afraid of that...
i'm going to leave that part alone for now lol... i just got done making like 150 variables for all of the other functions..
thanks for the response, though
as bashar said you will need 1 variable per object (not button but object, include dialog itself and images)
i think the best option is learn about layouts and modify default UI. helral have amazing tutorials about that
http://www.sc2mapster.com/forums/resources/tutorials/20323-ui-sc2layout-files-override-method-aiurchef-method/
i'm sure you would like to see a demo of runecraft, with a "spellbook-style" layout
no matter what, if it's trigger based system you will have to create at least one action call per spell in book. But in the end is should be very simple. Especially if you use structs/records. you could use double array as spell location like spelldata[page][index]