Advertisement
Guest User

Flux Capacitor Citizen.rsc

a guest
Apr 27th, 2015
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.33 KB | None | 0 0
  1. // layout of the entity
  2. ComponentDescription resource
  3. {
  4. // how often to update
  5. UpdatePriority _updatePriority = Second;
  6.  
  7. // declare types that will be used
  8. Description _descriptions
  9. [
  10. "ui",
  11. "toolbar",
  12.  
  13. "model",
  14. "picking",
  15. "highlight",
  16. "character",
  17. "statusicon",
  18. "storage",
  19. "citizen",
  20. "citizenai",
  21. ]
  22. }
  23.  
  24. StateMachineDescription statemachine { }
  25.  
  26. ToolbarDescription toolbar
  27. {
  28. StringTable _stringTable = "Dialog/StringTable.rsc:objects";
  29. String _stringName = "Citizen";
  30. }
  31.  
  32. CharacterDescription character
  33. {
  34. float _headingOffset = 0.0;
  35. float _turnFilter = 0.96;
  36. float _defaultAnimationBlendTime = 0.5;
  37.  
  38. float _slowSpeed = 0.75;
  39. float _fastSpeed = 1.2;
  40. float _fastestSpeed = 1.4;
  41. }
  42.  
  43. StorageDescription storage
  44. {
  45. RawMaterialFlags _storageFlags = Edible | Fuel | Tool | Wood | Stone | Iron | Health | Clothing | Textile | Alcohol;
  46. bool _areaBasedLimit = false;
  47. bool _available = true;
  48. int _volumeLimit = 100;
  49. }
  50.  
  51. CitizenAIDescription citizenai
  52. {
  53. }
  54.  
  55. CitizenDescription citizen
  56. {
  57. Profession _schoolingProfession = "Game/Profession/Profession.rsc:teacher";
  58. Profession _churchProfession = "Game/Profession/Profession.rsc:priest";
  59. Profession _doctorProfession = "Game/Profession/Profession.rsc:doctor";
  60.  
  61. // age at which children becomre adults
  62. float _adultAge = 2.0;
  63. float _marriageAge = 2.0;
  64. float _marrigeRange = 4.0;
  65. float _childMinAge = 2.2;
  66. float _childMaxAge = 8.0;
  67.  
  68. float _maxAge = 15.0;
  69. float _maxAgeTolerance = 3.0;
  70. float _agePerSecond = 0.0000555554;
  71.  
  72. float _childTerm = 900.0;
  73. float _postChildTerm = 1800.0;
  74. float _postChildTermTol = 5400.0;
  75. float _childBirthHealthy = 0.00625;
  76. float _childBirthUnhealthy = 0.025;
  77.  
  78. float _health = 10.0;
  79. float _maxHealth = 10.0;
  80. float _unhealthyLevel = 8.0;
  81. float _healthUpdateInMonths = 3.0;
  82.  
  83. float _maxHappiness = 10.0;
  84. int _minFoodForHappiness = 4;
  85. int _maxFoodForHappiness = 12;
  86. float _happinessUpdateInMonths = 3.0;
  87. int _workForHappiness = 10;
  88. float _unhappyLevel = 0.6;
  89. float _depressedLevel = 0.25;
  90. int _idleRange = 25;
  91.  
  92. // chance of disease, per year.
  93. RandomSelection _diseaseChanceHealthy
  94. {
  95. float _years = 20;
  96. float _population = 500;
  97. }
  98.  
  99. RandomSelection _diseaseChanceUnhealthy
  100. {
  101. float _years = 1;
  102. float _population = 400;
  103. }
  104.  
  105. RandomSelection _diseaseChanceNomadTrade
  106. {
  107. float _years = 1;
  108. float _population = 250;
  109. }
  110.  
  111. // how long disease lasts in months +-
  112. float _diseasePeriod = 1.0;
  113. float _diseasePeriodTol = 0.5;
  114.  
  115. // how long immune to disease after recovering
  116. float _immunityLength = 12.0f;
  117.  
  118. float _foodPerYear = 100;
  119. float _foodLevel = 25.0;
  120. float _hungerLevel = 10.0;
  121. float _starvingLevel = 18.0;
  122. float _maxHunger = 25.0;
  123.  
  124. float _retryInMonths = 0.1;
  125.  
  126. float _fuelLevel = 8.0;
  127.  
  128. float _coldnessLevel = 7.5;
  129. float _freezingLevel = 15.0;
  130. float _coldPerMonth [ 12.0, 8.0, 5.0 ]
  131. float _maxColdness = 20.0;
  132. float _minTemperature = 48.0;
  133.  
  134. int _toolQuality = 100;
  135. float _toolPenalty = 5.0;
  136.  
  137. int _requiredEducation = 400;
  138. float _educationTimeLength = 3.0;
  139. float _educationWorkLength = 10.0;
  140.  
  141. float _doctorChanceOfDeathScalar = 2.0;
  142. float _medicateWorkLength = 10.0;
  143. float _medicineEffectivenessInMonths = 0.01;
  144.  
  145. float _clothingLengthInMonths = 48.0;
  146.  
  147. int _maxWaterForFireSearch = 64;
  148.  
  149. int _minDistanceForWork = 60;
  150. int _maxDistanceForWork = 2000; // must encompass longest walk path!
  151. int _timeUntilMaxDistanceForWorkInMonths = 6;
  152. int _maxWalkInWinter = 200;
  153. float _minTemperatureForWinterWalk = 45.0;
  154.  
  155. GraphicsMesh _tools
  156. [
  157. "Models\Citizen\ToolAxeMesh.rsc"
  158. "Models\Citizen\ToolPickAxeMesh.rsc"
  159. "Models\Citizen\ToolScytheMesh.rsc"
  160. "Models\Citizen\ToolHoeMesh.rsc"
  161. "Models\Citizen\ToolHammerMesh.rsc"
  162. "Models\Citizen\ToolFishingMesh.rsc"
  163. "Models\Citizen\ToolHammerMesh.rsc"
  164. "Models\Citizen\ToolHandSawMesh.rsc"
  165. "Models\Citizen\ToolBucketMesh.rsc"
  166.  
  167. "Models\Citizen\BarrowEmptyMesh.rsc"
  168. "Models\Citizen\BarrowFullMesh.rsc"
  169. ]
  170. }
  171.  
  172. PickingDescription picking
  173. {
  174. bool _useGraphicsMesh = true;
  175. MaterialInstance _selectMaterial = "Material/SelectionMask/SelectionMaskSkin.rsc";
  176. PickingGroup _meshes
  177. [
  178. {
  179. PickingMesh _mesh
  180. [
  181. "Models\Citizen\CitizenPicking.rsc"
  182. ]
  183. }
  184. {
  185. PickingMesh _mesh
  186. [
  187. "Models\Citizen\CitizenPicking.rsc"
  188. ]
  189. }
  190. ]
  191. }
  192.  
  193. ModelDescription model
  194. {
  195. MeshGroup _meshes
  196. [
  197. {
  198. AnimationGroup _animations = "Models\Citizen\CitizenAnims.rsc";
  199. GraphicsMesh _mesh
  200. [
  201. "Models\Citizen\CitizenMaleMesh.rsc"
  202. ]
  203. }
  204. {
  205. AnimationGroup _animations = "Models\Citizen\CitizenAnims.rsc";
  206. GraphicsMesh _mesh
  207. [
  208. "Models\Citizen\CitizenFemaleMesh.rsc"
  209. ]
  210. }
  211. ]
  212.  
  213. int _displayIndex = 0;
  214. int _subIndex = 0;
  215. bool _randomIndex = false;
  216. }
  217.  
  218. HighlightDescription highlight
  219. {
  220. EdgeGroup _meshes
  221. [
  222. {
  223. EdgeMesh _mesh
  224. [
  225. "Models\Citizen\CitizenMaleMesh.rsc:edge"
  226. ]
  227. }
  228. {
  229. EdgeMesh _mesh
  230. [
  231. "Models\Citizen\CitizenFemaleMesh.rsc:edge"
  232. ]
  233. }
  234. ]
  235. }
  236.  
  237. StatusIconDescription statusicon
  238. {
  239. SpriteSheet _spriteSheet = "StatusIcons\CitizenIconSpriteSheet.rsc";
  240. bool _fixedSize = true;
  241. float _size = 0.025;
  242. float _zoffset = 1.33;
  243. }
  244.  
  245. UIDescription ui
  246. {
  247. int _displayPage = 1; // set to 1 for tab layout
  248. Dialog _dialog = "Dialog/StandardDialog.rsc:entity";
  249.  
  250. ElementController _controllers
  251. [
  252. {
  253. ElementDescription _element = "Dialog/Citizen.rsc:buttonProfession";
  254. String _insertAt = "userTitle0";
  255. }
  256. {
  257. ElementDescription _element = "Dialog/Citizen.rsc:buttonHome";
  258. String _insertAt = "userTitle1";
  259. }
  260. {
  261. ObjectType _type = StatusIconUI;
  262. ElementDescription _element = "Dialog/Citizen.rsc:icons";
  263. String _insertAt = "userTitle2";
  264. }
  265. {
  266. ElementDescription _element = "Dialog/Citizen.rsc:buttonFollow";
  267. String _insertAt = "pageTabHeader";
  268. }
  269. {
  270. ObjectType _type = CitizenUI;
  271. ElementDescription _element = "Dialog/Citizen.rsc:citizen";
  272. String _insertAt = "pageTab";
  273. ElementDescription _tabButton = "Dialog/Residence.rsc:buttonTabCitizen";
  274. }
  275. {
  276. ObjectType _type = StorageUI;
  277. ElementDescription _element = "Dialog/Storage.rsc:storage";
  278. String _insertAt = "pageTab";
  279. ElementDescription _tabButton = "Dialog/Storage.rsc:buttonTabStorage";
  280. }
  281. ]
  282. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement