If you register for free, you will be able to post threads, vote on polls and lots more. If you have problems with the registration or logging in, please contact the administrator.
Hello
I would like to make better "compare players" screen. Now it's useless for me because it doesn't clearly show which player is better.
Skin system is made in XML but it doesn't allow to sum attributes or sth similair. Even groups of colored attributes are hard coded and you can't for example have all 20 and only 20 to be red.
The best would be possibility to have XML attributes which can count something. For example you could show "defensive abilities" which is sum of marking/tackling/positioning etc.
Or you could show attribute for strikers counted as "goals+assists/number of matches played"
I agree and the player comparison screen didn't quite turn out the way I had hoped it would.
As for counting attributes and displaying the average or a sum then a function would have to be written and the support added to the xml system to be able to display such information.
As the game engine progresses then more information like this is going to be possible but at the moment it is currently not.
I don't think about hard coded function.
I would rather think about something like Math(attribute1*attribute2+attribute3/10) so you would be able to write your own function and that function would be counted on-the-fly.
It's possible in JSP (similair to XML) language and is very usefull.
Maybe let's get real example, panel "player comparision.xml":