-
Notifications
You must be signed in to change notification settings - Fork 0
/
initPositions
92 lines (83 loc) · 3.58 KB
/
initPositions
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{{ $sect := sdict
"Anarch" "0" }}
"Camarilla" "0"
"Sabbat" "0" }}
{{ $threePos := cslice
( sdict "Place" "firstSeat" "Who" "" )
( sdict "Place" "secondSeat" "Who" "" )
( sdict "Place" "thirdSeat" "Who" "" ) }}
{{ $clans := cslice
( sdict "Clan" "Banu Haqim" "Who" "" )
( sdict "Clan" "Brujah" "Who" "" )
( sdict "Clan" "Gangrel" "Who" "" )
( sdict "Clan" "Lasombra" "Who" "" )
( sdict "Clan" "Malkavian" "Who" "" )
( sdict "Clan" "Nosferatu" "Who" "" )
( sdict "Clan" "Toreador" "Who" "" )
( sdict "Clan" "Tremere" "Who" "" )
( sdict "Clan" "Ventrue" "Who" "" ) }}
{{ $camPos := cslice
( sdict "Position" "Prince" "Status" "5" "Who" "" )
( sdict "Position" "Seneschal" "Status" "4" "Who" "" )
( sdict "Position" "Primogen" "Status" "4" "What" $clans )
( sdict "Position" "Clan Whip" "Status" "3" "What" $clans )
( sdict "Position" "Sherrif" "Status" "3" "Who" "" )
( sdict "Position" "Hound" "Status" "3" "What" $threePos )
( sdict "Position" "Herald" "Status" "3" "Who" "" )
( sdict "Position" "Principal of Faith" "Status" "3" "Who" "" )
( sdict "Position" "Keeper of Elysium" "Status" "3" "Who" "" )
( sdict "Position" "Scourge" "Status" "3" "What" $threePos )
( sdict "Position" "Harpies" "Status" "3" "What" $threePos )
( sdict "Position" "The Shadow" "Status" "2" "Who" "" )
( sdict "Position" "Tremere Regent" "Status" "4" "Who" "" ) }}
{{ $aPos := cslice
( sdict "Position" "Baron" "Status" "5" "Who" "" )
( sdict "Position" "Emissary to the Camarilla" "Status" "4" "Who" "" )
( sdict "Position" "Sweeper" "Status" "3" "Who" "" )
( sdict "Position" "Cameleon" "Status" "2" "What" $threePos ) }}
{{ $sPos := cslice
( sdict "Position" "Archbishop" "Status" "5" "Who" "" )
( sdict "Position" "Bishop" "Status" "4" "Who" "" )
( sdict "Position" "Templar" "Status" "3" "Who" "" )
( sdict "Position" "Ductus" "Status" "2" "Who" "" )
( sdict "Position" "Packpriest" "Status" "2" "Who" "" )
( sdict "Position" "True Sabbat" "Status" "1" "Who" "" )
( sdict "Position" "False Sabbat" "Status" "0" "Who" "" ) }}
{{ $positions := sdict
"Camarilla" $camPos
"Sabbat" $sPos
"Anarch" $aPos }}
{{- range $k,$v := $positions }}
{{- $msg := print "__**" $k "**__\n\n" }}
{{- range $index,$element := $v }}
{{- range $key,$val := $element }}
{{- if ( eq $key "Position" ) }}
{{- $msg = print $msg "**" $val " " }}
{{- else if ( eq $key "Status" ) }}
{{- $msg = print $msg "( " $key " " $val ")** - " }}
{{- else }}
{{- if ( eq $key "Who" ) }}
{{- $msg = print $msg " \n"}}
{{- else }}
{{- $msg = print $msg "\n"}}
{{- range $ix,$el := $val }}
{{- range $ky,$vl := $el }}
{{- if ( eq $ky "Clan" ) }}
{{- $msg = print $msg "> " $vl " - " }}
{{- else if ( eq $ky "Place" ) }}
{{- $msg = print $msg "> -" }}
{{- else }}
{{- $msg = print $msg " \n" }}
{{- end -}}
{{- end -}}
{{- end }}
{{- end }}
{{- end -}}
{{- end -}}
{{- end }}
{{- $x := sendMessageRetID nil $msg }}
{{- $sect.Set $k $x -}}
{{- end }}
{{ deleteTrigger 1 }}
{{ dbSet 0 "sect" $sect }}
{{ dbSet 0 "positions" $positions }}