Hi to everybody 
I was scripting this morning, and (after a forum search) I was wondering why GetProperty/GetPropertyText functions have to be called according to the type of location related.
I mean: every type of object-game share the same property schema, so... since we have GetLocationName and GetLocationType, why can't we have GetLocationProperty instead of:
Code: ags
And (curiosity) why properties are read-only at runtime?

I was scripting this morning, and (after a forum search) I was wondering why GetProperty/GetPropertyText functions have to be called according to the type of location related.
I mean: every type of object-game share the same property schema, so... since we have GetLocationName and GetLocationType, why can't we have GetLocationProperty instead of:
type = GetLocationType(mouse.x, mouse.y)
if (type == eLocationHotspot) {
Hotspot* h Hotspot.GetAtScreenXY(x, y);
h.GetPropertyText("Desc", buf);
} else if (type == eLocationObject) {
Object* o = ...
And (curiosity) why properties are read-only at runtime?