Advertisement
Guest User

action file structure

a guest
Aug 31st, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 7.04 KB | None | 0 0
  1. {
  2.     actions: [
  3.         {
  4.             id : template // unique to refer to this action (e.g. unlockig special missions)
  5.             name : template // name of the mission shown
  6.             desc: Description // The "lore text" that  explains stuff
  7.             always: true // if true -> Mission of same type gets added Default: false
  8.             chance : 2 // Chance for mission to be selected during new Mission Generation - 0 means never: Use for special
  9.             days : [2,5]  // Time needed for Mission [min,max]
  10.             autoSelect : false // automatically selects the Person used (i.e. Training) or the Leader if no Person (missing) - No Reqs tested
  11.  
  12.             //called at the start of the action and at the end, use days to determine
  13.             func : scoutForest // LuaFunction called at start and end of mission
  14.  
  15.             reqs : {
  16.                 base : {
  17.                     stats : {
  18.  
  19.                     }
  20.                     statsPP : { // stats but for each PersonReq
  21.                         suppliesCost : [2,4] // Amount of Supplies needed per Person for Mission [min,max] -- miss
  22.                         goldCost : [20,50] // Amount of Gold needed per Person for Mission [min,max] -- miss
  23.                     }
  24.                 }
  25.                 persons : [ // Persons needed to do mission
  26.                     {
  27.                         id : leader // unique type of Person
  28.                         level:[0,-1] // minimum level needed for mission
  29.                         amount :[1,2] // How many of this type are needed [min,max]
  30.                         stats : {
  31.                             condition : [5,11]
  32.                         }
  33.                          // Requirements for Person
  34.                         status : [] // Slaver, Slave or Leader
  35.                         traits : [] // Must fulfill all these traits to be allowed -- Missing: ForbiddenTraits OR and AND
  36.                         gender : [female] // Only these genders allowed on mission
  37.                         race : [human_common] // Only these races are allowed
  38.                     }
  39.                 ]
  40.             }
  41.  
  42.             // : Reuseability?
  43.             outcomes :[ // Each individual Outcome of this Mission
  44.                 {
  45.                     // id?
  46.                     name : success // name shown e.g. for chances
  47.                     desc: "Outcome" // Lore text shown for this outcome
  48.                     baseChance : 3 // Base chance for Outcome to happen (not a percentage)
  49.                     hitIncrease : 2 // Added to baseChance for each bonus the person has
  50.  
  51.                     bonus : [ // What increases the base chance for this outcome
  52.                         {
  53.                             id : leader //PersonReqFromAbove // refers to the person Type from above
  54.                             minLevel:[0,-1] // Person has certain minimum level
  55.                             status : [] // E.g. Bonus if Person used is slave/leader/slaver
  56.                             traits : [] // bonus for each trait
  57.                             gender : [female] //bonus for gender
  58.                             race : [human_common] // bonus for each race
  59.                         }
  60.                     ]
  61.  
  62.                     // Dice: {XdY+Z, XdY = XdY+0, Z = 0d0+Z} - SUM(X times a Dice with Y Sides) + Z
  63.                     baseChange : {
  64.                         stats : {
  65.                             gold : 4d6+40 // How much gold this outcome generates
  66.                             supplies : 0 // How much supplies
  67.                         }
  68.                         statsPP : {
  69.  
  70.                         }
  71.                     }
  72.  
  73.                     personOutcome : [ // Individual Outcomes for each person -- miss
  74.                         {
  75.                             // traitsReq missing
  76.                             hurt : none // Person got hurt on mission {none - wound - gone}
  77.                             chance : 1 //Chance for Individual Outcome to happen -- miss
  78.                             desc:["good"] // Description of Indiv. Outcome near Person
  79.                             xpMult: 2 // Multiplicator for the xp of the person
  80.                             trait: { // random trait changes trait : [min, max]
  81.  
  82.                             }
  83.                         }
  84.                     ]
  85.  
  86.                     newActions : { // Generate new Missions
  87.                         random : 3 // By random Mission
  88.                         special : [xy] // Unlocks special missions -- miss
  89.                     }
  90.  
  91.                     // miss
  92.                     newPerson : [ // Generate a new Person
  93.                         {
  94.                             firstNames : [Bimbo] // Fixed First Names
  95.                             secondNames : [] // Fixed Family Names
  96.                             level : [3,5] // Set level of new Person [min,max]
  97.                             stats: { // Stats of new Person [min,max]
  98.                                 morale : [0,100]
  99.                             }
  100.                             ranks : [slave] // Rank of new Person Slave/Slaver -- miss
  101.                             races : [] // Person Races - Required
  102.                             genders:[] // Person Genders
  103.                             traits : [] // Traits Person has
  104.                             traitPoints :[20,20] // More Points => More/Rarer traits
  105.  
  106.                             body  : { // which body parts does person have -- miss
  107.                                 replace : {
  108.                                     x : []
  109.                                     y : []
  110.                                 }
  111.                                 hair : [xy]
  112.                                 skin : [xy]
  113.                             }
  114.                         }
  115.                     ]
  116.  
  117.                     // needs also something like traitContainers?
  118.                     func: xxx  // LuaFunction the Outcome would call miss
  119.                 }
  120.                 {
  121.                     name : fail
  122.                     desc: "Burn"
  123.                     personOutcome : [
  124.                         {
  125.                             hurt : none
  126.                             chance : 1
  127.                             desc:[good]
  128.                             xpMult: 2
  129.                             trait: none
  130.                         }
  131.                     ]
  132.                     baseChance : 4
  133.                     hitIncrease : 2
  134.                     bonus:[{
  135.                         id : leader // refers to one up
  136.                         level:[0,-1]
  137.                         status : []
  138.                         traits : [Agg]
  139.                         gender : []
  140.                         race : []
  141.                     }]
  142.                     gold : 4d6+40
  143.                     supplies : 0
  144.                     xp :  0
  145.                     newActions:{
  146.                         random : 1
  147.                         special : [xy]
  148.                     }
  149.  
  150.                     newPerson : 2
  151.                     func: xxx
  152.                 }
  153.             ]
  154.         }
  155.            
  156.     ]
  157. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement