RM2K3 CBS WHO GOES FIRST?
Posts
I am making a custom battle system and need help in deciding how to order the turns out of the heros and the enemies. I don't want it to be ATB based, just whoever has the highest speed, second highest, third highest and so on.
So an example would be Hero1 has a bigger speed than Enemy1 but Hero 1 has a lower speed than Hero2. This would mean that Hero1 goes before Enemy1 but there is now a decision to make out of Enemy1 and Hero2. I just want to make a system that can do this calculation. I have 3 Hero's and 6 enemies. If somebody could just get me started i would really appreciate it. Thanx :D
So an example would be Hero1 has a bigger speed than Enemy1 but Hero 1 has a lower speed than Hero2. This would mean that Hero1 goes before Enemy1 but there is now a decision to make out of Enemy1 and Hero2. I just want to make a system that can do this calculation. I have 3 Hero's and 6 enemies. If somebody could just get me started i would really appreciate it. Thanx :D
Hmm, manually building a way to sort nine values? This is why arrays were invented.
I'll try and think of something. Just thought I'd let you know someone saw this.
I'll try and think of something. Just thought I'd let you know someone saw this.
Since this is more easier done then typed, Here's a very vague explanation on the concept of this:
I call this a priority system. Within this system (event) each battle participant that is active (as in not dead or etc..) is assigned a variable that is set to 1. This variable is called "Priority." The event then sets another variable to one of the participants SPD stat and then compares it to someone else SPD; one by one. If it is higher the event will add 1 to it's characters priority. Once it is done it moves on to the next participant and repeats this process. Eventually (in your situation specifically) you should have up to 9 variables each with a different value between 1-9.
All you would have to do now is check who has the 9 variable/priority first and let them do their turn. Then 8, Then 7, then 6, and so on all in one event.
Unfortunately there is a problem. What if 2 participants have the same speed? Won't they also end up with the same priority, thus doing their turns at the same time? Well, yes and no. It all determines on what the event checks first. If monster #1 and 3 had the same speed/priority, and you let the event check monster #3 first before monster #1, monster #3 will ALWAYS go first. If you want to create an additional priority system for situations like these then by all means go right ahead. I generally just let the event always check my heroes first before the monsters and be done with it.
Erh.. yeah. For a visual representation of what I mean you can open my game with your 2k3 program, open up the map called Kastelahn Desert(OLD CBS), and search for an event called "Priority" and study it.
If you still don't understand, I'll create a detailed tut for you.
I call this a priority system. Within this system (event) each battle participant that is active (as in not dead or etc..) is assigned a variable that is set to 1. This variable is called "Priority." The event then sets another variable to one of the participants SPD stat and then compares it to someone else SPD; one by one. If it is higher the event will add 1 to it's characters priority. Once it is done it moves on to the next participant and repeats this process. Eventually (in your situation specifically) you should have up to 9 variables each with a different value between 1-9.
All you would have to do now is check who has the 9 variable/priority first and let them do their turn. Then 8, Then 7, then 6, and so on all in one event.
Unfortunately there is a problem. What if 2 participants have the same speed? Won't they also end up with the same priority, thus doing their turns at the same time? Well, yes and no. It all determines on what the event checks first. If monster #1 and 3 had the same speed/priority, and you let the event check monster #3 first before monster #1, monster #3 will ALWAYS go first. If you want to create an additional priority system for situations like these then by all means go right ahead. I generally just let the event always check my heroes first before the monsters and be done with it.
Erh.. yeah. For a visual representation of what I mean you can open my game with your 2k3 program, open up the map called Kastelahn Desert(OLD CBS), and search for an event called "Priority" and study it.
If you still don't understand, I'll create a detailed tut for you.
Thank you so much Rowan. I understand completely what you're saying. I would have it check the hero's first and just settle for who ever got checked first to go before the person who had the same speed. I like the "priority" system you've come up with :D
I will defiantly check your game out too.
Once again thanks so much man.
I'd also like to share the fact that my hard drive broke this morning and i lost all of my game :;(
I have another copy of it on my other pc but its like 10 hours of coding behind. So i guess its gonna take me a while to get back up to this stage of coding. But at least now I know what I'm doing it should just be straight forward. Just thought you'd all like to have a little LOL here :D
I will defiantly check your game out too.
Once again thanks so much man.
I'd also like to share the fact that my hard drive broke this morning and i lost all of my game :;(
I have another copy of it on my other pc but its like 10 hours of coding behind. So i guess its gonna take me a while to get back up to this stage of coding. But at least now I know what I'm doing it should just be straight forward. Just thought you'd all like to have a little LOL here :D
This seems like it would be so much easier than all the other aspects of making a CBS (setting up all of the show picture events and variable gradiant bars and arfgshasbfdfglnf) but maybe that's just me.
post=132016
This seems like it would be so much easier than all the other aspects of making a CBS (setting up all of the show picture events and variable gradiant bars and arfgshasbfdfglnf) but maybe that's just me.
not even, showing pictures is easy stuff, it can just be tedious
also CBS are super easy in comparison to CMS
post=132016
This seems like it would be so much easier than all the other aspects of making a CBS (setting up all of the show picture events and variable gradiant bars and arfgshasbfdfglnf) but maybe that's just me.
This takes no less then 20mins to create if you know what you're doing.
post=132022
also CBS are super easy in comparison to CMS
They're about the same in difficulty imo.
post=132022
also CBS are super easy in comparison to CMS
post=132025
They're about the same in difficulty imo.
Not when you have 8 playable characters and you only want to show 4 in the battle. That's when CBSs are harder.
well shit I totally forgot about this :<
post=132025post=132016This takes no less then 20mins to create if you know what you're doing.
This seems like it would be so much easier than all the other aspects of making a CBS (setting up all of the show picture events and variable gradiant bars and arfgshasbfdfglnf) but maybe that's just me.post=132022
also CBS are super easy in comparison to CMS
They're about the same in difficulty imo.
Nah, CBS is really quite simple once you've got a hang of HEY THIS IS WHAT SWITCHES AND VARIABLES DO, and mostly comes down to tedious repetition of show picture. Essentially making a CBS in RM2k is using algebra! Yaaay middle school math, right. CMS is similarly simple once you figure that stuff out, but there's MORE of the tedious repetition of the show picture variety.
edit: the fun stuff lies in making a platformer and figuring out how to scroll the screen when you have pixel movement...
post=132036post=132022
also CBS are super easy in comparison to CMSpost=132025
They're about the same in difficulty imo.
Not when you have 8 playable characters and you only want to show 4 in the battle. That's when CBSs are harder.
Dude why this concept is much more easier than an atb or some stuff like that. Compared to the amount of time u would spend making an atb for 4 characters and a CMS i think my system is a lot more easier. plus its like turn based like FFX. And if you want to implement 8 characters into a menu i suggest copying FF8 or FFX coz they where the best totable playable character CMS. If you get me?
Oh n i completely agree with Rowan. Both CBS and CMS can both be tedious and boring, but if you know what you're doing, i guess it can be a good time waster.
post=132087CMS is similarly simple once you figure that stuff out, but there's MORE of the tedious repetition of the show picture variety.Unless you make a map-based CMS.
That would be a baaaad idea lol
VX
So is bothering to do this in 2k3.
post=132092post=132087That would be a baaaad idea lolCMS is similarly simple once you figure that stuff out, but there's MORE of the tedious repetition of the show picture variety.Unless you make a map-based CMS.
So is bothering to do this in 2k3.
post=132053
Dude why this concept is much more easier than an atb or some stuff like that. Compared to the amount of time u would spend making an atb for 4 characters and a CMS i think my system is a lot more easier. plus its like turn based like FFX. And if you want to implement 8 characters into a menu i suggest copying FF8 or FFX coz they where the best totable playable character CMS. If you get me?
Just because those battle systems look pretty simple doesn't mean they're easy to make... BTW, I'm not a DUDE.
Just because those battle systems look pretty simple doesn't mean they're easy to make... BTW, I'm not a DUDE.
Lol, sorry. And yea Fallen-Griever i agree. I tried using XP n VX but I just dont like them. They have lots of useful stuff that 2k3 doesn't but i've been using 2k3 since like 2004 so i guess im just pretty used to it. But anyway thanks for all the opinions, its been fun :D





















