Winterbay
Active member
I am poking a bit at batbrain related things and gettign incombat restoration to an acceptable level (to me). I am testing a few things and have exported the opts-map that batbrain generates into a textfile that I load, sort and then tried to export again but I got a debug log.
The script snippet I used is:
Debuglog and textfile (for replication) attached.
Anyone got an idea what I just did?
The script snippet I used is:
Code:
typedef int[stat] substats;
typedef float[element] spread;
record advevent
{
string id;
spread dmg;
float att;
float def;
float stun;
float hp;
float mp;
float meat;
substats stats;
};
advevent[int] opts;
string[int] split;
file_to_map("SAwholemap.txt", opts);
sort opts by -value.mp;
map_to_file(opts, "SAwholemapS.txt");
foreach i in opts
{
print(i + ": " + opts[i].id);
}
Debuglog and textfile (for replication) attached.
Anyone got an idea what I just did?