Just found a new macro in the text.rsc lines for holidays... this is what I think it is from the context it's used i.
{ "%ct", null }, // City type? e.g city, town, village?
Maybe someone can check in classic see what it says? Anyway,I got the following holiday text: The 15th of Morning Star is a holiday taken very seriously in Daggerfall, where they call it South Wind's Prayer, a plea by all the religions of Tamriel for a good planting season. Citizens with every affliction known in Tamriel flock to services in the %ct's temples, as the clergy is known to perform free healings on this day. Only a few will be judged worthy of this service, but few can afford the temples usual price...
cn = Daggerfall
ct = city?
If I am right, where can I get this info from?
Re: Unknown macro %ct
Posted: Sat Sep 23, 2017 11:43 pm
by Jay_H
I tried bringing out a few holidays on my Daggerfall but for some reason they're not displaying in my game.
All I can offer is that it is the city type. Daggerfall's civilized locations are divided into various types:
city
hamlet
village
For the largest towns, they'll be cities. That's the extent of what I can give.
Re: Unknown macro %ct
Posted: Sun Sep 24, 2017 12:27 am
by Interkarma
I think you're right. Looking at this in context, "city type" is the best answer I can come up with for that context macro as well.
Here's a fast way to grab the location type (it's just a dictionary lookup).
// Get the player's current map pixel
DFPosition mapPixelPos = DaggerfallUnity.Instance.PlayerGPS.CurrentMapPixel;
// Test for a location at this map pixel
ContentReader.MapSummary summary;
if (DaggerfallUnity.ContentReader.HasLocation(mapPixelPos.X, mapPixelPos.Y, out summary))
{
DFRegion.LocationTypes type = summary.LocationType;
}
Here's the DFRegion.LocationTypes enum. There are multiple subtypes, but they basically collapse into a few broad groups.
And looking at the hard strings I've extracted from fall.exe, these could be the results mapped by %ct against location type. This is just a guess however (and probably wrong). The casing is obviously a problem.
he 15th of Morning Star is a holiday taken very seriously in (city name), where they call it South Wind's Prayer, a plea by all the religions of Tamriel for a good planting season. Citizens with every affliction known in Tamriel flock to services in the (city type)'s temples, as the clergy is known to perform free healings [sic] on this day. Only a few will be judged worthy of this service, but few can afford the temples usual price...
Re: Unknown macro %ct
Posted: Sun Sep 24, 2017 9:11 am
by Deepfighter
I add an ingame-Screenshot of this holiday for confirmation (with the German translation, but no macros are altered!) in front of the doors of Daggerfall (in DF Vanilla):