QUOTE(nguzhr @ Nov 21 2024, 11:26)

看见了 多谢 原来颜色也可以自定义 怪不得拍卖装备同品质也有颜色不一样的
主要是用在装备店和拍卖会之类的地方 code和选项里的code有啥区别吗
以 HVU 舉例(我也只會這個,連 live percentage 有類似功能的不知道 orz
在裝備倉庫那邊進行裝備勾選後,可以點 WTS Code 來產生語法
如果要增減內容,可以在 WTS Code 彈出的小視窗點 edit equip code 去編輯格式,會看到這個東西
CODE
// {$name} equipment name
// {$bbcode} equipment name in colors/bold
// {$url} equipment url
// {$eid} equipment id
// {$_eid} it pads $eid with spaces for layout
// {$level} equipment level
// {$tier} potency tier (iw level)
// {$price} the value of the 'price' input field
// {$note} the value of the 'note' input field
// if it contains '$featured;', the equip code will be added to 'Featured' section
// if it contains '$new;', the equip code will be added to 'Newly Added' section
// {$condition:expression}
// if $condition is a valid value, it prints the expression
// for example, {$tier: (IW $tier)} prints ' (IW 9)' if $tier is 9
// while it does nothing if $tier is 0
[{$_eid}] [url={$url}]{$bbcode}[/url] (Lv.{$level}){$price: @ $price}{$note: ($note)}
不過我沒有研究過細節定義,有什麼要改的可能要討論一下
印象中 HVU 的 wts code 也有上色功能,我有印象處理過例外
另外,HVU 在多類別的時候會自動生成主次類別,所以看到商店格式很像的,大多是因為使用同類腳本生成語法的關係
那是語法運作跟我預期的不同
論壇語法會用中括號包覆,然後Code 論壇語法是 code 開頭 /code 結尾
本來我想要用 code code /code /code 來產生中間兩個為內容的現實,結果實際 match 到的語法是第一個 code 跟第一個 /code
哈哈哈