Korvichtav Code

From Seltanikor
Jump to: navigation, search

CC0.png
To the extent possible under law, the person who associated CC0 with this work has waived all copyright and related or neighboring rights to this work.

 {
   "name": "Korvichtav", 
   "wid": "51f800216b3d306af004fd42", 
   "creator_uid": "51d2613c6b3d304989802726", 
   "creator": "Pavitra", 
   "copyable": true, 
   "instancing": "standard",
   "portlists": [
     {
       "key": "home_pedestal", 
       "portals": [
         {
           "listpos": 1.0, 
           "locid": "51b146b56b3d303908b66c98", 
           "scid": "51b142636b3d3037c8c396f7", 
           "wid": "51b146b56b3d303908b66c97"
         }
       ], 
       "type": "world"
     }, 
     {
       "key": "c_n1", 
       "portals": [], 
       "type": "world"
     }, 
     {
       "key": "c_n2", 
       "portals": [], 
       "type": "world"
     }, 
     {
       "key": "c_n3", 
       "portals": [], 
       "type": "world"
     }, 
     {
       "key": "c_n4", 
       "portals": [], 
       "type": "world"
     }, 
     {
       "key": "c_e1", 
       "portals": [], 
       "type": "world"
     }, 
     {
       "key": "c_e2", 
       "portals": [], 
       "type": "world"
     }, 
     {
       "key": "c_e3", 
       "portals": [], 
       "type": "world"
     }, 
     {
       "key": "c_e4", 
       "portals": [], 
       "type": "world"
     }, 
     {
       "key": "c_s1", 
       "portals": [], 
       "type": "world"
     }, 
     {
       "key": "c_s2", 
       "portals": [], 
       "type": "world"
     }, 
     {
       "key": "c_s3", 
       "portals": [], 
       "type": "world"
     }, 
     {
       "key": "c_s4", 
       "portals": [], 
       "type": "world"
     }, 
     {
       "key": "c_w1", 
       "portals": [], 
       "type": "world"
     }, 
     {
       "key": "c_w2", 
       "portals": [], 
       "type": "world"
     }, 
     {
       "key": "c_w3", 
       "portals": [], 
       "type": "world"
     }, 
     {
       "key": "c_w4", 
       "portals": [], 
       "type": "world"
     }
   ],
   "realmprops": [
     {
       "key": "ceiling", 
       "val": {
         "text": "Far overhead, iron latticework supports wide panes of glass, admitting the bright warm light of a crocus-yellow [sky].", 
         "type": "text"
       }
     }, 
     {
       "key": "floor", 
       "val": {
         "text": "The floor is tiled in white and pink marble, a radiating pattern of kites and darts like an angular rose.", 
         "type": "text"
       }
     }, 
     {
       "key": "sky", 
       "val": {
         "text": "Thin wisps of white cloud drift slowly past, giving the sky a texture like marbled ice cream.", 
         "type": "text"
       }
     }
   ],
   "playerprops": [
     {
       "key": "editmode", 
       "val": false
     }
   ],
   "locations": [
     {
       "key": "center", 
       "name": "Lobby",
       "props": [
         {
           "key": "desc", 
           "val": {
             "text": "[Sunlight|ceiling] fills the wide lobby, gleaming on the polished [tiles|floor]. All four walls are lined with\n[$if player.editmode]\n bookshelves: [[[tt_n]]|north], [[[tt_e]]|east], [[[tt_s]]|south], and [[[tt_w]]|west].\n[$else]\n bookshelves.\n[$end]\nOn a [pedestal] in the center of the room is a [linking book].\n\n[$if t_n1=='' and t_n2=='' and t_n3=='' and t_n4=='']\n[$else]\n The [[tt_n]] shelves are labeled:\n[[[t_n1]]|n1]\n[$if (t_n1!='') and (t_n2!='' or t_n3!='' or t_n4!='')] – [$end]\n[[[t_n2]]|n2]\n[$if (t_n1!='' or t_n2!='') and (t_n3!='' or t_n4!='')] – [$end]\n[[[t_n3]]|n3]\n[$if (t_n1!='' or t_n2!='' or t_n3!='') and (t_n4!='')] – [$end]\n[[[t_n4]]|n4]\n[$end]\n\n[$if t_e1=='' and t_e2=='' and t_e3=='' and t_e4=='']\n[$else]\n The [[tt_e]] shelves are labeled:\n[[[t_e1]]|e1]\n[$if (t_e1!='') and (t_e2!='' or t_e3!='' or t_e4!='')] – [$end]\n[[[t_e2]]|e2]\n[$if (t_e1!='' or t_e2!='') and (t_e3!='' or t_e4!='')] – [$end]\n[[[t_e3]]|e3]\n[$if (t_e1!='' or t_e2!='' or t_e3!='') and (t_e4!='')] – [$end]\n[[[t_e4]]|e4]\n[$end]\n\n[$if t_s1=='' and t_s2=='' and t_s3=='' and t_s4==''] \n[$else]\n The [[tt_s]] shelves are labeled:\n[[[t_s1]]|s1]\n[$if (t_s1!='') and (t_s2!='' or t_s3!='' or t_s4!='')] – [$end]\n[[[t_s2]]|s2]\n[$if (t_s1!='' or t_s2!='') and (t_s3!='' or t_s4!='')] – [$end]\n[[[t_s3]]|s3]\n[$if (t_s1!='' or t_s2!='' or t_s3!='') and (t_s4!='')] – [$end]\n[[[t_s4]]|s4]\n[$end]\n\n[$if t_w1=='' and t_w2=='' and t_w3=='' and t_w4==''] \n[$else]\n The [[tt_w]] shelves are labeled:\n[[[t_w1]]|w1]\n[$if (t_w1!='') and (t_w2!='' or t_w3!='' or t_w4!='')] – [$end]\n[[[t_w2]]|w2]\n[$if (t_w1!='' or t_w2!='') and (t_w3!='' or t_w4!='')] – [$end]\n[[[t_w3]]|w3]\n[$if (t_w1!='' or t_w2!='' or t_w3!='') and (t_w4!='')] – [$end]\n[[[t_w4]]|w4]\n[$end]", 
             "type": "text"
           }
         }, 
         {
           "key": "doors", 
           "val": {
             "text": "The doors are locked, and the rooms beyond dark. The glass shows only your reflection.", 
             "type": "text"
           }
         }, 
         {
           "key": "pedestal", 
           "val": {
             "text": "The pedestal is made of a dark red stone flecked with black and gold. A [linking book] lies open on it.\n\nA small [$if access.level() >= access.OWNER][button|adminbutton][$else][button][$end] is mounted discreetly underneath.", 
             "type": "text"
           }
         }, 
         {
           "key": "linking_book", 
           "val": {
             "focus": true, 
             "plistkey": "home_pedestal", 
             "type": "portlist"
           }
         }, 
         {
           "key": "button", 
           "val": {
             "text": "if (access.level() >= access.MEMBER) or publicmode:\n player.editmode = not player.editmode\n if player.editmode:\n  event('The button softly clicks twice.')\n else:\n  event('The button softly clicks once.')\nelse:\n event(\"The button doesn't move.\")", 
             "type": "code"
           }
         }, 
         {
           "key": "north", 
           "val": {
             "text": "Edit: [Title ([[tt_n]])|tte_n] – [1 ([[t_n1]])|te_n1] – [2 ([[t_n2]])|te_n2] – [3 ([[t_n3]])|te_n3] – [4 ([[t_n4]])|te_n4]", 
             "type": "text"
           }
         }, 
         {
           "key": "east", 
           "val": {
             "text": "Edit: [Title ([[tt_e]])|tte_e] – [1 ([[t_e1]])|te_e1] – [2 ([[t_e2]])|te_e2] – [3 ([[t_e3]])|te_e3] – [4 ([[t_e4]])|te_e4]", 
             "type": "text"
           }
         }, 
         {
           "key": "south", 
           "val": {
             "text": "Edit: [Title ([[tt_s]])|tte_s] – [1 ([[t_s1]])|te_s1] – [2 ([[t_s2]])|te_s2] – [3 ([[t_s3]])|te_s3] – [4 ([[t_s4]])|te_s4]", 
             "type": "text"
           }
         }, 
         {
           "key": "west", 
           "val": {
             "text": "Edit: [Title ([[tt_w]])|tte_w] – [1 ([[t_w1]])|te_w1] – [2 ([[t_w2]])|te_w2] – [3 ([[t_w3]])|te_w3] – [4 ([[t_w4]])|te_w4]", 
             "type": "text"
           }
         }, 
         {
           "key": "portlist", 
           "val": {
             "text": "The page shows the lobby of a spacious library.", 
             "type": "text"
           }
         }, 
         {
           "key": "preinit", 
           "val": {
             "text": "t_n1 = ''\nt_n2 = ''\nt_n3 = ''\nt_n4 = ''\n\nt_e1 = ''\nt_e2 = ''\nt_e3 = ''\nt_e4 = ''\n\nt_s1 = ''\nt_s2 = ''\nt_s3 = ''\nt_s4 = ''\n\nt_w1 = ''\nt_w2 = ''\nt_w3 = ''\nt_w4 = ''\n\ntt_n = 'north'\ntt_e = 'east'\ntt_s = 'south'\ntt_w = 'west'", 
             "type": "code"
           }
         }, 
         {
           "key": "on_enter", 
           "val": {
             "text": "if initialized < 2:\n preinit\n reinit\n initialized = 2\n\nfix_titles", 
             "type": "code"
           }
         }, 
         {
           "key": "initialized", 
           "val": 0
         }, 
         {
           "key": "reinit", 
           "val": {
             "text": "n1 = {'type': 'portlist', 'plistkey': 'c_n1', 'text': '[[t_n1]]'}\nn2 = {'type': 'portlist', 'plistkey': 'c_n2', 'text': '[[t_n2]]'}\nn3 = {'type': 'portlist', 'plistkey': 'c_n3', 'text': '[[t_n3]]'}\nn4 = {'type': 'portlist', 'plistkey': 'c_n4', 'text': '[[t_n4]]'}\nif initialized < 1:\n te_n1 = {'type': 'editstr', 'label': '[Back|north]', 'key': 't_n1'}\n te_n2 = {'type': 'editstr', 'label': '[Back|north]', 'key': 't_n2'}\n te_n3 = {'type': 'editstr', 'label': '[Back|north]', 'key': 't_n3'}\n te_n4 = {'type': 'editstr', 'label': '[Back|north]', 'key': 't_n4'}\n\ne1 = {'type': 'portlist', 'plistkey': 'c_e1', 'text': '[[t_e1]]'}\ne2 = {'type': 'portlist', 'plistkey': 'c_e2', 'text': '[[t_e2]]'}\ne3 = {'type': 'portlist', 'plistkey': 'c_e3', 'text': '[[t_e3]]'}\ne4 = {'type': 'portlist', 'plistkey': 'c_e4', 'text': '[[t_e4]]'}\nif initialized < 1:\n te_e1 = {'type': 'editstr', 'label': '[Back|east]', 'key': 't_e1'}\n te_e2 = {'type': 'editstr', 'label': '[Back|east]', 'key': 't_e2'}\n te_e3 = {'type': 'editstr', 'label': '[Back|east]', 'key': 't_e3'}\n te_e4 = {'type': 'editstr', 'label': '[Back|east]', 'key': 't_e4'}\n\ns1 = {'type': 'portlist', 'plistkey': 'c_s1', 'text': '[[t_s1]]'}\ns2 = {'type': 'portlist', 'plistkey': 'c_s2', 'text': '[[t_s2]]'}\ns3 = {'type': 'portlist', 'plistkey': 'c_s3', 'text': '[[t_s3]]'}\ns4 = {'type': 'portlist', 'plistkey': 'c_s4', 'text': '[[t_s4]]'}\nif initialized < 1:\n te_s1 = {'type': 'editstr', 'label': '[Back|south]', 'key': 't_s1'}\n te_s2 = {'type': 'editstr', 'label': '[Back|south]', 'key': 't_s2'}\n te_s3 = {'type': 'editstr', 'label': '[Back|south]', 'key': 't_s3'}\n te_s4 = {'type': 'editstr', 'label': '[Back|south]', 'key': 't_s4'}\n\nw1 = {'type': 'portlist', 'plistkey': 'c_w1', 'text': '[[t_w1]]'}\nw2 = {'type': 'portlist', 'plistkey': 'c_w2', 'text': '[[t_w2]]'}\nw3 = {'type': 'portlist', 'plistkey': 'c_w3', 'text': '[[t_w3]]'}\nw4 = {'type': 'portlist', 'plistkey': 'c_w4', 'text': '[[t_w4]]'}\nif initialized < 1:\n te_w1 = {'type': 'editstr', 'label': '[Back|west]', 'key': 't_w1'}\n te_w2 = {'type': 'editstr', 'label': '[Back|west]', 'key': 't_w2'}\n te_w3 = {'type': 'editstr', 'label': '[Back|west]', 'key': 't_w3'}\n te_w4 = {'type': 'editstr', 'label': '[Back|west]', 'key': 't_w4'}\n\nif initialized < 1:\n tte_n = {'type': 'editstr', 'label': '[Back|north]', 'key': 'tt_n'}\n tte_e = {'type': 'editstr', 'label': '[Back|east]', 'key': 'tt_e'}\n tte_s = {'type': 'editstr', 'label': '[Back|south]', 'key': 'tt_s'}\n tte_w = {'type': 'editstr', 'label': '[Back|west]', 'key': 'tt_w'}", 
             "type": "code"
           }
         }, 
         {
           "key": "portaldesc", 
           "val": {
             "text": "The page shows the lobby of a spacious library.", 
             "type": "text"
           }
         }, 
         {
           "key": "count_nonempty_strings", 
           "val": {
             "args": "list", 
             "text": "while '' in list:\n list.remove('')\nreturn len(list)", 
             "type": "code"
           }
         }, 
         {
           "key": "testshelf", 
           "val": {
             "editaccess": 1, 
             "type": "editstr"
           }
         }, 
         {
           "key": "publicmode", 
           "val": false
         }, 
         {
           "key": "publicmode_reinit", 
           "val": {
             "text": "publicmode = True\n\nn1 = {'type': 'portlist', 'plistkey': 'c_n1', 'text': '[[t_n1]]', 'editaccess':1}\nn2 = {'type': 'portlist', 'plistkey': 'c_n2', 'text': '[[t_n2]]', 'editaccess':1}\nn3 = {'type': 'portlist', 'plistkey': 'c_n3', 'text': '[[t_n3]]', 'editaccess':1}\nn4 = {'type': 'portlist', 'plistkey': 'c_n4', 'text': '[[t_n4]]', 'editaccess':1}\nif initialized < 1:\n te_n1 = {'type': 'editstr', 'label': '[Back|north]', 'key': 't_n1', 'editaccess':1}\n te_n2 = {'type': 'editstr', 'label': '[Back|north]', 'key': 't_n2', 'editaccess':1}\n te_n3 = {'type': 'editstr', 'label': '[Back|north]', 'key': 't_n3', 'editaccess':1}\n te_n4 = {'type': 'editstr', 'label': '[Back|north]', 'key': 't_n4', 'editaccess':1}\n\ne1 = {'type': 'portlist', 'plistkey': 'c_e1', 'text': '[[t_e1]]', 'editaccess':1}\ne2 = {'type': 'portlist', 'plistkey': 'c_e2', 'text': '[[t_e2]]', 'editaccess':1}\ne3 = {'type': 'portlist', 'plistkey': 'c_e3', 'text': '[[t_e3]]', 'editaccess':1}\ne4 = {'type': 'portlist', 'plistkey': 'c_e4', 'text': '[[t_e4]]', 'editaccess':1}\nif initialized < 1:\n te_e1 = {'type': 'editstr', 'label': '[Back|east]', 'key': 't_e1', 'editaccess':1}\n te_e2 = {'type': 'editstr', 'label': '[Back|east]', 'key': 't_e2', 'editaccess':1}\n te_e3 = {'type': 'editstr', 'label': '[Back|east]', 'key': 't_e3', 'editaccess':1}\n te_e4 = {'type': 'editstr', 'label': '[Back|east]', 'key': 't_e4', 'editaccess':1}\n\ns1 = {'type': 'portlist', 'plistkey': 'c_s1', 'text': '[[t_s1]]', 'editaccess':1}\ns2 = {'type': 'portlist', 'plistkey': 'c_s2', 'text': '[[t_s2]]', 'editaccess':1}\ns3 = {'type': 'portlist', 'plistkey': 'c_s3', 'text': '[[t_s3]]', 'editaccess':1}\ns4 = {'type': 'portlist', 'plistkey': 'c_s4', 'text': '[[t_s4]]', 'editaccess':1}\nif initialized < 1:\n te_s1 = {'type': 'editstr', 'label': '[Back|south]', 'key': 't_s1', 'editaccess':1}\n te_s2 = {'type': 'editstr', 'label': '[Back|south]', 'key': 't_s2', 'editaccess':1}\n te_s3 = {'type': 'editstr', 'label': '[Back|south]', 'key': 't_s3', 'editaccess':1}\n te_s4 = {'type': 'editstr', 'label': '[Back|south]', 'key': 't_s4', 'editaccess':1}\n\nw1 = {'type': 'portlist', 'plistkey': 'c_w1', 'text': '[[t_w1]]', 'editaccess':1}\nw2 = {'type': 'portlist', 'plistkey': 'c_w2', 'text': '[[t_w2]]', 'editaccess':1}\nw3 = {'type': 'portlist', 'plistkey': 'c_w3', 'text': '[[t_w3]]', 'editaccess':1}\nw4 = {'type': 'portlist', 'plistkey': 'c_w4', 'text': '[[t_w4]]', 'editaccess':1}\nif initialized < 1:\n te_w1 = {'type': 'editstr', 'label': '[Back|west]', 'key': 't_w1', 'editaccess':1}\n te_w2 = {'type': 'editstr', 'label': '[Back|west]', 'key': 't_w2', 'editaccess':1}\n te_w3 = {'type': 'editstr', 'label': '[Back|west]', 'key': 't_w3', 'editaccess':1}\n te_w4 = {'type': 'editstr', 'label': '[Back|west]', 'key': 't_w4', 'editaccess':1}\n\nif initialized < 1:\n tte_n = {'type': 'editstr', 'label': '[Back|north]', 'key': 'tt_n', 'editaccess':1}\n tte_e = {'type': 'editstr', 'label': '[Back|east]', 'key': 'tt_e', 'editaccess':1}\n tte_s = {'type': 'editstr', 'label': '[Back|south]', 'key': 'tt_s', 'editaccess':1}\n tte_w = {'type': 'editstr', 'label': '[Back|west]', 'key': 'tt_w', 'editaccess':1}", 
             "type": "code"
           }
         }, 
         {
           "key": "adminbutton", 
           "val": {
             "text": "You could [press the||button] or [hold it down|toggle_public].", 
             "type": "text"
           }
         }, 
         {
           "key": "toggle_public", 
           "val": {
             "text": "publicmode = not publicmode\n\nif publicmode:\n publicmode_reinit\n event('There is a short buzz, and then a recorded voice plays from somewhere: “Public mode activated.”', 'A recorded voice plays from somewhere: “Public mode activated.”')\nelse:\n reinit\n event('There is a short buzz, and then a recorded voice plays from somewhere: “Public mode deactivated.”', 'A recorded voice plays from somewhere: “Public mode deactivated.”')\n\nfix_titles", 
             "type": "code"
           }
         }, 
         {
           "key": "fix_titles", 
           "val": {
             "text": "tt_n = tt_n or 'north'\ntt_e = tt_e or 'east'\ntt_s = tt_s or 'south'\ntt_w = tt_w or 'west'", 
             "type": "code"
           }
         }
       ]
     }
   ]
 }