Added today.
In your scripts:
Add to messages.h
#define MSG_WORLDMAP_FLAG_SET 31140
In function wdmCreateWorldMap()
worldMap.showFlag.texture = "flagall.tga.tx"; //path to texture if not in root: "WorldMap\Interfaces\texturename.tga.tx"
worldMap.showFlag.count = 8; //Count of icon maps within texture file, only supports a single row texture file, but as many icons across the row, indicated with this value
Anytime after CreateEntity(&worldMap,"worldmap") make it a valid active entity object, you can send a message to change the index number of the flag you want:
SendMessage(&worldMap, "ll", MSG_WORLDMAP_FLAG_SET, integerforIconNumber); //Zero based array