Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # unit setup
- # allows setting up more specific unit entities to be added to a squad
- # goes in the 00==SETUP== section *before* Enemy Squad Setup
- # comment tags:
- # none
- module UnitSetup
- UNIT_TEMPLATE_DEFAULTS = Hash.new { |h, k| h[k] = Hash.new } # no touchy
- UNIT_TEMPLATE_DEFAULTS[:name] = nil # the name of the unit
- UNIT_TEMPLATE_DEFAULTS[:nickname] = nil
- UNIT_TEMPLATE_DEFAULTS[:class_id] = nil # the class id of the unit
- UNIT_TEMPLATE_DEFAULTS[:actor_id] = nil # the actor id of the unit
- UNIT_TEMPLATE_DEFAULTS[:enemy_id] = nil # the actor id of the unit
- UNIT_TEMPLATE_DEFAULTS[:level] = nil # suggested level
- UNIT_TEMPLATE_DEFAULTS[:level_mod] = nil # modifier for suggested level
- UNIT_TEMPLATE_DEFAULTS[:stars] = nil
- UNIT_TEMPLATE_DEFAULTS[:stars_mod] = nil
- UNIT_TEMPLATE_DEFAULTS[:param] = Hash.new(nil)
- UNIT_TEMPLATE_DEFAULTS[:param_mod] = Hash.new(1.0)
- UNIT_TEMPLATE_DEFAULTS[:death_switch] = nil # turns this switch *on* when unit dies
- UNIT_TEMPLATE_DEFAULTS[:tags] = []
- UNIT_TEMPLATE = Hash.new { |h1, k1| h1[k1] = Hash.new { |h2, k2|
- h2[k2] = Marshal.load(Marshal.dump(UNIT_TEMPLATE_DEFAULTS[k2]))
- }
- } # no touchy
- # Format is UNIT_TEMPLATE["designation"][:property] = value
- # designations are Case Sensitive
- # anything left nil or not included uses rules for procedural generation
- UNIT_TEMPLATE["testtroop"][:name] = "Rocky" # the name. if not set, will be pulled from a pool
- UNIT_TEMPLATE["testtroop"][:class_id] = 1 # the class ID of the unit. Use an array, and one will be randomly selected
- UNIT_TEMPLATE["testtroop"][:actor_id] = nil # the actor id of the unit. If set, all defaults will be based on this actor
- UNIT_TEMPLATE["testtroop"][:enemy_id] = nil # the enemy id of the unit. If set, all defaults will be based on this actor
- # if actor_id, class_id, or enemy_id are present with one or more of the others, preference goes to enemy_id > actor_id > class_id
- UNIT_TEMPLATE["testtroop"][:level] = nil # the suggested level of the unit. If not provided, use the squads level settings
- UNIT_TEMPLATE["testtroop"][:level_mod] = nil # add this value to the unit's level after all other calculations
- UNIT_TEMPLATE["testtroop"][:stars] = nil # if set, overrides the squads star level
- UNIT_TEMPLATE["testtroop"][:stars_mod] = nil # if set, adds to the units star level based on squad settings
- UNIT_TEMPLATE["testtroop"][:param][:atk] = 152 # atk param is set to 152
- # atk can be subbed for any recognized param
- UNIT_TEMPLATE["testtroop"][:param_mod][:def] = 2.0 # defense is double normal
- # def can be subbed for any recognized param
- UNIT_TEMPLATE["testtroop"][:tags] = []
- # tags - a list of tags. None exist yet, but plan on things like "boss"
- # expandable data field
- UNIT_TEMPLATE["testtroop"][:death_switch] = nil
- # turns this switch *on* when unit dies
- # can be used to trigger post battle death quotes
- UNIT_TEMPLATE["Wolfgar"][:name] = "Wolfgar"
- UNIT_TEMPLATE["Wolfgar"][:nickname] = "wolfgar"
- UNIT_TEMPLATE["Wolfgar"][:class_id] = 3
- UNIT_TEMPLATE["Wolfgar"][:stars] = 2
- UNIT_TEMPLATE["Wolfgar"][:level_mod] = 2
- UNIT_TEMPLATE["Wolfgar"][:param_mod][:atk] = 1.25
- UNIT_TEMPLATE["Barnabas"][:name] = "Barnabas"
- UNIT_TEMPLATE["Barnabas"][:nickname] = "barnabas"
- UNIT_TEMPLATE["Barnabas"][:class_id] = 4
- UNIT_TEMPLATE["Barnabas"][:stars] = 3
- UNIT_TEMPLATE["Barnabas"][:level_mod] = 3
- UNIT_TEMPLATE["Antares"][:name] = "Antares"
- UNIT_TEMPLATE["Antares"][:nickname] = "antares"
- UNIT_TEMPLATE["Antares"][:class_id] = 9
- UNIT_TEMPLATE["Antares"][:stars] = 5
- UNIT_TEMPLATE["Antares"][:level_mod] = 3
- UNIT_TEMPLATE["Diana"][:name] = "Diana"
- UNIT_TEMPLATE["Diana"][:nickname] = "diana"
- UNIT_TEMPLATE["Diana"][:class_id] = 66
- UNIT_TEMPLATE["Diana"][:stars] = 3
- UNIT_TEMPLATE["Diana"][:level_mod] = 5
- UNIT_TEMPLATE["Dirk"][:name] = "Dirk"
- UNIT_TEMPLATE["Dirk"][:nickname] = "dirk"
- UNIT_TEMPLATE["Dirk"][:class_id] = 18
- UNIT_TEMPLATE["Dirk"][:stars] = 3
- UNIT_TEMPLATE["Dirk"][:level_mod] = 2
- UNIT_TEMPLATE["Kuroda"][:name] = "Kuroda"
- UNIT_TEMPLATE["Kuroda"][:nickname] = "kuroda"
- UNIT_TEMPLATE["Kuroda"][:class_id] = 18
- UNIT_TEMPLATE["Kuroda"][:stars] = 5
- UNIT_TEMPLATE["Kuroda"][:level_mod] = 7
- UNIT_TEMPLATE["Kuroda"][:param_mod][:atk] = 1.5
- UNIT_TEMPLATE["Kuroda2"][:death_switch] = 592
- UNIT_TEMPLATE["Lysander"][:name] = "Lysander"
- UNIT_TEMPLATE["Lysander"][:nickname] = "lysander"
- UNIT_TEMPLATE["Lysander"][:class_id] = 67
- UNIT_TEMPLATE["Lysander"][:stars] = 5
- UNIT_TEMPLATE["Lysander"][:level_mod] = 1
- UNIT_TEMPLATE["Alexei"][:name] = "Alexei"
- UNIT_TEMPLATE["Alexei"][:nickname] = "alexei"
- UNIT_TEMPLATE["Alexei"][:class_id] = 9
- UNIT_TEMPLATE["Alexei"][:stars] = 3
- UNIT_TEMPLATE["Alexei"][:level_mod] = 2
- UNIT_TEMPLATE["Lothair"][:name] = "Lothair"
- UNIT_TEMPLATE["Lothair"][:nickname] = "lothair"
- UNIT_TEMPLATE["Lothair"][:class_id] = 11
- UNIT_TEMPLATE["Lothair"][:stars] = 3
- UNIT_TEMPLATE["Lothair"][:level_mod] = 10
- UNIT_TEMPLATE["Lothair"][:param_mod][:atk] = 0.6
- UNIT_TEMPLATE["Roland"][:name] = "Roland"
- UNIT_TEMPLATE["Roland"][:nickname] = "roland"
- UNIT_TEMPLATE["Roland"][:class_id] = 6
- UNIT_TEMPLATE["Roland"][:stars] = 1
- UNIT_TEMPLATE["Roland"][:level_mod] = 2
- UNIT_TEMPLATE["Beatrix"][:name] = "Beatrix"
- UNIT_TEMPLATE["Beatrix"][:nickname] = "beatrix"
- UNIT_TEMPLATE["Beatrix"][:class_id] = 69
- UNIT_TEMPLATE["Beatrix"][:stars] = 5
- UNIT_TEMPLATE["Beatrix"][:level_mod] = 12
- UNIT_TEMPLATE["Beatrix"][:param_mod][:mat] = 1.5
- UNIT_TEMPLATE["Trihan"][:name] = "Trihan"
- UNIT_TEMPLATE["Trihan"][:nickname] = "trihan"
- UNIT_TEMPLATE["Trihan"][:class_id] = 11
- UNIT_TEMPLATE["Trihan"][:stars] = 5
- UNIT_TEMPLATE["Trihan"][:level_mod] = 5
- UNIT_TEMPLATE["Trihan"][:param_mod][:mhp] = 1.5
- UNIT_TEMPLATE["Trihan"][:param_mod][:atk] = 1.5
- UNIT_TEMPLATE["Terenor"][:name] = "Terenor"
- UNIT_TEMPLATE["Terenor"][:nickname] = "terenor"
- UNIT_TEMPLATE["Terenor"][:class_id] = 11
- UNIT_TEMPLATE["Terenor"][:stars] = 1
- UNIT_TEMPLATE["Terenor"][:level_mod] = 8
- UNIT_TEMPLATE["Terenor"][:param_mod][:mhp] = 0.75
- UNIT_TEMPLATE["Terenor"][:param_mod][:atk] = 0.5
- UNIT_TEMPLATE["Kuroda2"][:death_switch] = 530
- UNIT_TEMPLATE["Casamir"][:name] = "Casamir"
- UNIT_TEMPLATE["Casamir"][:nickname] = "casamir"
- UNIT_TEMPLATE["Casamir"][:class_id] = 9
- UNIT_TEMPLATE["Casamir"][:stars] = 1
- UNIT_TEMPLATE["Casamir"][:level_mod] = 15
- UNIT_TEMPLATE["Casamir"][:param_mod][:mhp] = 0.75
- UNIT_TEMPLATE["Casamir"][:param_mod][:atk] = 0.25
- UNIT_TEMPLATE["Randolf"][:name] = "Randolf"
- UNIT_TEMPLATE["Randolf"][:nickname] = "randolf"
- UNIT_TEMPLATE["Randolf"][:class_id] = 3
- UNIT_TEMPLATE["Randolf"][:stars] = 1
- UNIT_TEMPLATE["Randolf"][:level_mod] = 1
- UNIT_TEMPLATE["Hand1"][:name] = "Hand of Zanatus"
- UNIT_TEMPLATE["Hand1"][:nickname] = "hoz"
- UNIT_TEMPLATE["Hand1"][:class_id] = 72
- UNIT_TEMPLATE["Hand1"][:stars] = 5
- UNIT_TEMPLATE["Hand1"][:level_mod] = 10
- UNIT_TEMPLATE["Hand1"][:param_mod][:mhp] = 2.0
- UNIT_TEMPLATE["Hand1"][:param_mod][:atk] = 1.5
- UNIT_TEMPLATE["Geoffrey"][:name] = "Geoffrey"
- UNIT_TEMPLATE["Geoffrey"][:nickname] = "geoffrey"
- UNIT_TEMPLATE["Geoffrey"][:class_id] = 9
- UNIT_TEMPLATE["Geoffrey"][:stars] = 1
- UNIT_TEMPLATE["Geoffrey"][:level_mod] = 1
- UNIT_TEMPLATE["Gwynneth"][:name] = "Gwynneth"
- UNIT_TEMPLATE["Gwynneth"][:nickname] = "gwynneth"
- UNIT_TEMPLATE["Gwynneth"][:class_id] = 13
- UNIT_TEMPLATE["Gwynneth"][:stars] = 5
- UNIT_TEMPLATE["Gwynneth"][:level_mod] = 3
- UNIT_TEMPLATE["Gwynneth"][:param_mod][:mhp] = 1.5
- UNIT_TEMPLATE["Gwynneth"][:param_mod][:atk] = 1.5
- UNIT_TEMPLATE["Ragavi"][:name] = "Ragavi"
- UNIT_TEMPLATE["Ragavi"][:nickname] = "ragavi"
- UNIT_TEMPLATE["Ragavi"][:class_id] = 92
- UNIT_TEMPLATE["Ragavi"][:stars] = 5
- UNIT_TEMPLATE["Ragavi"][:level_mod] = 5
- UNIT_TEMPLATE["Ragavi"][:param_mod][:agi] = 1.5
- UNIT_TEMPLATE["Ragavi"][:param_mod][:atk] = 1.5
- UNIT_TEMPLATE["Cyrus"][:name] = "Cyrus"
- UNIT_TEMPLATE["Cyrus"][:nickname] = "cyrus"
- UNIT_TEMPLATE["Cyrus"][:class_id] = 39
- UNIT_TEMPLATE["Cyrus"][:stars] = 3
- UNIT_TEMPLATE["Cyrus"][:level_mod] = 2
- UNIT_TEMPLATE["Trihan2"][:name] = "Trihan"
- UNIT_TEMPLATE["Trihan2"][:name] = "trihan"
- UNIT_TEMPLATE["Trihan2"][:class_id] = 11
- UNIT_TEMPLATE["Trihan2"][:stars] = 5
- UNIT_TEMPLATE["Trihan2"][:level_mod] = 2
- UNIT_TEMPLATE["Trihan2"][:param_mod][:mhp] = 1.5
- UNIT_TEMPLATE["Trihan2"][:param_mod][:atk] = 1.25
- UNIT_TEMPLATE["Casamir2"][:name] = "Casamir"
- UNIT_TEMPLATE["Casamir2"][:nickname] = "casamir"
- UNIT_TEMPLATE["Casamir2"][:class_id] = 9
- UNIT_TEMPLATE["Casamir2"][:stars] = 1
- UNIT_TEMPLATE["Casamir2"][:level_mod] = 5
- UNIT_TEMPLATE["Casamir2"][:param_mod][:mhp] = 0.75
- UNIT_TEMPLATE["Casamir2"][:param_mod][:atk] = 0.25
- UNIT_TEMPLATE["Lysander2"][:name] = "Lysander"
- UNIT_TEMPLATE["Lysander2"][:nickname] = "lysander"
- UNIT_TEMPLATE["Lysander2"][:class_id] = 68
- UNIT_TEMPLATE["Lysander2"][:stars] = 5
- UNIT_TEMPLATE["Lysander2"][:level_mod] = 0
- UNIT_TEMPLATE["Lysander2"][:death_switch] = 570
- UNIT_TEMPLATE["Jules"][:name] = "Jules"
- UNIT_TEMPLATE["Jules"][:nickname] = "jules"
- UNIT_TEMPLATE["Jules"][:class_id] = 24
- UNIT_TEMPLATE["Jules"][:stars] = 3
- UNIT_TEMPLATE["Jules"][:level_mod] = 0
- UNIT_TEMPLATE["Jules"][:death_switch] = 565
- UNIT_TEMPLATE["Narima2"][:name] = "Narima"
- UNIT_TEMPLATE["Narima2"][:nickname] = "narima"
- UNIT_TEMPLATE["Narima2"][:class_id] = 24
- UNIT_TEMPLATE["Narima2"][:stars] = 2
- UNIT_TEMPLATE["Narima2"][:level_mod] = 0
- UNIT_TEMPLATE["Narima2"][:death_switch] = 564
- UNIT_TEMPLATE["Sybil"][:name] = "Sybil"
- UNIT_TEMPLATE["Sybil"][:nickname] = "sybil"
- UNIT_TEMPLATE["Sybil"][:class_id] = 12
- UNIT_TEMPLATE["Sybil"][:stars] = 2
- UNIT_TEMPLATE["Sybil"][:level_mod] = 0
- UNIT_TEMPLATE["Sybil"][:death_switch] = 566
- UNIT_TEMPLATE["Abigayle"][:name] = "Abigayle"
- UNIT_TEMPLATE["Abigayle"][:nickname] = "abigayle"
- UNIT_TEMPLATE["Abigayle"][:class_id] = 30
- UNIT_TEMPLATE["Abigayle"][:stars] = 2
- UNIT_TEMPLATE["Abigayle"][:level_mod] = 0
- UNIT_TEMPLATE["Abigayle"][:death_switch] = 632
- UNIT_TEMPLATE["Kuroda2"][:name] = "Kuroda"
- UNIT_TEMPLATE["Kuroda2"][:nickname] = "kuroda"
- UNIT_TEMPLATE["Kuroda2"][:class_id] = 18
- UNIT_TEMPLATE["Kuroda2"][:stars] = 5
- UNIT_TEMPLATE["Kuroda2"][:level_mod] = 2
- UNIT_TEMPLATE["Kuroda2"][:param_mod][:atk] = 1.5
- UNIT_TEMPLATE["Kuroda2"][:param_mod][:agi] = 1.5
- UNIT_TEMPLATE["Kuroda2"][:death_switch] = 568
- UNIT_TEMPLATE["Jebediah"][:name] = "Jebediah"
- UNIT_TEMPLATE["Jebediah"][:nickname] = "jebediah"
- UNIT_TEMPLATE["Jebediah"][:class_id] = 39
- UNIT_TEMPLATE["Jebediah"][:stars] = 4
- UNIT_TEMPLATE["Jebediah"][:level_mod] = 2
- UNIT_TEMPLATE["Jebediah"][:param_mod][:mat] = 2.0
- UNIT_TEMPLATE["Jebediah"][:death_switch] = 567
- UNIT_TEMPLATE["Kalytos"][:name] = "Kalytos"
- UNIT_TEMPLATE["Kalytos"][:nickname] = "kalytos"
- UNIT_TEMPLATE["Kalytos"][:class_id] = 56
- UNIT_TEMPLATE["Kalytos"][:stars] = 5
- UNIT_TEMPLATE["Kalytos"][:level_mod] = 3
- UNIT_TEMPLATE["Kalytos"][:param_mod][:mat] = 1.5
- UNIT_TEMPLATE["Kalytos"][:param_mod][:atk] = 1.5
- UNIT_TEMPLATE["Kalytos"][:param_mod][:mhp] = 2.0
- UNIT_TEMPLATE["Edelia"][:name] = "Edelia"
- UNIT_TEMPLATE["Edelia"][:nickname] = "edelia"
- UNIT_TEMPLATE["Edelia"][:class_id] = 30
- UNIT_TEMPLATE["Edelia"][:stars] = 2
- UNIT_TEMPLATE["Edelia"][:level_mod] = 2
- UNIT_TEMPLATE["Edelia"][:death_switch] = 559
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement