[RM2K3] HEROES IN A CBS

Posts

Pages: 1
I want to create a CBS, and I want each character to have many different stats, and I want to have many different characters... my original idea was using variables, one for each stat for each character. But if I have something like... STR, INT, DEF, RES, AGI, MOV, HP, MP, EquippedItem1, EI2, SKill1, SKill2, CUrrentXP, XPtoNextLevel, Level, image, face... I would have 20-30 variables/character... In a group of... say... 30 possible characters, that makes like 600-900 variables. I'm not sure if it's viable.

My second option would be using heroes in the database. But since it's a CBS, I would have to find a way to turn their stats into variable values. I would use way less variables anyway because not all of the 30 characters would be active at once. But I would have to convert, for instance, his HP into a variable. How do I do that exactly? My problem is:

-Converting Hero stat into a variable
-Changing that variable.
-Setting the hero stat back to the updated value of variable.

Obvious methods don't seem to work.

Or maybe I should worry as much about using such a large number of variables.
Yellow Magic
Could I BE any more Chandler Bing from Friends (TM)?
3229
-Converting Hero stat into a variable
Use Variable Operations. In the Operand section, there's an option for 'Hero' and next to it a drop-down box for stats pertaining to your selected hero.

-Setting the hero stat back to the updated value of variable.
How about:

Step 1: Change Character Base Statistics - Decrease stat by 9999 (or however high it can go). This should get the stat down to 1.
Step 2: Change Character Base Statstics - Increase stat by Variable with updated value
Step 3: Change Character Base Statistics - Decrease stat by 1
Splitting variables sounds like something you might want to look into.
EDIT: What Yellow Magic said, just pull the real values of stats and use them for the CBS.

A change of real equipment could also take the place those other variables you mentioned, like EquippedItem1, EI2, SKill1, SKill2, etc.
post=149212
Step 1: Change Character Base Statistics - Decrease stat by 9999 (or however high it can go). This should get the stat down to 1.
Step 2: Change Character Base Statstics - Increase stat by Variable with updated value
Step 3: Change Character Base Statistics - Decrease stat by 1


That's what I referred to when I said "Obvious methods don't seem to work.". It just doesn't work, I don't understand.

Would you (or anyone) mind testing it, and if it works, show the the exact code?

What does splitting variables mean?
I don't know why that doesnt work, I'm fairly sure I used something similar to that in my CBS, I'll check when I get home.

30 characters is a lot though, I don't know the specefics of your game but I can't imagine a scenario where 15 different playable characters wouldn't do the trick. that would cut the variables by half right there. haha, I'm sure if you were willing to trim the hero size then you already would have, but character development and building any type of situation where the players give a shit about 30 characters seems really tough
I think Calunio is making some sports game, hence the 30 characters...
Yellow Magic
Could I BE any more Chandler Bing from Friends (TM)?
3229
post=149294
That's what I referred to when I said "Obvious methods don't seem to work.". It just doesn't work, I don't understand.
I gave it a go and it didn't work for me either. From what I can tell 2k3 doesn't allow you to increase a base stat to a value beyond the predetermined value (in the database, for the corresponding level). No idea why.

EDIT: Out of curiosity I tried reducing a character's attack stat to 1, then levelled the character up. The attack stat stayed at 1. Never realised the program was THIS buggy.

EDIT EDIT: If you want to keep stat changes, you might want to keep every hero's level at 99, and max out all their stats at that level. Then use your own variables as each character's level, along with your own method of stat increase, i.e. not the one that the database uses. Sorry if none of this makes sense, I'm not the best at explaining things.
Pages: 1