RE: [Algorithms] Linear level up - Turn based strategy games.
Brought to you by:
vexxed72
|
From: Rodrigo G. H. <pha...@ya...> - 2005-04-20 18:04:55
|
Hi!
Yes, I already had modifiers set up for each class. So, I already have different growth for each Unit stats, but the results are a bit "bizarre" =D In other words, the 1.8 modifier applied on knight's strenght makes them TOO strong with just some levels =D
I thought there was some kind of standard to deal with this... a mathematical parameter for modifiers, where they could be applied only to ensure priority for one stat, instead of solely boosting it up... For the given example, Strenght, you are raising it by at least 80% at each level up. Too much!
Even so, thanks for helping out =D
Rodrigo.
neo binedell <ne...@mw...> wrote:
What about assigning modifiers per stat for each class?
Simple example:
ClassStatModifier
{
float strength;
float magic;
...
};
ClassStatModifier KnightClassLevel1 =
{
strength = 1.8;
magic = 0.0;
...
};
ClassStatModifier WizardClassLevel1 =
{
strength = 1.1;
magic = 1.8;
...
}
ClassLevelUps[ CLASS_COUNT ][ LEVEL_COUNT ];
// populate with all level entries for each class
...
void levelUp( Unit unit, int preyLevel )
{
...
ClassStatModifier *m = &ClassLevelUps[ unit.getClassID() ][
preyLevel ];
unit.strength *= m->strength;
unit.magic *= m->magic;
...
}
regards
neo
-----Original Message-----
From: gda...@li...
[mailto:gda...@li...] On Behalf Of Rodrigo
H.
Sent: 13 April 2005 05:36 PM
To: gda...@li...
Subject: [Algorithms] Linear level up - Turn based strategy games.
Hi,
I'm developing a turn-based strategy game, in which Units have classes
(Wizard, Knight) that affect their basic stats on level up.
After a quick search for techniques, I've found a bit of information on
linear level up - a technique where you give bonus to stats based on the
delta level between the Unit leveling up, and the Unit being killed.
But there are a set of modifiers to be applied in this calculation. A
Knight, when he levels up, will gain a much better bonus on his Strength
stat than a Wizard. Pretty simple concept, but I'm stuck on the
implementation.
Can someone give me a hint on a good solution? Currently, my UnitClass class
stores the modifiers, and it has the following method:
levelUp(Unit unit, int preyLevel)
where the Unit's stats are updated.
I'm using Java, but all I want is pseudo-code. ;)
Thanks in advance,
Rodrigo.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide Read honest & candid reviews
on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
GDAlgorithms-list mailing list
GDA...@li...
https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=6188
-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
GDAlgorithms-list mailing list
GDA...@li...
https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=6188
---------------------------------
Yahoo! Acesso Grátis: Internet rápida e grátis. Instale o discador agora! |