User:Avarice77/RevivedContactBook

From The Urban Dead Wiki
< User:Avarice77
Revision as of 01:01, 30 June 2024 by Avarice77 (talk | contribs) (Added help page for creating contact book for revived user script)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

To create a contact book that can be downloaded into the Urban Dead interface while you play using the Revived User Script you must follow this pattern.

1. Create a wiki page and set the content type to JSON. 2. Add JSON content in the format specified below. 3. Save the page and visit it to ensure it is correctly displaying the content <a href="https://wiki.urbandead.com/index.php/User:Avarice77/Contacts">as the example.</a> 4. Add the page name, not URL (e.g. User:Avarice77/Contacts) into the 'Contact book' field on the Urban Dead settings page. 5. Visit the contacts page/tab and your contacts should be downloaded to a new table below the existing one.

Format: [

   {
       "name": string,           // "Akira Takahashi"
       "id": number,             // 2361365
       "color": string,          // "#f00"
       "phone": string,          // "2361365"
       "xp": number,             // 167
       "level": number,          // 14
       "overrideColor": boolean, // true
       "class": string,          // "Military"
       "group": string,          // "Sakura"
       "notes": string           // "zerg"
   },
   ...

]