

I've checked it in the editor: "There are no problems with the map.". H3m_terrain_fill(h3m, H3M_TERRAIN_GRASS) H3m_init_min(&h3m, H3M_FORMAT_ROE, H3M_SIZE_SMALL)

The expected result if I do for example h3m_object_add(h3m, "Orrin", 5, 5, 0, &od_index) is that I get a hero with the correct sprite in map editor and in-game with the correct hero type & portrait (portrait can be left to default) set to Orrin which is how it should work respectively for all heroes.Īs for a minimal map example that currently works, here is one that should (empty dirt map with one town for Red and one for Blue):Ĭould you post the code you are having issues with? Not impossible that there's another issue than the hero stuff I mention above. H3m_add_object() can be improved on the inside to not just set the default object details for the hero object. Perhaps it simply becomes really buggy when you place more than one hero since I guess they will get the same hero type. Rpg character maker.Which objects are you adding to the map? I played around a little bit, expecting that adding heroes by name with h3m_add_object() would be a bit buggy because h3m_add_object() right now simply always adds the uncustomized version of objects (which is usually mostly fine, but for Heroes specifically it does not make much sense as it's not enough to actually place the correct hero) and it seems even buggier than I expected producing a bunch of strange results with the heroes sometimes not appearing on the map, wrong hero sprite (I expected hero type to be wrong since it's not being set but sprite I was expecting to be correct).
