본문으로 건너뛰기
사용자

o00o/연습장3(r82판 Blame)

r82
r81
1[[분류:Slay the Spire 2]][[분류:양식상자 틀/게임]]
r78
2## a_i{?} = 효과의 {?}번째 & or *의 위치
r82
3{{{#!if (a_c1=효과.indexOf("&",0)), (a_s1=효과.indexOf("*",0)), (a_c1 = (a_c1 == -1 ? 999 : a_c1)), (a_s1 = (a_s1 == -1 ? 999 : a_s1)), (a_i1 = (a_s1 < a_c1 ? a_s1 : a_c1)), (a_c2=효과.indexOf("&",a_i1+1)), (a_s2=효과.indexOf("*",a_i1+1)), (a_c2 = (a_c2 == -1 ? 999 : a_c2)), (a_s2 = (a_s2 == -1 ? 999 : a_s2)), (a_i2 = (a_s2 < a_c2 ? a_s2 : a_c2)), (a_c3=효과.indexOf("&",a_i2+1)), (a_s3=효과.indexOf("*",a_i2+1)), (a_c3 = (a_c3 == -1 ? 999 : a_c3)), (a_s3 = (a_s3 == -1 ? 999 : a_s3)), (a_i3 = (a_s3 < a_c3 ? a_s3 : a_c3)), (a_c4=효과.indexOf("&",a_i3+1)), (a_s4=효과.indexOf("*",a_i3+1)), (a_c4 = (a_c4 == -1 ? 999 : a_c4)), (a_s4 = (a_s4 == -1 ? 999 : a_s4)), (a_i4 = (a_s4 < a_c4 ? a_s4 : a_c4)), (a_c5=효과.indexOf("&",a_i4+1)), (a_s5=효과.indexOf("*",a_i4+1)), (a_c5 = (a_c5 == -1 ? 999 : a_c5)), (a_s5 = (a_s5 == -1 ? 999 : a_s5)), (a_i5 = (a_s5 < a_c5 ? a_s5 : a_c5)), (a_c6=효과.indexOf("&",a_i5+1)), (a_s6=효과.indexOf("*",a_i5+1)), (a_c6 = (a_c6 == -1 ? 999 : a_c6)), (a_s6 = (a_s6 == -1 ? 999 : a_s6)), (a_i6 = (a_s6 < a_c6 ? a_s6 : a_c6)), (a_c7=효과.indexOf("&",a_i6+1)), (a_s7=효과.indexOf("*",a_i6+1)), (a_c7 = (a_c7 == -1 ? 999 : a_c7)), (a_s7 = (a_s7 == -1 ? 999 : a_s7)), (a_i7 = (a_s7 < a_c7 ? a_s7 : a_c7)), (a_c8=효과.indexOf("&",a_i7+1)), (a_s8=효과.indexOf("*",a_i7+1)), (a_c8 = (a_c8 == -1 ? 999 : a_c8)), (a_s8 = (a_s8 == -1 ? 999 : a_s8)), (a_i8 = (a_s8 < a_c8 ? a_s8 : a_c8)), (a_c9=효과.indexOf("&",a_i8+1)), (a_s9=효과.indexOf("*",a_i8+1)), (a_c9 = (a_c9 == -1 ? 999 : a_c9)), (a_s9 = (a_s9 == -1 ? 999 : a_s9)), (a_i9 = (a_s9 < a_c9 ? a_s9 : a_c9))
r78
4## a_r{?} = 효과의 {?}번째 & or * 사이에 있는 문자열
r67
5}}}{{{#!if (a_r0=효과.substring(0, a_i1))
6}}}{{{#!if (a_r1=효과.substring(a_i1+1, a_i2))
7}}}{{{#!if (a_r2=효과.substring(a_i2+1, a_i3))
8}}}{{{#!if (a_r3=효과.substring(a_i3+1, a_i4))
9}}}{{{#!if (a_r4=효과.substring(a_i4+1, a_i5))
10}}}{{{#!if (a_r5=효과.substring(a_i5+1, a_i6))
11}}}{{{#!if (a_r6=효과.substring(a_i6+1, a_i7))
12}}}{{{#!if (a_r7=효과.substring(a_i7+1, a_i8))
13}}}{{{#!if (a_r8=효과.substring(a_i8+1, a_i9))
r80
14}}}{{{#!if (a_r9=효과.substring(a_i9+1))
r78
15## b_i{?} = 강화의 {?}번째 & or *의 위치
16}}}{{{#!if (b_c1=강화.indexOf("&",0)), (b_s1=강화.indexOf("*",0)), (b_c1 = (b_c1 == -1 ? 999 : b_c1)), (b_s1 = (b_s1 == -1 ? 999 : b_s1)), (b_i1 = (b_s1 < b_c1 ? b_s1 : b_c1))
17}}}{{{#!if (b_c2=강화.indexOf("&",b_i1+1)), (b_s2=강화.indexOf("*",b_i1+1)), (b_c2 = (b_c2 == -1 ? 999 : b_c2)), (b_s2 = (b_s2 == -1 ? 999 : b_s2)), (b_i2 = (b_s2 < b_c2 ? b_s2 : b_c2))
18}}}{{{#!if (b_c3=강화.indexOf("&",b_i2+1)), (b_s3=강화.indexOf("*",b_i2+1)), (b_c3 = (b_c3 == -1 ? 999 : b_c3)), (b_s3 = (b_s3 == -1 ? 999 : b_s3)), (b_i3 = (b_s3 < b_c3 ? b_s3 : b_c3))
19}}}{{{#!if (b_c4=강화.indexOf("&",b_i3+1)), (b_s4=강화.indexOf("*",b_i3+1)), (b_c4 = (b_c4 == -1 ? 999 : b_c4)), (b_s4 = (b_s4 == -1 ? 999 : b_s4)), (b_i4 = (b_s4 < b_c4 ? b_s4 : b_c4))
20}}}{{{#!if (b_c5=강화.indexOf("&",b_i4+1)), (b_s5=강화.indexOf("*",b_i4+1)), (b_c5 = (b_c5 == -1 ? 999 : b_c5)), (b_s5 = (b_s5 == -1 ? 999 : b_s5)), (b_i5 = (b_s5 < b_c5 ? b_s5 : b_c5))
21}}}{{{#!if (b_c6=강화.indexOf("&",b_i5+1)), (b_s6=강화.indexOf("*",b_i5+1)), (b_c6 = (b_c6 == -1 ? 999 : b_c6)), (b_s6 = (b_s6 == -1 ? 999 : b_s6)), (b_i6 = (b_s6 < b_c6 ? b_s6 : b_c6))
22}}}{{{#!if (b_c7=강화.indexOf("&",b_i6+1)), (b_s7=강화.indexOf("*",b_i6+1)), (b_c7 = (b_c7 == -1 ? 999 : b_c7)), (b_s7 = (b_s7 == -1 ? 999 : b_s7)), (b_i7 = (b_s7 < b_c7 ? b_s7 : b_c7))
23}}}{{{#!if (b_c8=강화.indexOf("&",b_i7+1)), (b_s8=강화.indexOf("*",b_i7+1)), (b_c8 = (b_c8 == -1 ? 999 : b_c8)), (b_s8 = (b_s8 == -1 ? 999 : b_s8)), (b_i8 = (b_s8 < b_c8 ? b_s8 : b_c8))
24}}}{{{#!if (b_c9=강화.indexOf("&",b_i8+1)), (b_s9=강화.indexOf("*",b_i8+1)), (b_c9 = (b_c9 == -1 ? 999 : b_c9)), (b_s9 = (b_s9 == -1 ? 999 : b_s9)), (b_i9 = (b_s9 < b_c9 ? b_s9 : b_c9))
25## b_r{?} = 강화의 {?}번째 & or * 사이에 있는 문자열
26}}}{{{#!if (b_r0=강화.substring(0, b_i1))
27}}}{{{#!if (b_r1=강화.substring(b_i1+1, b_i2))
28}}}{{{#!if (b_r2=강화.substring(b_i2+1, b_i3))
29}}}{{{#!if (b_r3=강화.substring(b_i3+1, b_i4))
30}}}{{{#!if (b_r4=강화.substring(b_i4+1, b_i5))
31}}}{{{#!if (b_r5=강화.substring(b_i5+1, b_i6))
32}}}{{{#!if (b_r6=강화.substring(b_i6+1, b_i7))
33}}}{{{#!if (b_r7=강화.substring(b_i7+1, b_i8))
34}}}{{{#!if (b_r8=강화.substring(b_i8+1, b_i9))
r80
35}}}{{{#!if (b_r9=강화.substring(b_i9+1))
r65
36## type_clr = 카드 종류 별 상징 색상
37## star_display = 표에서 "별" 칸의 표시 여부
38## img_display = 표에서 이미지 표시 여부
39}}}{{{#!if (종류=="아이언클래드" && (type_clr="#831001", cost_file="sts2_ironclad_cost"))||(종류=="사일런트" && (type_clr="#179b05"))||(종류=="디펙트" && (type_clr="#0398e2"))||(종류=="네크로바인더" && (type_clr="#8f425e", cost_file="sts2_necrobinder_cost"))||(종류=="리젠트" && (type_clr="#ac5b00"))||(종류=="무색" && (type_clr="#808080"))||(!type_clr && (type_clr="#000000"), !cost_file && (cost_file="sts2_ironclad_cost"))
r45
40}}}{{{#!if (star_display = (!별 ? "none" : "display")), (img_display = (!사진 ? "none" : "display"))
r81
41## 테이블 내의 클래스 스타일
r2
42}}}{{{#!style
r38
43table.sts-table { background: transparent; border: 2px solid @type_clr@;}
r65
44.sts-title, .sts-index, .sts-star-index { background: @type_clr@4D; }
45.sts-index, .sts-star-index { padding: 0 2px !important; }
r77
46.sts-full-content { min-width: 140px; width: 170px; word-break: keep-all; }
r38
47.sts-star-index, .sts-star-value { display: @star_display@; }
r45
48.sts-img { display: @img_display@;}
r65
49.sts-cost-container { display:inline-flex; height: 1.2em; vertical-align: sub;}
r2
50}}}
r81
51## 표 시작
52## 행: 사진 / 이름
r45
53||<|4><tableclass=sts-table><class=sts-img><nopad><width=250> [[파일:@사진@|width=100%]] ||<-5><class=sts-title><height=50> '''{{{+1 @이름=?@}}}'''[br]{{{#!if 영어이름
r40
54{{{#!wiki style="font-size: 0.8em;"
r38
55(@영어이름@)
r40
56}}}}}} ||
r81
57## 행: 비용 / 별
r65
58||<width=70><class=sts-index><height=40> '''비용'''{{{#!wiki class="sts-cost-container"
r81
59[[파일:@[email protected]|height=100%]]}}} || @비용=?@ ||<width=50><class=sts-star-index> '''별'''{{{#!wiki class="sts-cost-container"
60[[파일:sts2_regent_star.webp|height=100%]]}}} ||<class=sts-star-value> @별@ ||
61## 행: 효과
62## a_r0 + (a_i1에 따라 비용 or 별) + a_r1 + (a_i2에 따라 비용 or 별) + ... + a_r9
r76
63||<class=sts-index> '''효과''' ||<-3><class=sts-full-content> {{{#!html <span>@a_r0@</span>
r67
64}}}{{{#!if 효과.substring(a_i1, a_i1+1) == "&"
r65
65{{{#!wiki class="sts-cost-container"
r81
66[[파일:@[email protected]|height=100%]]
r67
67}}}}}}{{{#!if 효과.substring(a_i1, a_i1+1) == "*"
r65
68{{{#!wiki class="sts-cost-container"
r81
69[[파일:sts2_regent_star.webp|height=100%]]
r76
70}}}}}}{{{#!html <span>@a_r1@</span>
r67
71}}}{{{#!if 효과.substring(a_i2, a_i2+1) == "&"
r65
72{{{#!wiki class="sts-cost-container"
r81
73[[파일:@[email protected]|height=100%]]
r67
74}}}}}}{{{#!if 효과.substring(a_i2, a_i2+1) == "*"
r65
75{{{#!wiki class="sts-cost-container"
r81
76[[파일:sts2_regent_star.webp|height=100%]]
r76
77}}}}}}{{{#!html <span>@a_r2@</span>
r67
78}}}{{{#!if 효과.substring(a_i3, a_i3+1) == "&"
r65
79{{{#!wiki class="sts-cost-container"
r81
80[[파일:@[email protected]|height=100%]]
r67
81}}}}}}{{{#!if 효과.substring(a_i3, a_i3+1) == "*"
r65
82{{{#!wiki class="sts-cost-container"
r81
83[[파일:sts2_regent_star.webp|height=100%]]
r76
84}}}}}}{{{#!html <span>@a_r3@</span>
r67
85}}}{{{#!if 효과.substring(a_i4, a_i4+1) == "&"
r65
86{{{#!wiki class="sts-cost-container"
r81
87[[파일:@[email protected]|height=100%]]
r67
88}}}}}}{{{#!if 효과.substring(a_i4, a_i4+1) == "*"
r65
89{{{#!wiki class="sts-cost-container"
r81
90[[파일:sts2_regent_star.webp|height=100%]]
r76
91}}}}}}{{{#!html <span>@a_r4@</span>
r67
92}}}{{{#!if 효과.substring(a_i5, a_i5+1) == "&"
r65
93{{{#!wiki class="sts-cost-container"
r81
94[[파일:@[email protected]|height=100%]]
r67
95}}}}}}{{{#!if 효과.substring(a_i5, a_i5+1) == "*"
r65
96{{{#!wiki class="sts-cost-container"
r81
97[[파일:sts2_regent_star.webp|height=100%]]
r76
98}}}}}}{{{#!html <span>@a_r5@</span>
r67
99}}}{{{#!if 효과.substring(a_i6, a_i6+1) == "&"
r65
100{{{#!wiki class="sts-cost-container"
r81
101[[파일:@[email protected]|height=100%]]
r67
102}}}}}}{{{#!if 효과.substring(a_i6, a_i6+1) == "*"
r65
103{{{#!wiki class="sts-cost-container"
r81
104[[파일:sts2_regent_star.webp|height=100%]]
r76
105}}}}}}{{{#!html <span>@a_r6@</span>
r67
106}}}{{{#!if 효과.substring(a_i7, a_i7+1) == "&"
r65
107{{{#!wiki class="sts-cost-container"
r81
108[[파일:@[email protected]|height=100%]]
r67
109}}}}}}{{{#!if 효과.substring(a_i7, a_i7+1) == "*"
r65
110{{{#!wiki class="sts-cost-container"
r81
111[[파일:sts2_regent_star.webp|height=100%]]
r76
112}}}}}}{{{#!html <span>@a_r7@</span>
r67
113}}}{{{#!if 효과.substring(a_i8, a_i8+1) == "&"
r65
114{{{#!wiki class="sts-cost-container"
r81
115[[파일:@[email protected]|height=100%]]
r67
116}}}}}}{{{#!if 효과.substring(a_i8, a_i8+1) == "*"
r65
117{{{#!wiki class="sts-cost-container"
r81
118[[파일:sts2_regent_star.webp|height=100%]]
r76
119}}}}}}{{{#!html <span>@a_r8@</span>
r80
120}}}{{{#!if 효과.substring(a_i9, a_i9+1) == "&"
121{{{#!wiki class="sts-cost-container"
r81
122[[파일:@[email protected]|height=100%]]
r80
123}}}}}}{{{#!if 효과.substring(a_i9, a_i9+1) == "*"
124{{{#!wiki class="sts-cost-container"
r81
125[[파일:sts2_regent_star.webp|height=100%]]
r80
126}}}}}}{{{#!html <span>@a_r9@</span>
r65
127}}} ||
r81
128## 행: 강화
r78
129||<class=sts-index><height=60> '''강화''' ||<-3><class=sts-full-content> {{{#!html <span>@b_r0@</span>
130}}}{{{#!if 강화.substring(b_i1, b_i1+1) == "&"
131{{{#!wiki class="sts-cost-container"
r81
132[[파일:@[email protected]|height=100%]]
r78
133}}}}}}{{{#!if 강화.substring(b_i1, b_i1+1) == "*"
134{{{#!wiki class="sts-cost-container"
r81
135[[파일:sts2_regent_star.webp|height=100%]]
r78
136}}}}}}{{{#!html <span>@b_r1@</span>
137}}}{{{#!if 강화.substring(b_i2, b_i2+1) == "&"
138{{{#!wiki class="sts-cost-container"
r81
139[[파일:@[email protected]|height=100%]]
r78
140}}}}}}{{{#!if 강화.substring(b_i2, b_i2+1) == "*"
141{{{#!wiki class="sts-cost-container"
r81
142[[파일:sts2_regent_star.webp|height=100%]]
r78
143}}}}}}{{{#!html <span>@b_r2@</span>
144}}}{{{#!if 강화.substring(b_i3, b_i3+1) == "&"
145{{{#!wiki class="sts-cost-container"
r81
146[[파일:@[email protected]|height=100%]]
r78
147}}}}}}{{{#!if 강화.substring(b_i3, b_i3+1) == "*"
148{{{#!wiki class="sts-cost-container"
r81
149[[파일:sts2_regent_star.webp|height=100%]]
r78
150}}}}}}{{{#!html <span>@b_r3@</span>
151}}}{{{#!if 강화.substring(b_i4, b_i4+1) == "&"
152{{{#!wiki class="sts-cost-container"
r81
153[[파일:@[email protected]|height=100%]]
r78
154}}}}}}{{{#!if 강화.substring(b_i4, b_i4+1) == "*"
155{{{#!wiki class="sts-cost-container"
r81
156[[파일:sts2_regent_star.webp|height=100%]]
r78
157}}}}}}{{{#!html <span>@b_r4@</span>
158}}}{{{#!if 강화.substring(b_i5, b_i5+1) == "&"
159{{{#!wiki class="sts-cost-container"
r81
160[[파일:@[email protected]|height=100%]]
r78
161}}}}}}{{{#!if 강화.substring(b_i5, b_i5+1) == "*"
162{{{#!wiki class="sts-cost-container"
r81
163[[파일:sts2_regent_star.webp|height=100%]]
r78
164}}}}}}{{{#!html <span>@b_r5@</span>
165}}}{{{#!if 강화.substring(b_i6, b_i6+1) == "&"
166{{{#!wiki class="sts-cost-container"
r81
167[[파일:@[email protected]|height=100%]]
r78
168}}}}}}{{{#!if 강화.substring(b_i6, b_i6+1) == "*"
169{{{#!wiki class="sts-cost-container"
r81
170[[파일:sts2_regent_star.webp|height=100%]]
r78
171}}}}}}{{{#!html <span>@b_r6@</span>
172}}}{{{#!if 강화.substring(b_i7, b_i7+1) == "&"
173{{{#!wiki class="sts-cost-container"
r81
174[[파일:@[email protected]|height=100%]]
r78
175}}}}}}{{{#!if 강화.substring(b_i7, b_i7+1) == "*"
176{{{#!wiki class="sts-cost-container"
r81
177[[파일:sts2_regent_star.webp|height=100%]]
r78
178}}}}}}{{{#!html <span>@b_r7@</span>
179}}}{{{#!if 강화.substring(b_i8, b_i8+1) == "&"
180{{{#!wiki class="sts-cost-container"
r81
181[[파일:@[email protected]|height=100%]]
r78
182}}}}}}{{{#!if 강화.substring(b_i8, b_i8+1) == "*"
183{{{#!wiki class="sts-cost-container"
r81
184[[파일:sts2_regent_star.webp|height=100%]]
r78
185}}}}}}{{{#!html <span>@b_r8@</span>
r80
186}}}{{{#!if 강화.substring(b_i9, b_i9+1) == "&"
187{{{#!wiki class="sts-cost-container"
r81
188[[파일:@[email protected]|height=100%]]
r80
189}}}}}}{{{#!if 강화.substring(b_i9, b_i9+1) == "*"
190{{{#!wiki class="sts-cost-container"
r81
191[[파일:sts2_regent_star.webp|height=100%]]
r80
192}}}}}}{{{#!html <span>@b_r9@</span>
r81
193}}} ||
194[include(틀:Slay the Spire 2/카드/설명 문서)]