-- EMERGENT GAME TECHNOLOGIES PROPRIETARY INFORMATION -- -- This software is supplied under the terms of a license agreement or -- nondisclosure agreement with Emergent Game Technologies and may not -- be copied or disclosed except in accordance with the terms of that -- agreement. -- -- Copyright (c) 1996-2007 Emergent Game Technologies. -- All Rights Reserved. -- -- Emergent Game Technologies, Chapel Hill, North Carolina 27517 -- http://www.emergent.net ----------------------------------------------------------------------------- macroscript GamebryoMultiNifExportToggle category:"Gamebryo Tools" buttonText:"Toggle Multi-Nif Export Attributes" toolTip:"Add/Remove Multi-Nif Export Attributes" Icon:#("Gamebryo", 20) ( for obj in selection do ( include "Gamebryo/MultiNifExportCustAttribs.ms" iCACount = custAttributes.count obj iFoundIndex = -1 for i = 1 to iCACount do ( TempCA = custAttributes.getdef obj i if TempCA != undefined and TempCA.name == MultiNifExportCA.name do ( iFoundIndex = i ) ) if iFoundIndex > 0 do ( strContents = "Do you wish to remove the Multi-Nif Export Custom Attributes from '" strContents = strContents + (obj.name as string) strContents = strContents + "'?" bRemove = queryBox strContents title:"Remove Multi-Nif Export Cust Attribs?" beep:false if bRemove do ( custAttributes.delete obj iFoundIndex ) ) if iFoundIndex <= 0 do ( custAttributes.add obj MultiNifExportCA obj.MultiNifExportFileName = (obj.name as string) + ".NIF" ) ) )