Cyberpunk Game/json

From Gralamin's Wiki
Revision as of 18:18, 15 December 2023 by Gralamin (talk | contribs) (Created page with "= Objects = These are sub items that may appear in json files. They will be referenced using <object_name>. == player == { name: player-1, computer: 0, units: [], initiative: 0, victory-conditions: , loss-conditions: , } == stats == { strength: 1, luck: 2, ..., } {{Cyberpunk_Json|title=map.json|form={ players: [ <player> ] } }} {{Cyberpunk_Json|title=class.json|form={ name: "Enforcer", ability-set: 1...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Objects

These are sub items that may appear in json files. They will be referenced using <object_name>.

player

{
  name: player-1,
  computer: 0,
  units: [],
  initiative: 0,
  victory-conditions: ,
  loss-conditions: ,
 }

stats

{
  strength: 1,
  luck: 2,
  ...,
}

map.json

{
    players: [
        <player>
    ]
}

class.json

{
    name: "Enforcer",
    ability-set: 1,
    stats: <stats>,
    proficiency: [1, 5, 6]
}

abilities.json

{
    sets: [ {name: "Enforcement"
             abilities: [ {id: 1, level: 3}, {id: 3, level: 12}, {id: 6, level: 20} ]
          ],
    abilities: [ { id: 1, script_file:"/path/to/script.py"} ]
}

Here, abilities would just run python scripts. Whether this is a good idea or not remains to be seen.

item.json

{
    weapons: [ {id: 1, stat-changes: <stats>, element: "", type: ""} ],
    armor: [ {id: 1000, stat-changes: <stats>, element: "", type: ""} ]
}

art.json

{
    terrain: [ {id: 1, width: 64, height: 64, location: "/path/to/file"}],
    units: [ {id: 1000, size: 'medium', location: "/path/to/file"}],
    portraits: [{id: 5000, location: "/path/to/file"}]
}

dialog.json

{
    dialog: [ {id: 1, actor: "", text: "this is some text"}]
}