RE: [Algorithms] Linear level up - Turn based strategy games.
Brought to you by:
vexxed72
From: neo b. <ne...@mw...> - 2005-04-20 21:07:36
|
Hehe, your knight can never be too strong ;p =20 Just exagerated examples to show the difference between levels. =20 Perhaps what you are looking for is a weighted normalization function? =20 E.g. say that a class level/stat group should always sum to 1 but with different weights for different classes? =20 ~neo _____ =20 From: gda...@li... [mailto:gda...@li...] On Behalf Of = Rodrigo Greselle Hartmann Sent: 20 April 2005 08:05 PM To: gda...@li... Subject: RE: [Algorithms] Linear level up - Turn based strategy games. Hi! =20 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" =3DD In other words, the 1.8 modifier applied on knight's strenght makes them = TOO strong with just some levels =3DD =20 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 =3DD =20 Rodrigo. =20 neo binedell <ne...@mw...> wrote: What about assigning modifiers per stat for each class? Simple example: ClassStatModifier { float strength; float magic; ... }; ClassStatModifier KnightClassLevel1 =3D { strength =3D 1.8; magic =3D 0.0; ...=20 }; ClassStatModifier WizardClassLevel1 =3D { strength =3D 1.1; magic =3D 1.8; ... } ClassLevelUps[ CLASS_COUNT ][ LEVEL_COUNT ]; // populate with all level entries for each class ...=20 void levelUp( Unit unit, int preyLevel ) {=20 ... ClassStatModifier *m =3D &ClassLevelUps[ unit.getClassID() ][ preyLevel ]; unit.strength *=3D m->strength; unit.magic *=3D 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=3D6595&alloc_id=3D14396&op=3Dclick _______________________________________________ GDAlgorithms-list mailing list GDA...@li... https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3D6188 ------------------------------------------------------- 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=3D6188 _____ =20 Yahoo! <http://us.rd.yahoo.com/mail/br/taglines/*http://br.acesso.yahoo.com//> Acesso Gr=E1tis: Internet r=E1pida e gr=E1tis. Instale o discador agora! |