function main() { ; LavisSettings:AddSet[Test Set 1] variable settingsetref Profiles variable settingsetref CurrentProfile variable settingsetref CastStack LavishSettings:Import["EQ2Save_Antonia Bayle_Ihaihu.xml"] Profiles:Set[${LavishSettings[Profiles]}] CurrentProfile:Set[${Profiles.FindSet[${Profiles.FindSetting[DefaultProfiles]}]}] CastStack:Set[${CurrentProfile.FindSet[CastStack]}] variable iterator CastStackIterator CastStack:GetSetIterator[CastStackIterator] if ${CastStackIterator:First(exists)} { do { echo "${CastStackIterator.Value.FindSetting[Type]}: ${CastStackIterator.Value.FindSetting[__SourceName]}" } while ${CastStackIterator:Next(exists)} } }