SHARE
TWEET

Untitled

a guest Feb 21st, 2020 102 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # player unit setup
  2. # pre-setup for any character to be added to a player squad
  3. # whereas this step is optional for enemy squads, it is necessary for player squads
  4. # squads in a players collection must consist of units in a players collection
  5.  
  6. # *new* added command to template unit from this page and add it to the collection
  7. # or show or hide single units
  8. # use collection ids higher than those below tempalting units like this to avoid overlapping
  9. # don't ever reuse collection ids
  10. # with system added units, ids are over 1000 to avoid conflict
  11. # removed units keep their ids
  12. # if you tempalte a new unit over an old id, the old unit will be replaced!
  13.  
  14. # create_player_unit(template_id, collection_id, consume_resources?)
  15. # creates a unit in the player collection with template id at collection id
  16. # template_id is the designator for the template (below) to create the unit from
  17. # collection_id should be unique from those in PLAYER_COLLECTION_INIT
  18. # (unless replacing a unit) and less than 1000
  19. # consume_resources? is a true or false
  20. # if true, existing player resources are consumed when unit enters
  21. # if false, generates additional resources to accomodate when it enters
  22.  
  23. # added simplified commands for showing/hiding a single unit by their ID
  24. # hide_player_unit(collection_id)
  25. # unhide_player_unit(collection_id)
  26.  
  27.  
  28. # transform_player_unit(collection_id, template_id, keep_equip?, keep_level?, keep_class?)
  29. # transforms the unit at the collection id into a new one
  30. # allows to keep level, equip, or class
  31. # rest is replaced by templated stats
  32.  
  33. # set_army_leader(collection_id)
  34. # character becomes the leader of the player's faction
  35. #
  36.  
  37. # remove_player_unit(collection_id)
  38. # hides unit in collection and strips their equipment and resources first
  39. # (used for those not coming back but you want to reimburse player)
  40.  
  41. module UnitSetup
  42.   # yes, this is a shared namespace
  43.  
  44.  
  45.   PLAYER_UNIT_TEMPLATE_DEFAULTS = Hash.new { |h, k| h[k] = Hash.new } # no touchy
  46.  
  47.   PLAYER_UNIT_TEMPLATE_DEFAULTS[:name] = nil # the name of the unit
  48.   PLAYER_UNIT_TEMPLATE_DEFAULTS[:nickname] = nil
  49.   PLAYER_UNIT_TEMPLATE_DEFAULTS[:class_id] = nil # the class id of the unit
  50.   PLAYER_UNIT_TEMPLATE_DEFAULTS[:actor_id] = nil # the actor id of the unit
  51.   PLAYER_UNIT_TEMPLATE_DEFAULTS[:level] = nil # suggested level
  52.   PLAYER_UNIT_TEMPLATE_DEFAULTS[:level_mod] = nil
  53.   PLAYER_UNIT_TEMPLATE_DEFAULTS[:param] = Hash.new(nil)
  54.   PLAYER_UNIT_TEMPLATE_DEFAULTS[:param_mod] = Hash.new(1.0)
  55.   PLAYER_UNIT_TEMPLATE_DEFAULTS[:death_switch] = nil # turns this switch *on* when unit dies
  56.   PLAYER_UNIT_TEMPLATE_DEFAULTS[:tags] = []
  57.   PLAYER_UNIT_TEMPLATE_DEFAULTS[:identifier] = nil
  58.   PLAYER_UNIT_TEMPLATE_DEFAULTS[:hidden] = true
  59.   PLAYER_UNIT_TEMPLATE_DEFAULTS[:fixed] = false # a fixed unit cannot be moved
  60.  
  61.   PLAYER_UNIT_TEMPLATE = Hash.new { |h1, k1| h1[k1] = Hash.new { |h2, k2|
  62.   h2[k2] = Marshal.load(Marshal.dump(PLAYER_UNIT_TEMPLATE_DEFAULTS[k2]))
  63.   }
  64.   }  # no touchy
  65.  
  66.  
  67.   # Format is PLAYER_UNIT_TEMPLATE[:designation][:property] = value
  68.   # designations for this setup still Case Sensitive
  69.   # how this works differently than enemy unit templating:
  70.   # either class id or actor id must be set
  71.   # class id can be an array (remember, rolled at start of game)
  72.   # if level and level mod are not set, the level is based
  73.   # off the level of the *leader* of the squad they first appear in
  74.   # if neither are set,  they end up level 1
  75.   # unique characters should based off actor_ids
  76.   #
  77.   # hidden category added because most squads start not in the collection
  78.   # *note* if a squad is hidden or unhidden, *all* units within follow suit
  79.   # identifier category added to track units that came in with
  80.   # a certain squad, just in case
  81.  
  82.   # most importatnly, when templating is done, player units need to be
  83.   # added to the player collection (see PLAYER_COLLECTION_INIT)
  84.   # before they can be added to a squad
  85.  
  86.  
  87.   PLAYER_UNIT_TEMPLATE["protag"][:name] = nil
  88.   # in game name
  89.   # if not set, and pulled from a class id, random will be assigned
  90.   # if pulled from actor id, the actor's name will be used
  91.   PLAYER_UNIT_TEMPLATE["protag"][:class_id] = nil # the class ID of the unit.  
  92.   # Use an array, and one will be randomly selected
  93.   # actor_id takes precedence
  94.   PLAYER_UNIT_TEMPLATE["protag"][:actor_id] = 8
  95.   # actor id of the unit
  96.   # use for special characters
  97.  
  98.   PLAYER_UNIT_TEMPLATE["protag"][:level] = nil
  99.   # start at this level
  100.   # if not set, and actor_id is set, use their starting level
  101.   # if not set and class_id is set, use the leaders level when they appear
  102.   # (squad leaders level if they appear in squad, opinion leader's level if they
  103.   # appear in collection)
  104.   PLAYER_UNIT_TEMPLATE["protag"][:level_mod] = nil  
  105.   # add this value to the unit's level after all other calculations
  106.   PLAYER_UNIT_TEMPLATE["protag"][:tags] = []
  107.   # if any special tags need to be added that aren't handled elsewhere
  108.   # put them here
  109.   PLAYER_UNIT_TEMPLATE["protag"][:identifier] = :protag_squad
  110.   # just noting that this starts in protag's squad (because it is protag)
  111.   PLAYER_UNIT_TEMPLATE["protag"][:hidden] = false
  112.   # this one starts in the player army
  113.  
  114.   # zelos pre-setup
  115.   PLAYER_UNIT_TEMPLATE["zelos"][:name] = nil
  116.   PLAYER_UNIT_TEMPLATE["zelos"][:class_id] = nil
  117.   PLAYER_UNIT_TEMPLATE["zelos"][:actor_id] = 9  
  118.   PLAYER_UNIT_TEMPLATE["zelos"][:level] = nil
  119.   PLAYER_UNIT_TEMPLATE["zelos"][:level_mod] = nil  
  120.   PLAYER_UNIT_TEMPLATE["zelos"][:tags] = []
  121.   PLAYER_UNIT_TEMPLATE["zelos"][:identifier] = :zelos_squad
  122.   PLAYER_UNIT_TEMPLATE["zelos"][:hidden] = false
  123.  
  124.   PLAYER_UNIT_TEMPLATE["fighter1"][:name] = nil
  125.   PLAYER_UNIT_TEMPLATE["fighter1"][:class_id] = 2
  126.   PLAYER_UNIT_TEMPLATE["fighter1"][:actor_id] = nil  
  127.   PLAYER_UNIT_TEMPLATE["fighter1"][:level] = 1
  128.   PLAYER_UNIT_TEMPLATE["fighter1"][:level_mod] = nil
  129.   PLAYER_UNIT_TEMPLATE["fighter1"][:tags] = []
  130.   PLAYER_UNIT_TEMPLATE["fighter1"][:identifier] = :protag_squad
  131.   PLAYER_UNIT_TEMPLATE["fighter1"][:hidden] = false
  132.  
  133.   PLAYER_UNIT_TEMPLATE["medic1"][:name] = nil
  134.   PLAYER_UNIT_TEMPLATE["medic1"][:class_id] = 28
  135.   PLAYER_UNIT_TEMPLATE["medic1"][:actor_id] = nil  
  136.   PLAYER_UNIT_TEMPLATE["medic1"][:level] = 1
  137.   PLAYER_UNIT_TEMPLATE["medic1"][:level_mod] = nil
  138.   PLAYER_UNIT_TEMPLATE["medic1"][:tags] = []
  139.   PLAYER_UNIT_TEMPLATE["medic1"][:identifier] = :protag_squad
  140.   PLAYER_UNIT_TEMPLATE["medic1"][:hidden] = false    
  141.  
  142.   PLAYER_UNIT_TEMPLATE["bowman1"][:name] = nil
  143.   PLAYER_UNIT_TEMPLATE["bowman1"][:class_id] = 22
  144.   PLAYER_UNIT_TEMPLATE["bowman1"][:actor_id] = nil  
  145.   PLAYER_UNIT_TEMPLATE["bowman1"][:level] = 1
  146.   PLAYER_UNIT_TEMPLATE["bowman1"][:level_mod] = nil
  147.   PLAYER_UNIT_TEMPLATE["bowman1"][:tags] = []
  148.   PLAYER_UNIT_TEMPLATE["bowman1"][:identifier] = :zelos_squad
  149.   PLAYER_UNIT_TEMPLATE["bowman1"][:hidden] = false
  150.  
  151.   PLAYER_UNIT_TEMPLATE["jules1"][:name] = nil
  152.   PLAYER_UNIT_TEMPLATE["jules1"][:class_id] = nil
  153.   PLAYER_UNIT_TEMPLATE["jules1"][:actor_id] = 10  
  154.   PLAYER_UNIT_TEMPLATE["jules1"][:level] = nil
  155.   PLAYER_UNIT_TEMPLATE["jules1"][:level_mod] = nil  
  156.   PLAYER_UNIT_TEMPLATE["jules1"][:tags] = []
  157.   PLAYER_UNIT_TEMPLATE["jules1"][:identifier] = :jules_squad
  158.   PLAYER_UNIT_TEMPLATE["jules1"][:hidden] = true  
  159.  
  160.   PLAYER_UNIT_TEMPLATE["bowman2"][:name] = nil
  161.   PLAYER_UNIT_TEMPLATE["bowman2"][:class_id] = 22
  162.   PLAYER_UNIT_TEMPLATE["bowman2"][:actor_id] = nil  
  163.   PLAYER_UNIT_TEMPLATE["bowman2"][:level] = 1
  164.   PLAYER_UNIT_TEMPLATE["bowman2"][:level_mod] = nil
  165.   PLAYER_UNIT_TEMPLATE["bowman2"][:tags] = []
  166.   PLAYER_UNIT_TEMPLATE["bowman2"][:identifier] = :jules_squad
  167.   PLAYER_UNIT_TEMPLATE["bowman2"][:hidden] = true
  168.    
  169.   PLAYER_UNIT_TEMPLATE["fighter2"][:name] = nil
  170.   PLAYER_UNIT_TEMPLATE["fighter2"][:class_id] = 2
  171.   PLAYER_UNIT_TEMPLATE["fighter2"][:actor_id] = nil  
  172.   PLAYER_UNIT_TEMPLATE["fighter2"][:level] = 1
  173.   PLAYER_UNIT_TEMPLATE["fighter2"][:level_mod] = nil
  174.   PLAYER_UNIT_TEMPLATE["fighter2"][:tags] = []
  175.   PLAYER_UNIT_TEMPLATE["fighter2"][:identifier] = :sybil_squad
  176.   PLAYER_UNIT_TEMPLATE["fighter2"][:hidden] = true
  177.  
  178.   PLAYER_UNIT_TEMPLATE["sybil1"][:name] = nil
  179.   PLAYER_UNIT_TEMPLATE["sybil1"][:class_id] = nil
  180.   PLAYER_UNIT_TEMPLATE["sybil1"][:actor_id] = 11  
  181.   PLAYER_UNIT_TEMPLATE["sybil1"][:level] = nil
  182.   PLAYER_UNIT_TEMPLATE["sybil1"][:level_mod] = nil  
  183.   PLAYER_UNIT_TEMPLATE["sybil1"][:tags] = []
  184.   PLAYER_UNIT_TEMPLATE["sybil1"][:identifier] = :sybil_squad
  185.   PLAYER_UNIT_TEMPLATE["sybil1"][:hidden] = true  
  186.  
  187.   PLAYER_UNIT_TEMPLATE["barnabas1"][:name] = nil
  188.   PLAYER_UNIT_TEMPLATE["barnabas1"][:class_id] = nil  
  189.   PLAYER_UNIT_TEMPLATE["barnabas1"][:actor_id] = 12  
  190.   PLAYER_UNIT_TEMPLATE["barnabas1"][:level] = nil
  191.   PLAYER_UNIT_TEMPLATE["barnabas1"][:level_mod] = nil  
  192.   PLAYER_UNIT_TEMPLATE["barnabas1"][:tags] = []
  193.   PLAYER_UNIT_TEMPLATE["barnabas1"][:identifier] = :barnabas_squad
  194.   PLAYER_UNIT_TEMPLATE["barnabas1"][:hidden] = true    
  195.  
  196.   PLAYER_UNIT_TEMPLATE["scoutbarn"][:name] = nil
  197.   PLAYER_UNIT_TEMPLATE["scoutbarn"][:class_id] = 19
  198.   PLAYER_UNIT_TEMPLATE["scoutbarn"][:actor_id] = nil  
  199.   PLAYER_UNIT_TEMPLATE["scoutbarn"][:level] = 3
  200.   PLAYER_UNIT_TEMPLATE["scoutbarn"][:level_mod] = nil
  201.   PLAYER_UNIT_TEMPLATE["scoutbarn"][:tags] = []
  202.   PLAYER_UNIT_TEMPLATE["scoutbarn"][:identifier] = :barnabas_squad
  203.   PLAYER_UNIT_TEMPLATE["scoutbarn"][:hidden] = true  
  204.  
  205.   PLAYER_UNIT_TEMPLATE["stefan1"][:name] = nil
  206.   PLAYER_UNIT_TEMPLATE["stefan1"][:class_id] = nil  
  207.   PLAYER_UNIT_TEMPLATE["stefan1"][:actor_id] = 14  
  208.   PLAYER_UNIT_TEMPLATE["stefan1"][:level] = nil
  209.   PLAYER_UNIT_TEMPLATE["stefan1"][:level_mod] = nil  
  210.   PLAYER_UNIT_TEMPLATE["stefan1"][:tags] = []
  211.   PLAYER_UNIT_TEMPLATE["stefan1"][:identifier] = :stefan_squad
  212.   PLAYER_UNIT_TEMPLATE["stefan1"][:hidden] = true  
  213.  
  214.   PLAYER_UNIT_TEMPLATE["diana1"][:name] = nil
  215.   PLAYER_UNIT_TEMPLATE["diana1"][:class_id] = nil
  216.   PLAYER_UNIT_TEMPLATE["diana1"][:actor_id] = 13  
  217.   PLAYER_UNIT_TEMPLATE["diana1"][:level] = nil
  218.   PLAYER_UNIT_TEMPLATE["diana1"][:level_mod] = nil  
  219.   PLAYER_UNIT_TEMPLATE["diana1"][:tags] = []
  220.   PLAYER_UNIT_TEMPLATE["diana1"][:identifier] = :diana_squad
  221.   PLAYER_UNIT_TEMPLATE["diana1"][:hidden] = true    
  222.  
  223.   PLAYER_UNIT_TEMPLATE["abigayle1"][:name] = nil
  224.   PLAYER_UNIT_TEMPLATE["abigayle1"][:class_id] = nil
  225.   PLAYER_UNIT_TEMPLATE["abigayle1"][:actor_id] = 15  
  226.   PLAYER_UNIT_TEMPLATE["abigayle1"][:level] = nil
  227.   PLAYER_UNIT_TEMPLATE["abigayle1"][:level_mod] = nil  
  228.   PLAYER_UNIT_TEMPLATE["abigayle1"][:tags] = []
  229.   PLAYER_UNIT_TEMPLATE["abigayle1"][:identifier] = :abigayle_squad
  230.   PLAYER_UNIT_TEMPLATE["abigayle1"][:hidden] = true
  231.  
  232.   PLAYER_UNIT_TEMPLATE["acolyteabi"][:name] = nil
  233.   PLAYER_UNIT_TEMPLATE["acolyteabi"][:class_id] = 93
  234.   PLAYER_UNIT_TEMPLATE["acolyteabi"][:actor_id] = nil  
  235.   PLAYER_UNIT_TEMPLATE["acolyteabi"][:level] = nil
  236.   PLAYER_UNIT_TEMPLATE["acolyteabi"][:level_mod] = nil
  237.   PLAYER_UNIT_TEMPLATE["acolyteabi"][:tags] = []
  238.   PLAYER_UNIT_TEMPLATE["acolyteabi"][:identifier] = :abigayle_squad
  239.   PLAYER_UNIT_TEMPLATE["acolyteabi"][:hidden] = true    
  240.  
  241.   PLAYER_UNIT_TEMPLATE["apprenticeabi"][:name] = nil
  242.   PLAYER_UNIT_TEMPLATE["apprenticeabi"][:class_id] = 33
  243.   PLAYER_UNIT_TEMPLATE["apprenticeabi"][:actor_id] = nil  
  244.   PLAYER_UNIT_TEMPLATE["apprenticeabi"][:level] = nil
  245.   PLAYER_UNIT_TEMPLATE["apprenticeabi"][:level_mod] = nil
  246.   PLAYER_UNIT_TEMPLATE["apprenticeabi"][:tags] = []
  247.   PLAYER_UNIT_TEMPLATE["apprenticeabi"][:identifier] = :abigayle_squad
  248.   PLAYER_UNIT_TEMPLATE["apprenticeabi"][:hidden] = true  
  249.  
  250.   PLAYER_UNIT_TEMPLATE["bowmanabi"][:name] = nil
  251.   PLAYER_UNIT_TEMPLATE["bowmanabi"][:class_id] = 22
  252.   PLAYER_UNIT_TEMPLATE["bowmanabi"][:actor_id] = nil  
  253.   PLAYER_UNIT_TEMPLATE["bowmanabi"][:level] = nil
  254.   PLAYER_UNIT_TEMPLATE["bowmanabi"][:level_mod] = nil
  255.   PLAYER_UNIT_TEMPLATE["bowmanabi"][:tags] = []
  256.   PLAYER_UNIT_TEMPLATE["bowmanabi"][:identifier] = :abigayle_squad
  257.   PLAYER_UNIT_TEMPLATE["bowmanabi"][:hidden] = true
  258.  
  259.   PLAYER_UNIT_TEMPLATE["narima1"][:name] = nil
  260.   PLAYER_UNIT_TEMPLATE["narima1"][:class_id] = nil
  261.   PLAYER_UNIT_TEMPLATE["narima1"][:actor_id] = 16  
  262.   PLAYER_UNIT_TEMPLATE["narima1"][:level] = nil
  263.   PLAYER_UNIT_TEMPLATE["narima1"][:level_mod] = nil
  264.   PLAYER_UNIT_TEMPLATE["narima1"][:tags] = []
  265.   PLAYER_UNIT_TEMPLATE["narima1"][:identifier] = :narima_squad
  266.   PLAYER_UNIT_TEMPLATE["narima1"][:hidden] = true  
  267.  
  268.   PLAYER_UNIT_TEMPLATE["raskuja1"][:name] = nil
  269.   PLAYER_UNIT_TEMPLATE["raskuja1"][:class_id] = nil
  270.   PLAYER_UNIT_TEMPLATE["raskuja1"][:actor_id] = 17  
  271.   PLAYER_UNIT_TEMPLATE["raskuja1"][:level] = nil
  272.   PLAYER_UNIT_TEMPLATE["raskuja1"][:level_mod] = nil
  273.   PLAYER_UNIT_TEMPLATE["raskuja1"][:tags] = []
  274.   PLAYER_UNIT_TEMPLATE["raskuja1"][:identifier] = :raskuja_squad
  275.   PLAYER_UNIT_TEMPLATE["raskuja1"][:hidden] = true  
  276.  
  277.   PLAYER_UNIT_TEMPLATE["xbowraskuja"][:name] = nil
  278.   PLAYER_UNIT_TEMPLATE["xbowraskuja"][:class_id] = 41
  279.   PLAYER_UNIT_TEMPLATE["xbowraskuja"][:actor_id] = nil  
  280.   PLAYER_UNIT_TEMPLATE["xbowraskuja"][:level] = nil
  281.   PLAYER_UNIT_TEMPLATE["xbowraskuja"][:level_mod] = nil
  282.   PLAYER_UNIT_TEMPLATE["xbowraskuja"][:tags] = []
  283.   PLAYER_UNIT_TEMPLATE["xbowraskuja"][:identifier] = :raskuja_squad
  284.   PLAYER_UNIT_TEMPLATE["xbowraskuja"][:hidden] = true
  285.  
  286.   PLAYER_UNIT_TEMPLATE["skirmraskuja"][:name] = nil
  287.   PLAYER_UNIT_TEMPLATE["skirmraskuja"][:class_id] = 15
  288.   PLAYER_UNIT_TEMPLATE["skirmraskuja"][:actor_id] = nil  
  289.   PLAYER_UNIT_TEMPLATE["skirmraskuja"][:level] = nil
  290.   PLAYER_UNIT_TEMPLATE["skirmraskuja"][:level_mod] = nil
  291.   PLAYER_UNIT_TEMPLATE["skirmraskuja"][:tags] = []
  292.   PLAYER_UNIT_TEMPLATE["skirmraskuja"][:identifier] = :raskuja_squad
  293.   PLAYER_UNIT_TEMPLATE["skirmraskuja"][:hidden] = true  
  294.  
  295.   PLAYER_UNIT_TEMPLATE["lysander1"][:name] = nil
  296.   PLAYER_UNIT_TEMPLATE["lysander1"][:class_id] = nil
  297.   PLAYER_UNIT_TEMPLATE["lysander1"][:actor_id] = 18  
  298.   PLAYER_UNIT_TEMPLATE["lysander1"][:level] = nil
  299.   PLAYER_UNIT_TEMPLATE["lysander1"][:level_mod] = nil
  300.   PLAYER_UNIT_TEMPLATE["lysander1"][:tags] = []
  301.   PLAYER_UNIT_TEMPLATE["lysander1"][:identifier] = :lysander_squad
  302.   PLAYER_UNIT_TEMPLATE["lysander1"][:hidden] = true  
  303.  
  304.   PLAYER_UNIT_TEMPLATE["gunnerlysander"][:name] = nil
  305.   PLAYER_UNIT_TEMPLATE["gunnerlysander"][:class_id] = 42
  306.   PLAYER_UNIT_TEMPLATE["gunnerlysander"][:actor_id] = nil  
  307.   PLAYER_UNIT_TEMPLATE["gunnerlysander"][:level] = nil
  308.   PLAYER_UNIT_TEMPLATE["gunnerlysander"][:level_mod] = nil
  309.   PLAYER_UNIT_TEMPLATE["gunnerlysander"][:tags] = []
  310.   PLAYER_UNIT_TEMPLATE["gunnerlysander"][:identifier] = :lysander_squad
  311.   PLAYER_UNIT_TEMPLATE["gunnerlysander"][:hidden] = true  
  312.  
  313.   PLAYER_UNIT_TEMPLATE["spearlysander"][:name] = nil
  314.   PLAYER_UNIT_TEMPLATE["spearlysander"][:class_id] = 4
  315.   PLAYER_UNIT_TEMPLATE["spearlysander"][:actor_id] = nil  
  316.   PLAYER_UNIT_TEMPLATE["spearlysander"][:level] = nil
  317.   PLAYER_UNIT_TEMPLATE["spearlysander"][:level_mod] = nil
  318.   PLAYER_UNIT_TEMPLATE["spearlysander"][:tags] = []
  319.   PLAYER_UNIT_TEMPLATE["spearlysander"][:identifier] = :lysander_squad
  320.   PLAYER_UNIT_TEMPLATE["spear1ysander"][:hidden] = true
  321.  
  322.   PLAYER_UNIT_TEMPLATE["jaromir"][:name] = nil
  323.   PLAYER_UNIT_TEMPLATE["jaromir"][:class_id] = nil
  324.   PLAYER_UNIT_TEMPLATE["jaromir"][:actor_id] = 19  
  325.   PLAYER_UNIT_TEMPLATE["jaromir"][:level] = nil
  326.   PLAYER_UNIT_TEMPLATE["jaromir"][:level_mod] = nil
  327.   PLAYER_UNIT_TEMPLATE["jaromir"][:tags] = []
  328.   PLAYER_UNIT_TEMPLATE["jaromir"][:identifier] = :jaromir_squad
  329.   PLAYER_UNIT_TEMPLATE["jaromir"][:hidden] = true  
  330.  
  331.   PLAYER_UNIT_TEMPLATE["jaromirsoldier"][:name] = nil
  332.   PLAYER_UNIT_TEMPLATE["jaromirsoldier"][:class_id] = 3
  333.   PLAYER_UNIT_TEMPLATE["jaromirsoldier"][:actor_id] = nil  
  334.   PLAYER_UNIT_TEMPLATE["jaromirsoldier"][:level] = nil
  335.   PLAYER_UNIT_TEMPLATE["jaromirsoldier"][:level_mod] = nil
  336.   PLAYER_UNIT_TEMPLATE["jaromirsoldier"][:tags] = []
  337.   PLAYER_UNIT_TEMPLATE["jaromirsoldier"][:identifier] = :jaromir_squad
  338.   PLAYER_UNIT_TEMPLATE["jaromirsoldier"][:hidden] = true  
  339.  
  340.   PLAYER_UNIT_TEMPLATE["jaromirpriestess"][:name] = nil
  341.   PLAYER_UNIT_TEMPLATE["jaromirpriestess"][:class_id] = 29
  342.   PLAYER_UNIT_TEMPLATE["jaromirpriestess"][:actor_id] = nil  
  343.   PLAYER_UNIT_TEMPLATE["jaromirpriestess"][:level] = nil
  344.   PLAYER_UNIT_TEMPLATE["jaromirpriestess"][:level_mod] = nil
  345.   PLAYER_UNIT_TEMPLATE["jaromirpriestess"][:tags] = []
  346.   PLAYER_UNIT_TEMPLATE["jaromirpriestess"][:identifier] = :jaromir_squad
  347.   PLAYER_UNIT_TEMPLATE["jaromirpriestess"][:hidden] = true  
  348.    
  349.   PLAYER_UNIT_TEMPLATE["beatrixplayer"][:name] = nil
  350.   PLAYER_UNIT_TEMPLATE["beatrixplayer"][:class_id] = nil
  351.   PLAYER_UNIT_TEMPLATE["beatrixplayer"][:actor_id] = 20  
  352.   PLAYER_UNIT_TEMPLATE["beatrixplayer"][:level] = nil
  353.   PLAYER_UNIT_TEMPLATE["beatrixplayer"][:level_mod] = nil
  354.   PLAYER_UNIT_TEMPLATE["beatrixplayer"][:tags] = []
  355.   PLAYER_UNIT_TEMPLATE["beatrixplayer"][:identifier] = :beatrixplayer_squad
  356.   PLAYER_UNIT_TEMPLATE["beatrixplayer"][:hidden] = true  
  357.  
  358.   PLAYER_UNIT_TEMPLATE["edeliaplayer"][:name] = nil
  359.   PLAYER_UNIT_TEMPLATE["edeliaplayer"][:class_id] = nil
  360.   PLAYER_UNIT_TEMPLATE["edeliaplayer"][:actor_id] = 21  
  361.   PLAYER_UNIT_TEMPLATE["edeliaplayer"][:level] = nil
  362.   PLAYER_UNIT_TEMPLATE["edeliaplayer"][:level_mod] = nil
  363.   PLAYER_UNIT_TEMPLATE["edeliaplayer"][:tags] = []
  364.   PLAYER_UNIT_TEMPLATE["edeliaplayer"][:identifier] = :edeliaplayer_squad
  365.   PLAYER_UNIT_TEMPLATE["edeliaplayer"][:hidden] = true    
  366.  
  367.   PLAYER_UNIT_TEMPLATE["dkzelosplayer"][:name] = nil
  368.   PLAYER_UNIT_TEMPLATE["dkzelosplayer"][:class_id] = nil
  369.   PLAYER_UNIT_TEMPLATE["dkzelosplayer"][:actor_id] = 22  
  370.   PLAYER_UNIT_TEMPLATE["dkzelosplayer"][:level] = nil
  371.   PLAYER_UNIT_TEMPLATE["dkzelosplayer"][:level_mod] = nil
  372.   PLAYER_UNIT_TEMPLATE["dkzelosplayer"][:tags] = []
  373.   PLAYER_UNIT_TEMPLATE["dkzelosplayer"][:identifier] = :dkzelosplayer_squad
  374.   PLAYER_UNIT_TEMPLATE["dkzelosplayer"][:hidden] = true    
  375.  
  376.   PLAYER_UNIT_TEMPLATE["kurodaplayer"][:name] = nil
  377.   PLAYER_UNIT_TEMPLATE["kurodaplayer"][:class_id] = nil
  378.   PLAYER_UNIT_TEMPLATE["kurodaplayer"][:actor_id] = 24  
  379.   PLAYER_UNIT_TEMPLATE["kurodaplayer"][:level] = nil
  380.   PLAYER_UNIT_TEMPLATE["kurodaplayer"][:level_mod] = nil
  381.   PLAYER_UNIT_TEMPLATE["kurodaplayer"][:tags] = []
  382.   PLAYER_UNIT_TEMPLATE["kurodaplayer"][:identifier] = :kurodaplayer_squad
  383.   PLAYER_UNIT_TEMPLATE["kurodaplayer"][:hidden] = true  
  384.    
  385.  
  386.   PLAYER_COLLECTION_INIT = [ # opening bracket
  387.   # list all of player's initial collection here  
  388.   # don't forget a comma after every line
  389.  
  390.  
  391.   # their *position* within this initial collection is their collection ID
  392.   # even units that use a repeat template must have a unique id
  393.   # to be added to the squad
  394.   # you'll need this later to form squads
  395.   # anything that appears here *must* be first set up above
  396.   # note I am using fighter 1 three times
  397.   # this means as soon as the game starts, 3 fighters will be rolled
  398.   # their collection ids will be 2, 3, and 4
  399.   # they will be *different* fighters, but you reference them by collection id
  400.   # when forming player squads
  401.  
  402.   "protag", # id 0
  403.   "zelos", # id 1
  404.   "fighter1", # id 2
  405.   "fighter1", # id 3
  406.   "medic1", # id 4
  407.   "bowman1", # id 5
  408.   "bowman1", # id 6
  409.   "jules1", # id 7 - Jules CH1
  410.   "bowman2", # id 8 - Jules CH1
  411.   "bowman2", # id 9 - Jules CH1
  412.   "fighter2", # id 10 - Sybil CH1
  413.   "fighter2", # id 11 - Sybil CH1
  414.   "sybil1", # id 12 - Sybil CH1
  415.   "barnabas1", # id 13 - Barn CH2
  416.   "scoutbarn", # id 14 - Barn CH2
  417.   "scoutbarn", # id 15 - Barn CH2
  418.   "stefan", # id 16 - Stefan CH4
  419.   "diana", # id 17 - Diana CH4  
  420.   "abigayle", # id 18 - Abigayle CH5
  421.   "acolyteabi", # id 19 - Abigayle CH5
  422.   "acolyteabi", # id 20 - Abigayle CH5
  423.   "apprenticeabi", # id 21 - Abigayle CH5  
  424.   "bowmanabi", # id 22 - Abigayle CH5
  425.   "narima1", # id 23 - Narima CH7
  426.   "raskuja1", # id 24 - Raskuja CH8
  427.   "skirmraskuja", # id 25 - Raskuja CH8
  428.   "xbowraskuja", # id 26 - Raskuja CH8
  429.   "xbowraskuja", # id 27 - Raskuja CH8
  430.   "lysander1", # id 28 - Lysander CH9
  431.   "spearlysander", # id 29 - Lysander CH9
  432.   "spearlysander", # id 30 - Lysander CH9
  433.   "gunnerlysander", # id 31 - Lysander CH9
  434.   "gunnerlysander", # id 32 - Lysander CH9
  435.   "gunnerlysander", # id 33 - Lysander CH9
  436.   "jaromir", # id 34 - Jaromir CH19
  437.   "jaromirsoldier", # id 35 - Jaromir CH19
  438.   "jaromirsoldier", # id 36 - Jaromir CH19
  439.   "jaromirsoldier", # id 37 - Jaromir CH19
  440.   "jaromirpriestess", # id 38 - Jaromir CH19
  441.   "jaromirpriestess", # id 39 - Jaromir CH19
  442.   "beatrixplayer", # id 40 - Beatrix CH20
  443.   "edeliaplayer", # id 41 - Beatrix CH20
  444.   "dkezlosplayer", # id 42 - Beatrix CH30
  445.   "kurodaplayer", # id 43 - Beatrix CH30
  446.  
  447.   ] #closing bracket
  448.  
  449.  
  450.  
  451. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top