-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFO76_-_ExportVoiceType.pas
More file actions
76 lines (70 loc) · 2.12 KB
/
FO76_-_ExportVoiceType.pas
File metadata and controls
76 lines (70 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
Apply custom scripted filter for FO76 dialogue lines; generates Wiki Table
}
unit ApplyCustomScriptedFilter;
var
sl: TStringList;
function Filter(d: IInterface): Boolean;
var entlString, lineEnd, etdiString: String;
begin
Result := False;
lineEnd := #13#10;
entlString :='}}{{VTYP table FO76|row'+lineEnd;
etdiString := GetEditValue(ElementBySignature(d,'VTYP'));
entlString := entlString + '|name ='+GetEditValue(ElementBySignature(d,'FULL'))+lineEnd;
entlString := entlString + '|edid ='+GetEditValue(ElementBySignature(d,'EDID'))+lineEnd;
entlString := entlString + '|formid ={{ID|'+IntToHex(FormID(d),8)+'}}';
AddMessage(entlString);
sl.Add(entlString);
Result := True;
end;
function Initialize: Integer;
var
fname, version: string;
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 := 'VTYP';
FilterByBaseSignature := False;
FilterBaseSignatures := '';
FlattenBlocks := True;
FlattenCellChilds := False;
AssignPersWrldChild := False;
InheritConflictByParent := True; // color conflicts
FilterScripted := True; // use custom Filter() function
sl := TStringList.Create;
version := '1.5.0.19';
ApplyFilter;
fname := ProgramPath +'_'+version+'_DialogueTables.wikitext';
sl.SaveToFile(fname);
sl.Free;
Result := 1;
end;
end.