-
Notifications
You must be signed in to change notification settings - Fork 0
/
DCC - Skyrim - Create Temper Patterns.pas
66 lines (51 loc) · 1.59 KB
/
DCC - Skyrim - Create Temper Patterns.pas
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
{
Create Temper Patterns
darkconsole https://darkconsole.tumblr.com
Given a list of COBJ forms create versions for Tempering the item.
}
Unit
UserScript;
Uses
'Dcc\Skyrim';
Var
TemperType: Integer; // 1 = workbench, 2 = grindstone.
Workbench: IInterface;
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
Procedure DccProcessThing(Form: IInterface);
Begin
AddMessage('[>>>] ' + EditorID(Form) + '');
End;
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
Function Initialize: Integer;
Var
InputResult: Boolean;
InputTemperType: Integer;
Begin
InputResult := InputQuery(
'Select Temper Type',
('1 = Workbench' + Skyrim.LineBreak + '2 = Grindstone' + Skyrim.LineBreak),
InputTemperType
);
// stop if no input.
If(InputResult = FALSE)
Then Result := 1;
// mark down what was selected in the global.
InputTemperType := Trim(InputTemperType);
TemperType := StrToIntDef(InputTemperType,1);
End;
Function Process(Form: IInterface): Integer;
Begin
If(CompareText('COBJ',Signature(Form)) <> 0)
Then Begin
AddMessage('[!!!] ' + EditorID(Form) + ' is not an constructable.');
End
Else Begin
DccProcessThing(Form);
End;
Result := 0;
End;
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
End.