Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- Apply custom scripted filter for Quests with Objectives
- }
- unit ApplyCustomScriptedFilter;
- function Filter(e: IInterface): Boolean;
- var
- kwda, k: IInterface;
- begin
- // Is the entry a quest?
- if Signature(e) <> 'QUST' then
- Exit;
- // Has the entry Objectives?
- if not ElementExists(e, 'Objectives') then
- Exit;
- Result := True;
- end;
- function Initialize: Integer;
- begin
- FilterConflictAll := False;
- FilterConflictThis := False;
- FilterByInjectStatus := False;
- FilterInjectStatus := False;
- FilterByNotReachableStatus := False;
- FilterNotReachableStatus := False;
- FilterByReferencesInjectedStatus := False;
- FilterReferencesInjectedStatus := False;
- FilterByEditorID := False;
- FilterEditorID := '';
- FilterByName := False;
- FilterName := '';
- FilterByBaseEditorID := False;
- FilterBaseEditorID := '';
- FilterByBaseName := False;
- FilterBaseName := '';
- FilterScaledActors := False;
- FilterByPersistent := False;
- FilterPersistent := False;
- FilterUnnecessaryPersistent := False;
- FilterMasterIsTemporary := False;
- FilterIsMaster := False;
- FilterPersistentPosChanged := False;
- FilterDeleted := False;
- FilterByVWD := False;
- FilterVWD := False;
- FilterByHasVWDMesh := False;
- FilterHasVWDMesh := False;
- FilterBySignature := True;
- FilterSignatures := 'Qust';
- FilterByBaseSignature := False;
- FilterBaseSignatures := '';
- FlattenBlocks := False;
- FlattenCellChilds := False;
- AssignPersWrldChild := False;
- InheritConflictByParent := True; // color conflicts
- FilterScripted := True; // use custom Filter() function
- ApplyFilter;
- Result := 1;
- end;
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement