Advertisement
Guest User

Untitled

a guest
Aug 10th, 2022
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. {
  2. Apply custom scripted filter for Quests with Objectives
  3. }
  4. unit ApplyCustomScriptedFilter;
  5.  
  6. function Filter(e: IInterface): Boolean;
  7. var
  8. kwda, k: IInterface;
  9. begin
  10. // Is the entry a quest?
  11. if Signature(e) <> 'QUST' then
  12. Exit;
  13.  
  14. // Has the entry Objectives?
  15. if not ElementExists(e, 'Objectives') then
  16. Exit;
  17.  
  18. Result := True;
  19. end;
  20.  
  21. function Initialize: Integer;
  22. begin
  23. FilterConflictAll := False;
  24. FilterConflictThis := False;
  25. FilterByInjectStatus := False;
  26. FilterInjectStatus := False;
  27. FilterByNotReachableStatus := False;
  28. FilterNotReachableStatus := False;
  29. FilterByReferencesInjectedStatus := False;
  30. FilterReferencesInjectedStatus := False;
  31. FilterByEditorID := False;
  32. FilterEditorID := '';
  33. FilterByName := False;
  34. FilterName := '';
  35. FilterByBaseEditorID := False;
  36. FilterBaseEditorID := '';
  37. FilterByBaseName := False;
  38. FilterBaseName := '';
  39. FilterScaledActors := False;
  40. FilterByPersistent := False;
  41. FilterPersistent := False;
  42. FilterUnnecessaryPersistent := False;
  43. FilterMasterIsTemporary := False;
  44. FilterIsMaster := False;
  45. FilterPersistentPosChanged := False;
  46. FilterDeleted := False;
  47. FilterByVWD := False;
  48. FilterVWD := False;
  49. FilterByHasVWDMesh := False;
  50. FilterHasVWDMesh := False;
  51. FilterBySignature := True;
  52. FilterSignatures := 'Qust';
  53. FilterByBaseSignature := False;
  54. FilterBaseSignatures := '';
  55. FlattenBlocks := False;
  56. FlattenCellChilds := False;
  57. AssignPersWrldChild := False;
  58. InheritConflictByParent := True; // color conflicts
  59. FilterScripted := True; // use custom Filter() function
  60.  
  61. ApplyFilter;
  62.  
  63. Result := 1;
  64. end;
  65.  
  66. end.
  67.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement