I can confirm that GetResRef works for areas.
I use it for cataloging all my areas in the module.
eg- Loop through areas, and Get the resref (resrefs are unique at mod Load for areas)
Then I store a Local Object on the module, called "AREA_"+resref
The object being each area.
This allows me to use a function called
object GetAreaByResref(string sResref)
{
object oMod = GetModule();
return GetLocalObject(oMod,"AREA_"+sResref);
}
GetObjectByTag is not always useful for areas, because they can have duplicate tags.
However, ResRefs are 'required' by toolset to be unique.
Getting an area by resref, can be useful.
It should be noted, this only works for vanilla areas, that were added in toolset.
Areas made via nwnx_Areas will have duplicate resrefs, so they should not be added to the system via the SetLocalObject, as GetByResRef will simply mean that it returns the last duplicate area.