Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. # objectives setup
  2.  
  3.  
  4. # <objective id ID>
  5. # the numerical id of an objective. One will be assigned by the system
  6.  
  7. # <objective name NAME>
  8.  
  9. # <objective owner TEAM_ID>
  10.  
  11. # <objective type TYPE>
  12.  
  13. # <objective econ N>
  14. # ECON now refers to the gold value of an objective
  15. # ECON is displayed to the player as a gold value only if above 0
  16. # ECON is specific to single objectives and now zeroed below
  17.  
  18. # <objective trigger on capture EVENT_ID (REPEAT?)>
  19. # triggers event EVENT_ID when base is captured
  20. # if event id is preceeded by a exclaimation point, it will refer to an event on the map
  21. # the following global variables will be set referring who captured who it is being catpured from
  22.  
  23. # $capturing_squad
  24. # $captued_objective
  25. # $objective_owner
  26. # variables set when an interaction is preformed
  27.  
  28. module Objectives
  29.  
  30. ECON = {}
  31.  
  32. # Economic defaults setup
  33. # ECON[:type] = (amount)
  34.  
  35. ECON[:goldmine] = 0
  36. ECON[:gemmine] = 0
  37. ECON[:obsidianmine] = 0
  38. ECON[:pyrocitemine] = 0
  39. ECON[:sunstonemine] = 0
  40. ECON[:ironmine] = 0
  41. ECON[:stables] = 0
  42. ECON[:village] = 0
  43. ECON[:town] = 0
  44.  
  45. RESOURCES = {}
  46.  
  47. # Resources defaults
  48. # RESOURCES[:building_type] = { (item_id) => (amount) }
  49. # sets default resources given
  50. # RESOURCES[:tag] = { (item_id) => (amount) }
  51. # a tag can be added to add attach a set of resources
  52.  
  53. RESOURCES[:goldmine] = { } # empty braces means no item given
  54. RESOURCES[:village] = { }
  55. RESOURCES[:town] = { }
  56.  
  57. # change the zeroes
  58. RESOURCES[:gemmine] = { 14 => 3 }
  59. RESOURCES[:obsidianmine] = { 12 => 3}
  60. RESOURCES[:pyrocitemine] = { 15 => 3}
  61. RESOURCES[:sunstonemine] = { 13 => 3}
  62. RESOURCES[:ironmine] = { 10 => 3 }
  63. RESOURCES[:stables] = { 16 => 3}
  64.  
  65.  
  66.  
  67. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement