content stringlengths 5 1.05M |
|---|
--
-- packet-flows.lua
--
-- This script is a plugin for Wireshark and tshark. It displays a
-- set of the packet flows between a pair of hosts. Each port used
-- in the communication is included, along with the elapsed time from
-- the beginning of the packet capture until that particular packet
-- was sent.
--
-- This program will register a menu item in the Tools/GAWSEED menu.
--
-- Some debugging info may be written to a script-specific log file.
-- The filename is defined in the LOGFILE directory. Set it as desired.
--
-- Revision History
-- 1.0 Initival revision. 190120
--
--
-- Version information.
--
NAME = "packet-flows";
VERS = NAME .. " version: 1.0";
------------------------------------------------------------------------------
--
-- Ports we might be interested in.
--
PORT_FTP = 21
PORT_SSH = 22
PORT_TELNET = 23
PORT_SMTP = 25
PORT_TIME = 37
PORT_NAME = 42
PORT_WHOIS = 43
PORT_DNS = 53
PORT_TFTP = 69
PORT_HTTP = 80
PORT_POP2 = 109
PORT_POP3 = 110
PORT_SFTP = 115
PORT_NTP = 123
PORT_IMAP = 143
PORT_SNMP = 161
PORT_SNMPTRAP = 162
PORT_BGP = 179
PORT_IMAP3 = 220
PORT_LDAP = 389
PORT_HTTPS = 443
PORT_SYSLOG = 514
PORT_LDAPS = 636
PORT_FTPSDATA = 989
PORT_FTPS = 990
PORT_TELNETS = 992
PORT_IMAPS = 993
PORT_POP3S = 995
PORT_SSDP = 1900
--
-- Number-to-name translation table for ports. Others are added
-- in as numerics.
--
local ports = {}
ports[PORT_FTP] = 'ftp'
ports[PORT_SSH] = 'ssh'
ports[PORT_TELNET] = 'telnet'
ports[PORT_SMTP] = 'smtp'
ports[PORT_TIME] = 'time'
ports[PORT_NAME] = 'name'
ports[PORT_WHOIS] = 'whois'
ports[PORT_DNS] = 'dns'
ports[PORT_TFTP] = 'tftp'
ports[PORT_HTTP] = 'http'
ports[PORT_POP2] = 'pop2'
ports[PORT_POP3] = 'pop3'
ports[PORT_SFTP] = 'sftp'
ports[PORT_NTP] = 'ntp'
ports[PORT_IMAP] = 'imap'
ports[PORT_SNMP] = 'snmp'
ports[PORT_SNMPTRAP] = 'snmptrap'
ports[PORT_BGP] = 'bgp'
ports[PORT_IMAP3] = 'imap3'
ports[PORT_LDAP] = 'ldap'
ports[PORT_HTTPS] = 'https'
ports[PORT_SYSLOG] = 'syslog'
ports[PORT_LDAPS] = 'ldaps'
ports[PORT_FTPSDATA] = 'ftps-data'
ports[PORT_FTPS] = 'ftps'
ports[PORT_TELNETS] = 'telnets'
ports[PORT_IMAPS] = 'imaps'
ports[PORT_POP3S] = 'pop3s'
ports[PORT_SSDP] = 'ssdp'
----------------------------------------------------------
--
-- DNS constants (taken from proto.lua)
--
local DNS_HDR_LEN = 12 -- DNS header size
--
-- The smallest possible DNS query field size. This has to be at least a
-- label length octet, label character, label null terminator, 2-bytes type
-- and 2-bytes class.
--
local MIN_QUERY_LEN = 7
------------------------------------------------------------------------------
local debug = 0 -- Flag for *some* logging.
local LOGFILE = "/tmp/save.packet-flows" -- General log file.
local SAVELOG = "/tmp/pf.log" -- Log file for saving flows.
if(debug ~= 0) then
local loggy = io.open(LOGFILE,"a")
if loggy ~= nil then
loggy:write("\npacket-flows.lua: down in\n\n")
io.close(loggy)
end
end
------------------------------------------------------------------------------
local function menuable_tap()
local pktwind = nil -- Window for packet flows.
local tap = Listener.new() -- The network tap.
local ips = {} -- Hash of src/dest counters.
local prots = {} -- Hash of protocol counters.
--
-- This collects packets transferred from one host to another.
-- It is one-way only (for now), so 1.1.1.1 -> 2.2.2.2 will have
-- a different stream than 2.2.2.2 -> 1.1.1.1.
--
local collector = {}
----------------------------------------------------------------------
-- Routine: remove()
--
-- Purpose: Remove the listener that otherwise will remain
-- running indefinitely.
--
local function remove()
tap:remove();
end
----------------------------------------------------------------------
-- Routine: streamsaver()
--
-- Purpose: Save the recorded packet streams.
--
local function streamsaver()
tap:streamsaver();
end
----------------------------------------------------------------------
-- Routine: dlgsaver()
--
-- Purpose: Save the Packet Flow data to a user-specified file.
--
-- Status is saved in /tmp/pf.log because it isn't
-- clear how to communicate errors to user otherwise.
--
-- Used by new_dialog() calls.
--
local function dlgsaver(newfile)
log = io.open("/tmp/pf.log","a")
log:write("\n\nSaving Packet-Flow data\n")
--
-- Save file must be specified.
--
if((newfile == nil) or (newfile == "")) then
print("\nSave file for packet flows must be specified\n")
log:write("\nSave file for packet flows must be specified\n")
io.close(log)
return
end
--
-- Save file must not exist.
--
saver = io.open(newfile,"r")
if saver ~= nil then
print("\nPacket flow save file \"" .. newfile .. "\" already exists\n")
log:write("\nPacket flow save file \"" .. newfile .. "\" already exists\n")
io.close(log)
return
end
--
-- Now we'll create and open the save file.
--
saver = io.open(newfile,"w")
if saver == nil then
print("\nUnable to open packet flow save file \"" .. newfile .. "\"\n")
log:write("\nUnable to open packet flow save file \"" .. newfile .. "\"\n")
io.close(log)
return
end
--
-- Write each packet flow's info to the Packet Flow window.
--
for srcdst, pkt in pairs(collector) do
--
-- Variables for output formatting.
--
local srcfmt = "%-15s\t"
local dstfmt = "%-15s\t"
local out
saver:write("\n----------------------------------------------------------\n")
saver:write("Originator || Target: " .. tostring(srcdst) .. "\n\n")
saver:write("Packets:\n")
--
-- IPv6 addresses are longer than IPv4 addresses, so
-- we'll check for them and adjust the format if found.
--
-- THIS IS NOT PERFECT!!! A preferable way of doing
-- this would require Lua to support * functionality
-- in string.format(). If this hasn't been done after
-- all these years, I doubt they'd do it just for us.
--
if(string.find(srcdst, ':') ~= nil) then
src, dst = string.match(srcdst, "(%S+) || (%S+)")
if(string.find(src, ':') ~= nil) then
len = string.len(src) + 1
srcfmt = "%-" .. tostring(len) .. "s\t"
end
if(string.find(dst, ':') ~= nil) then
dstfmt = "%-24s\t"
len = string.len(dst) + 1
dstfmt = "%-" .. tostring(len) .. "s\t"
end
end
--
-- Build the header and display it.
--
out = string.format(srcfmt .. dstfmt .. "%4s\t%s\n", "Source", "Destination", "Port", "Relative Time")
saver:write(out)
--
-- Build the packet lines and display them.
--
for pnum, val in pairs(pkt) do
out = string.format(srcfmt .. dstfmt .. "%-4s\t%7.5f\n", tostring(val.src), tostring(val.dst), tostring(val.port), val.reltime)
saver:write(out)
end
end
io.close(saver)
log:write("\nfinished writing Packet Flow save file \"" .. newfile .. "\"\n")
io.close(log)
end
----------------------------------------------------------------------
-- Routine: tap.packet()
--
-- Purpose: This function will be called once for each packet.
-- Filter-specific handling occurs to do something with
-- the data.
--
-- packet-flows divides the packets into sets that hold
-- the packets flowing between a particular pair of
-- hosts. The packets are stored in a table that is
-- implicitly sorted by the elapsed time from the start
-- of packet capture.
--
-- Wireshark gathers lots of other data into pinfo, but
-- few of those fields are being used by packet-flows.
-- Maybe we'll make use of this extra data in the future.
--
function tap.packet(pinfo,tvb)
local srcdst -- Table key.
local srcdstports -- Addressing info.
local pr -- Current count for src or dest port.
local srcprt -- Source port.
local dstprt -- Destination port.
local logger -- I/O object for logging.
--
-- Build the table key. This consists of the source IP
-- address and the destination IP address.
--
srcdst = tostring(pinfo.src) .. " || " .. tostring(pinfo.dst)
--
-- Build a string with the connection info. This consists of
-- the source IP address, the source port, the destination IP
-- address and the destination port -- all with various
-- separators.
--
srcdstports = tostring(pinfo.src) ..
"(" .. tostring(pinfo.src_port) .. ")" ..
" || " .. tostring(pinfo.dst) ..
"(" .. tostring(pinfo.dst_port) .. ")"
--
-- Get the current count for this source/dest pair.
--
paircnt = ips[srcdst] or 0
--
-- Get the source port.
--
srcprt = pinfo.src_port
--
-- Get the destination port.
--
dstprt = pinfo.dst_port
--
-- Filter out the ports we don't care about; turned off
-- by default.
-- (This was just done for testing, but is left here in
-- case it's useful in future.)
--
local nofiltering = nil
if(nofiltering ~= nil) then
if(((srcprt ~= 993) and (dstprt ~= 993)) and
((srcprt ~= 53) and (srcprt ~= 53)))
then
return
end
end
--
-- Add the source and destination ports to the translation
-- table, if they aren't there already.
--
if(ports[srcprt] == nil) then
ports[srcprt] = tostring(srcprt)
end
if(ports[dstprt] == nil) then
ports[dstprt] = tostring(dstprt)
end
--
-- Get the text form of the ports.
--
srcprt = ports[srcprt]
dstprt = ports[dstprt]
--
-- Get the current count for the destination port.
--
-- pr = prots[tostring(pinfo.src_port)] or 0
pr = prots[tostring(pinfo.dst_port)] or 0
--
-- Find the appropriate source/destination group, even if
-- this is a destination's response. If there's already a
-- collector table for dst/src, we'll use it. If not, we
-- can safely assume that src/dst should be used.
--
addrs = tostring(pinfo.dst) .. " || " .. tostring(pinfo.src)
if(collector[addrs] == nil) then
addrs = srcdst
end
--
-- Bump the source/dest counter and squirrel it away.
-- We aren't doing anything with this right now.
--
ips[addrs] = paircnt + 1
--
-- Record the count of protocol uses.
-- We aren't doing anything with this right now.
--
-- prots[tostring(pinfo.src_port)] = pr + 1
prots[tostring(pinfo.dst_port)] = pr + 1
--
-- Initialize a list if the source/destination collector
-- entry doesn't exist yet.
--
if(collector[addrs] == nil) then
collector[addrs] = {}
end
--
-- Save a few pieces of data from the packet.
--
pkt = {}
pkt.src = pinfo.src
pkt.dst = pinfo.dst
pkt.port = dstprt
pkt.reltime = pinfo.rel_ts
table.insert(collector[addrs], pkt)
--
-- Log some of the packet contents.
--
logger = io.open(LOGFILE,"a")
if logger ~= nil then
logger:write("\n----------------------------\n")
-- logger:write("src - <" .. tostring(pinfo.src) .. ">\t\tport - <" .. tostring(pinfo.src_port) .. ">\n")
-- logger:write("dst - <" .. tostring(pinfo.dst) .. ">\t\tport - <" .. tostring(pinfo.dst_port) .. ">\n")
logger:write("src - <" .. tostring(pinfo.src) .. ">\t\tport - <" .. ports[pinfo.src_port] .. ">\n")
logger:write("dst - <" .. tostring(pinfo.dst) .. ">\t\tport - <" .. ports[pinfo.dst_port] .. ">\n")
logger:write("pnum - ", pinfo.number, "\trelative time - ", pinfo.rel_ts, "\n")
logger:write("\ntvb - <" .. tostring(tvb) .. ">\n")
io.close(logger)
end
end
----------------------------------------------------------------------
-- Routine: tap.streamsaver()
--
-- Purpose: This function initiates the saving of the packet
-- streams to a file. It creates a dialog box, passing
-- it a reference to dlgsaver(). That routine gets and
-- validates a filename for the new file, then saves the
-- flow data to it.
--
function streamsaver(t)
new_dialog("Packet Flows Saved", dlgsaver, "Enter Save File")
end
----------------------------------------------------------------------
-- Routine: tap.draw()
--
-- Purpose: This function updates packet-flow's window with
-- new data. It is called once every few seconds.
--
function tap.draw(t)
--
-- Create the Packet Flows window if it hasn't been created.
-- We'll also arrange to call remove() when window is closed.
--
if(pktwind == nil) then
pktwind = TextWindow.new("Packet Flows")
pktwind:set_atclose(remove)
pktwind:add_button("Save Data", streamsaver)
end
--
-- Clear the window contents.
--
pktwind:clear()
--
-- Write each packet flow's info to the Packet Flow window.
--
for srcdst, pkt in pairs(collector) do
--
-- Variables for output formatting.
--
local srcfmt = "%-15s\t"
local dstfmt = "%-15s\t"
local out
pktwind:append("\n----------------------------------------------------------\n")
pktwind:append("Originator || Target: " .. tostring(srcdst) .. "\n\n")
pktwind:append("Packets:\n")
--
-- IPv6 addresses are longer than IPv4 addresses, so
-- we'll check for them and adjust the format if found.
--
-- THIS IS NOT PERFECT!!! A preferable way of doing
-- this would require Lua to support * functionality
-- in string.format(). If this hasn't been done after
-- all these years, I doubt they'd do it just for us.
--
if(string.find(srcdst, ':') ~= nil) then
src, dst = string.match(srcdst, "(%S+) || (%S+)")
if(string.find(src, ':') ~= nil) then
len = string.len(src) + 1
srcfmt = "%-" .. tostring(len) .. "s\t"
end
if(string.find(dst, ':') ~= nil) then
dstfmt = "%-24s\t"
len = string.len(dst) + 1
dstfmt = "%-" .. tostring(len) .. "s\t"
end
end
--
-- Build the header and display it.
--
out = string.format(srcfmt .. dstfmt .. "%4s\t%s\n", "Source", "Destination", "Port", "Relative Time")
pktwind:append(out)
--
-- Build the packet lines and display them.
--
for pnum, val in pairs(pkt) do
out = string.format(srcfmt .. dstfmt .. "%-4s\t%7.5f\n", tostring(val.src), tostring(val.dst), tostring(val.port), val.reltime)
pktwind:append(out)
end
end
end
----------------------------------------------------------------------
-- Routine: tap.reset()
--
-- Purpose: This function will be called whenever a reset is
-- needed, e.g. when reloading the capture file.
--
function tap.reset()
if(pktwind ~= nil) then
pktwind:clear()
end
ips = {}
end
--
-- Ensure that all existing packets are processed.
--
retap_packets()
end
--
-- Register the function to be called when the user selects the
-- Tools->Lua->Packet Flows menu
--
register_menu("GAWSEED/Packet Flows", menuable_tap, MENU_TOOLS_UNSORTED)
|
M_PSTATUS = "PSTATUS"
M_PREGISTER = "PREGISTER"
M_PCOMMAND = "PCOMMAND"
M_MID = os.getComputerID()
monitor = nil
PALETTE = {
["-1"] = colors.red,
["0"] = colors.yellow,
["1"] = colors.white,
["2"] = colors.green
}
CLIENTS = {
tree1 = {id = -1, status = "-1"},
tree2 = {id = -1, status = "-1"},
tree3 = {id = -1, status = "-1"},
tree4 = {id = -1, status = "-1"},
rice1 = {id = -1, status = "-1"},
rice2 = {id = -1, status = "-1"},
ender1 = {id = -1, status = "-1"},
skeleton1 = {id = -1, status = "-1"}
}
function get_ordered_client_id()
local ordered = {}
for label in pairs(CLIENTS) do
table.insert(ordered, label)
end
table.sort(ordered)
return ordered
end
function init()
monitor = peripheral.find("monitor")
rednet.open("left")
rednet.unhost(M_PSTATUS, os.getComputerLabel())
rednet.host(M_PSTATUS, os.getComputerLabel())
rednet.broadcast("CHK_REGISTER", M_PREGISTER)
monitor_update_client()
end
function monitor_update_client()
monitor.clear()
local ordered = get_ordered_client_id()
for i = 1, #ordered do
local label, client = ordered[i], CLIENTS[ordered[i]]
monitor.setCursorPos(1, i)
monitor.setTextColour(PALETTE[client.status])
monitor.write(label)
end
end
function listener()
while true do
print("["..os.getComputerID().."] Ready!")
local id, msg, proto = rednet.receive()
if proto == M_PREGISTER then
print("[M] RECV: "..id.."/"..msg.."/"..proto)
CLIENTS[msg] = {id = id, status = "0"}
rednet.send(id, "1", M_PREGISTER)
monitor_update_client()
elseif proto == M_PSTATUS then
print("[M] RECV: "..id.."/"..msg.."/"..proto)
for hostname, client in pairs(CLIENTS) do
if client.id == id then
CLIENTS[hostname].status = msg
break
end
end
monitor_update_client()
else
print(id, proto)
end
end
end
function commander()
while true do
local _, _, x, y = os.pullEvent("monitor_touch")
local ordered = get_ordered_client_id()
if y <= #ordered then
local label, client = ordered[y], CLIENTS[ordered[y]]
if client.status == "1" then
monitor.setCursorPos(1, y)
monitor.setTextColour(PALETTE["2"])
monitor.write(label)
rednet.send(client.id, "2", M_PCOMMAND)
CLIENTS[label].status = "2"
elseif client.status == "2" then
monitor.setCursorPos(1, y)
monitor.setTextColour(PALETTE["1"])
monitor.write(label)
rednet.send(client.id, "1", M_PCOMMAND)
CLIENTS[label].status = "1"
end
end
end
end
function main()
print("[" .. time() .. "] ----- Auto Mob v01a -----")
print("[M] Computer ID:"..os.getComputerID())
init()
parallel.waitForAny(listener, commander)
end
main()
|
--[[
Copyright (c) 2007-2008 Gordon Gremme <gordon@gremme.org>
Copyright (c) 2007-2008 Center for Bioinformatics, University of Hamburg
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
]]
module(..., package.seeall)
require "gtlua.genome_features"
-- XXX: remove if statement if libannotationsketch is always compiled in
if GenomeTools_feature_index then
-- Computes the coverage for the sequence ID <seqid>. The optional <maxdist>
-- parameter denotes the maximal distance two features can be apart without
-- creating a new Range. Returns an array of Ranges denoting parts the of
-- <seqid> covered by features.
function GenomeTools_feature_index:get_coverage(seqid, maxdist)
assert(seqid)
local maxdist = maxdist or 0
local features = self:get_features_for_seqid(seqid)
local starpos, endpos
local minstartpos = nil
local maxendpos = nil
local ranges = {}
local coverage = {}
-- collect all feature ranges
for i, feature in ipairs(features) do
ranges[#ranges+1] = feature:get_range()
end
-- sort feature ranges
ranges = gt.ranges_sort(ranges)
-- compute and store coverage
for i, range in ipairs(ranges) do
startpos, endpos = range:get_start(), range:get_end()
if i == 1 then
minstartpos = startpos
maxendpos = endpos
else
-- assert(startpos >= minstartpos)
if (startpos > maxendpos + maxdist) then
-- new region started
coverage[#coverage+1] = gt.range_new(minstartpos, maxendpos)
minstartpos = startpos
maxendpos = endpos
else
-- continue old region
maxendpos = (endpos > maxendpos) and endpos or maxendpos
end
end
end
-- add last region
coverage[#coverage+1] = gt.range_new(minstartpos, maxendpos)
return coverage
end
-- Returns an array of Ranges denoting parts of <seqid> which are covered by
-- at least one marked feature. Internally, get_coverage() is called and the
-- <maxdist> is passed along.
function GenomeTools_feature_index:get_marked_regions(seqid, maxdist)
assert(seqid, "missing seqid argument")
local coverage = self:get_coverage(seqid, maxdist)
local marked = {}
for _,range in ipairs(coverage) do
local features = feature_index:get_features_for_range(seqid, range)
if gt.features_contain_marked(features) then
marked[#marked+1] = range
end
end
return marked
end
-- Render to PNG file <png_file> for <seqid> in <range> with optional <width>.
-- If no <png_file> is given os.tmpname() is called to create one.
-- Returns name of written PNG file.
function GenomeTools_feature_index:render_to_png(seqid, range, png_file, width)
assert(seqid and range)
png_file = png_file or os.tmpname()
if not width then width = 1600 end
local diagram = gt.diagram_new(self, seqid, range)
local render = gt.render_new()
render:to_png(diagram, png_file, width)
return png_file
end
-- Show all sequence IDs.
function GenomeTools_feature_index:show_seqids()
for _,seqid in ipairs(feature_index:get_seqids()) do
print(seqid)
end
end
-- Returns all features from <feature_index>.
function GenomeTools_feature_index:get_all_features()
local seqids = self:get_seqids()
local all_features = {}
for _, seqid in ipairs(seqids) do
local seqid_features = self:get_features_for_seqid(seqid)
for _, feature in ipairs(seqid_features) do
all_features[#all_features + 1] = feature
end
end
return all_features
end
end
|
local type, getmetatable, setmetatable, rawset
do
local _obj_0 = _G
type, getmetatable, setmetatable, rawset = _obj_0.type, _obj_0.getmetatable, _obj_0.setmetatable, _obj_0.rawset
end
local Flow
local is_flow
is_flow = function(cls)
if not (cls) then
return false
end
if cls == Flow then
return true
end
return is_flow(cls.__parent)
end
do
local _class_0
local _base_0 = {
expose_assigns = false
}
_base_0.__index = _base_0
_class_0 = setmetatable({
__init = function(self, _, obj)
if obj == nil then
obj = { }
end
self._ = _
assert(self._, "missing flow target")
self._req = self._
if is_flow(self._.__class) then
self._ = self._._
end
local old_mt = getmetatable(self)
local proxy = setmetatable(obj, old_mt)
local mt = {
__call = old_mt.__call,
__index = function(self, key)
local val = proxy[key]
if val ~= nil then
return val
end
val = self._[key]
if type(val) == "function" then
val = function(_, ...)
return self._[key](self._, ...)
end
rawset(self, key, val)
end
return val
end
}
do
local expose = self.expose_assigns
if expose then
local allowed_assigns
if type(expose) == "table" then
do
local _tbl_0 = { }
for _index_0 = 1, #expose do
local name = expose[_index_0]
_tbl_0[name] = true
end
allowed_assigns = _tbl_0
end
end
mt.__newindex = function(self, key, val)
if allowed_assigns then
if allowed_assigns[key] then
self._[key] = val
else
return rawset(self, key, val)
end
else
self._[key] = val
end
end
end
end
return setmetatable(self, mt)
end,
__base = _base_0,
__name = "Flow"
}, {
__index = _base_0,
__call = function(cls, ...)
local _self_0 = setmetatable({}, _base_0)
cls.__init(_self_0, ...)
return _self_0
end
})
_base_0.__class = _class_0
Flow = _class_0
end
return {
Flow = Flow,
is_flow = is_flow
}
|
local host = host or "localhost"
local port = port or 8686
local socket = require("socket")
local master = assert(socket.tcp())
assert(master:connect(host, port))
local client = master
print('connection established on', client:getpeername())
while true do
print('input message to send:')
local msg = io.read()
if msg == 'close' then
client:close()
break
end
local index, error = client:send(msg .. '\n')
if index ~= nil then
print(index, 'byte was sent')
else
print(error)
client:close()
break
end
end |
ys = ys or {}
ys.Battle.BattleDamageRateView = class("BattleDamageRateView")
ys.Battle.BattleDamageRateView.__name = "BattleDamageRateView"
ys.Battle.BattleDamageRateView.Ctor = function (slot0, slot1)
slot0._go = slot1
slot0.tick_bar = slot1.transform:Find("tick_bar"):GetComponent(typeof(Image))
slot0.tickBarOb = slot0.tick_bar.gameObject
slot0.tick_bar.fillAmount = 0
end
ys.Battle.BattleDamageRateView.UpdateScore = function (slot0, slot1, slot2)
LeanTween.cancel(slot0.tickBarOb)
LeanTween.value(slot0.tickBarOb, slot0.tick_bar.fillAmount, slot3, 0.5):setOnUpdate(System.Action_float(function (slot0)
slot0.tick_bar.fillAmount = slot0
end))
end
ys.Battle.BattleDamageRateView.CalScore = function (slot0, slot1, slot2)
slot3 = pg.expedition_data_template[slot2]
slot5 = {
0,
0.445,
0.7,
0.88,
1
}
slot6 = 0
for slot10, slot11 in ipairs(slot4) do
if slot1 < slot3[slot11] then
break
end
slot6 = slot10
end
slot7 = 0
if slot6 < #slot4 then
if slot3[slot4[slot6]] < 0 then
slot8 = 0
end
slot7 = (slot5[slot6 + 1] - slot5[slot6]) * (slot1 - slot8) / (slot3[slot4[slot6 + 1]] - slot8) + slot5[slot6]
else
slot7 = 1
end
return slot7
end
ys.Battle.BattleDamageRateView.Dispose = function (slot0)
LeanTween.cancel(slot0.tickBarOb)
end
return
|
-- ** Start of modification for Lua@CORE **
local lu = nil
if (CoreObject) then
local propLuaunit = script:GetCustomProperty("luaunit")
lu = require(propLuaunit)
else
lu = require("luaunit")
end
-- ** End of modification for Lua@CORE **
local function range(start, stop)
-- return list of { start ... stop }
local i
local ret = {}
i=start
while i <= stop do
table.insert(ret, i)
i = i + 1
end
return ret
end
TestListCompare = {}
function TestListCompare:test1()
local A = { 121221, 122211, 121221, 122211, 121221, 122212, 121212, 122112, 122121, 121212, 122121 }
local B = { 121221, 122211, 121221, 122211, 121221, 122212, 121212, 122112, 121221, 121212, 122121 }
lu.assertEquals( A, B )
end
function TestListCompare:test1b()
local A = { 121221, 122211, 121221, 122112, 121212, 121122, 121212, 122122, 121212, 122112, 122112 }
local B = { 121221, 122211, 121221, 122112, 121212, 121122, 121212, 122122, 121212, 122112, 121212 }
lu.assertEquals( A, B )
end
function TestListCompare:test1c()
local A = { 122112, 122121, 111212, 122121, 122121, 121212, 121121, 121212, 121221, 122212, 112121 }
local B = { 121212, 122121, 111212, 122121, 122121, 121212, 121121, 121212, 121221, 122212, 112121 }
lu.assertEquals( A, B )
end
-- long list of numbers, same size, swapped values
function TestListCompare:test2()
local x=7
local A, B = range(1,20), range(1,20)
B[x], B[x+1] = B[x+1], B[x]
lu.assertEquals( A, B )
end
-- long list of numbers, one hole
function TestListCompare:test3()
local x=7
local A, B = range(1,20), {}
local i=1
while i <= #A do
if i ~= x then
table.insert( B, A[i] )
end
i = i + 1
end
lu.assertEquals( A, B )
end
-- long list of numbers, one bigger hole
function TestListCompare:test4()
local x=7
local x2=8
local x3=9
local A, B = range(1,20), {}
local i=1
while i <= #A do
if i ~= x and i ~= x2 and i ~= x3 then
table.insert( B, A[i] )
end
i = i + 1
end
lu.assertEquals( A, B )
end
-- long list, difference + big hole
function TestListCompare:sub_test5()
local x=7
local x2=8
local x3=9
local A, B = range(1,20), {}
local i=1
while i <= #A do
if i ~= x and i ~= x2 and i ~= x3 then
table.insert( B, A[i] )
end
i = i + 1
end
x = 5
B[x], B[x+1] = B[x+1], B[x]
return A, B
end
function TestListCompare:test5a()
local A, B = self:sub_test5()
lu.ORDER_ACTUAL_EXPECTED = false
lu.assertEquals( A, B )
end
function TestListCompare:test5b()
local A, B = self:sub_test5()
lu.assertEquals( B, A )
end
function TestListCompare:test5c()
local A, B = self :sub_test5()
lu.PRINT_TABLE_REF_IN_ERROR_MSG = true
lu.assertEquals( B, A )
end
function TestListCompare:test6()
local f1 = function () return nil end
local t1 = coroutine.create( function(v) local y=v+1 end )
local A = { 'aaa', 'bbb', 'ccc', f1, 1.1, 2.1, nil, true, false, t1, t1, t1 }
local B = { 'aaa', 'bbb', 'ccc', f1, 1.1, 2.1, nil, false, false, t1, t1, t1 }
lu.assertEquals( B, A )
end
function TestListCompare:test7()
local A = { {1,2,3}, {1,2}, { {1}, {2} }, { 'aa', 'cc'}, 1, 2, 1.33, 1/0, { a=1 }, {} }
local B = { {1,2,3}, {1,2}, { {2}, {2} }, { 'aa', 'bb'}, 1, 2, 1.33, 1/0, { a=1 }, {} }
lu.assertEquals( B, A )
end
function TestListCompare:tearDown()
-- cancel effect of test5a
lu.ORDER_ACTUAL_EXPECTED = true
-- cancel effect of test5c
lu.PRINT_TABLE_REF_IN_ERROR_MSG = false
end
-- end TestListCompare
--[[
TestDictCompare = {}
function XTestDictCompare:test1()
lu.assertEquals( {one=1,two=2, three=3}, {one=1,two=1, three=3} )
end
function XTestDictCompare:test2()
lu.assertEquals( {one=1,two=2, three=3, four=4, five=5}, {one=1,two=1, three=3, four=4, five=5} )
end
-- end TestDictCompare
]]
-- ** Start of modification for Lua@CORE **
if (CoreObject) then
-- Copy _ENV table to the _G client table, as _G = _ENV does not work!
-- With Lua@CORE, _ENV contains a list of all global symbols ( functions, tables.. )
-- With Lua@Core, there is a _G client and a _G server table for each player, both are "empty".
-- _G = _ENV -- Does not work!
for name, address in pairs(_ENV) do
--print(name, address)
_G[name] = address
end
lu.LuaUnit.run()
else
-- The last line executes your script with LuaUnit and exit with the proper error code:
local result = lu.run()
os.exit(result, true)
end
-- ** End of modification for Lua@CORE **
|
require("gameData/gameData");
require("core/dict");
--商城广告
local RechargeTabsAd = class(GameData);
RechargeTabsAd.Delegate = {
onGetRechargeTabsAdCallBack = "onGetRechargeTabsAdCallBack";
};
RechargeTabsAd.ctor = function(self)
end
RechargeTabsAd.dtor = function(self)
end
RechargeTabsAd.initData = function(self)
self.m_data = {};
end
RechargeTabsAd.cleanup = function(self)
self.m_data = {};
end
RechargeTabsAd.updateMemData = function(self, data)
self.m_data = self:_analyseData(data);
end
RechargeTabsAd.getRechargeTabsAd = function(self, tabId)
local item = {};
tabId = tonumber(tabId);
if tabId and not table.isEmpty(self.m_data) and not table.isEmpty(self.m_data.list) then
for k, v in pairs(self.m_data.list) do
if v.type and v.type == tabId then
item = v;
break;
end
end
end
return item;
end
RechargeTabsAd.requestData = function(self, tabId)
OnlineSocketManager.getInstance():sendMsg(PHP_MARKET_TABS_AD, {type = 4});
end
RechargeTabsAd.onGetRechargeTabsAdCallBack = function(self, isSuccess, data, sendParam)
if isSuccess then
self:updateData(true, data);
end
self:execDelegate(RechargeTabsAd.Delegate.onGetRechargeTabsAdCallBack);
end
----------------------------------------------------------------------------------
RechargeTabsAd._analyseData = function(self, data)
local tmp = {
result = tonumber(data.result) or 0,
code = tonumber(data.code) or 0,
list = self:_analyseDataList(data.list),
};
return tmp;
end
RechargeTabsAd._analyseDataList = function(self, data)
local list = table.verify(json.decode(data));
local tmp = {};
for k, v in pairs(list) do
local item = {
type = tonumber(v.type) or 0,
content = tostring(v.content) or "",
}
table.insert(tmp, item);
end
return tmp;
end
RechargeTabsAd.s_socketCmdFuncMap = {
[PHP_MARKET_TABS_AD] = RechargeTabsAd.onGetRechargeTabsAdCallBack;
};
return RechargeTabsAd; |
--Changed to rm_run to avoid issues with calling it init, had issues with random errors due to it being called init(no other reason that I could figure out).
package.path = "/lib/?.lua;/usr/lib/?.lua;/home/lib/?.lua;./?.lua;/home/bin/lib/?.lua";
local comp = require("component");
local mT = require("moveTo");
local version = require("version");
local ev = require("event");
local m = comp.modem;
print("Welcome to Naragath\'s Robot Miner v" .. version.major .. "." .. version.minor .. "." .. version.build);
print("Loading please wait...");
--mT.setHome("rm1");
--mT.returnHome();
--mT.moveC(2,0);
m.open(1337);
while true do
local _,_,from,port,_,msg,arg1,arg2 = ev.pull("modem_message");
if msg == "*SETHOME*" then
mT.setHome(arg1);
elseif msg == "*MineChunk*" then
mT.moveC(arg1,arg2);
_debug("Yarp");
end
end
|
if vim.g.loaded_cmp then
return
end
vim.g.loaded_cmp = true
if not vim.api.nvim_create_autocmd then
return print('[nvim-cmp] Your nvim does not has `nvim_create_autocmd` function. Please update to latest nvim.')
end
local api = require('cmp.utils.api')
local types = require('cmp.types')
local highlight = require('cmp.utils.highlight')
local autocmd = require('cmp.utils.autocmd')
vim.api.nvim_set_hl(0, 'CmpItemAbbr', { link = 'CmpItemAbbrDefault', default = true })
vim.api.nvim_set_hl(0, 'CmpItemAbbrDeprecated', { link = 'CmpItemAbbrDeprecatedDefault', default = true })
vim.api.nvim_set_hl(0, 'CmpItemAbbrMatch', { link = 'CmpItemAbbrMatchDefault', default = true })
vim.api.nvim_set_hl(0, 'CmpItemAbbrMatchFuzzy', { link = 'CmpItemAbbrMatchFuzzyDefault', default = true })
vim.api.nvim_set_hl(0, 'CmpItemKind', { link = 'CmpItemKindDefault', default = true })
vim.api.nvim_set_hl(0, 'CmpItemMenu', { link = 'CmpItemMenuDefault', default = true })
for kind in pairs(types.lsp.CompletionItemKind) do
if type(kind) == 'string' then
local name = ('CmpItemKind%s'):format(kind)
vim.api.nvim_set_hl(0, name, { link = ('%sDefault'):format(name), default = true })
end
end
autocmd.subscribe('ColorScheme', function()
highlight.inherit('CmpItemAbbrDefault', 'Pmenu', { bg = 'NONE', default = true })
highlight.inherit('CmpItemAbbrDeprecatedDefault', 'Comment', { bg = 'NONE', default = true })
highlight.inherit('CmpItemAbbrMatchDefault', 'Pmenu', { bg = 'NONE', default = true })
highlight.inherit('CmpItemAbbrMatchFuzzyDefault', 'Pmenu', { bg = 'NONE', default = true })
highlight.inherit('CmpItemKindDefault', 'Special', { bg = 'NONE', default = true })
highlight.inherit('CmpItemMenuDefault', 'Pmenu', { bg = 'NONE', default = true })
for name in pairs(types.lsp.CompletionItemKind) do
if type(name) == 'string' then
vim.api.nvim_set_hl(0, ('CmpItemKind%sDefault'):format(name), { link = 'CmpItemKind', default = true })
end
end
end)
autocmd.emit('ColorScheme')
if vim.on_key then
vim.on_key(function(keys)
if keys == vim.api.nvim_replace_termcodes('<C-c>', true, true, true) then
vim.schedule(function()
if not api.is_suitable_mode() then
autocmd.emit('InsertLeave')
end
end)
end
end, vim.api.nvim_create_namespace('cmp.plugin'))
end
vim.api.nvim_create_user_command('CmpStatus', function()
require('cmp').status()
end, { desc = 'Check status of cmp sources' })
vim.cmd([[doautocmd <nomodeline> User CmpReady]])
|
if not momoTweak.angelBio then momoTweak.angelBio = {} end
local tree = "solid-tree"
local seed = {}
seed.temp = "tree-temperate-seed"
seed.swamp = "tree-swamp-seed"
seed.desert = "tree-desert-seed"
local garden = {}
garden.temp = "temperate-garden"
garden.desert = "desert-garden"
garden.swamp = "swamp-garden"
local token = "token-bio"
local aboretum_category = "angels-arboretum"
local press_category = "bio-pressing"
local procss_category = "bio-processor"
local aboretum_tech = "bio-arboretum-1"
local aboretum_tech2 = "bio-arboretum-2"
local aboretum_tech3 = "bio-arboretum-3"
local biome_tech = {}
biome_tech.temp = "bio-arboretum-temperate"
biome_tech.desert = "bio-arboretum-desert"
biome_tech.swamp = "bio-arboretum-swamp"
local catalyst = {}
catalyst.metal = "catalyst-metal-carrier"
catalyst.red = "catalyst-metal-red"
catalyst.blue = "catalyst-metal-blue"
catalyst.green = "catalyst-metal-green"
catalyst.yellow = "catalyst-metal-yellow"
local product = {}
product.temp = {"temperate-1", "temperate-2", "temperate-3", "temperate-4", "temperate-5"}
product.desert = {"desert-1", "desert-2", "desert-3", "desert-4", "desert-5"}
product.swamp = {"swamp-1", "swamp-2", "swamp-3", "swamp-4", "swamp-5"}
local biome = {"temp", "swamp", "desert"}
function momoTweak.angelBio.Data()
local ICON = "__MomoTweak__/graphics/icons/"
local count = 0
local function AddBioItem(Name)
data:extend({{
type = "item",
name = Name,
icon = ICON .. Name .. ".png",
icon_size = 32,
subgroup = "momo-bio-materials",
order = "f[" .. count .. "]",
stack_size = 200
}})
count = count + 1
end
momoTweak.angelBio.refSubgroup = data.raw["item-subgroup"][data.raw.item["temperate-1"].subgroup]
data:extend({{
type = "item-subgroup",
name = "momo-bio-materials",
group = momoTweak.angelBio.refSubgroup.group,
order = "zzzzz"
}})
AddBioItem("momo-oil-pack")
AddBioItem("bio-grade-1")
AddBioItem("bio-grade-2")
AddBioItem("bio-grade-3")
AddBioItem("bio-temp")
AddBioItem("bio-desert")
AddBioItem("bio-swamp")
end
function momoTweak.angelBio.Update()
for i, name in pairs({"temp", "swamp", "desert"}) do
momoTweak.createRecipe(aboretum_category, {{garden[name], 1}}, {
{seed[name], 20},
{tree, 25}
}, 700, aboretum_tech2)
momoTweak.createRecipe("crafting", {{"bio-" .. name, 3}},{
{product[name][1], 8},
{product[name][2], 8},
{product[name][3], 8},
{product[name][4], 8},
{product[name][5], 8}
}, 10, biome_tech[name] .. "-1")
end
momoTweak.createRecipe(procss_category, {{token, 1}}, {
{tree, 35},
{"momo-vial", 1}
}, 300, aboretum_tech)
local board2 = momoTweak.ele.board[2]
for i, name in pairs({board2, momoTweak.recipe.tin_board2}) do
momoTweak.replace_with_ingredient(name, "wood", {"solid-paper", 3})
end
momoTweak.createRecipe("crafting", {{"bio-grade-1", 1}}, {
{token, 2},
{"bio-temp", 2},
}, 3, aboretum_tech2, "1")
momoTweak.createRecipe("crafting", {{"bio-grade-1", 1}}, {
{token, 2},
{"bio-swamp", 2},
}, 3, aboretum_tech2, "2")
momoTweak.createRecipe("crafting", {{"bio-grade-1", 1}}, {
{token, 2},
{"bio-desert", 2},
}, 3, aboretum_tech2, "3")
momoTweak.createRecipe("crafting", {{"bio-grade-2", 1}}, {
{token, 2},
{"red-cellulose-fiber", 18},
{"bio-swamp", 1},
{"bio-desert", 1}
}, 3, aboretum_tech3, "1")
momoTweak.createRecipe("crafting", {{"bio-grade-2", 1}}, {
{token, 2},
{"red-cellulose-fiber", 18},
{"bio-temp", 1},
{"bio-desert", 1}
}, 3, aboretum_tech3, "2")
momoTweak.createRecipe("crafting", {{"bio-grade-2", 1}}, {
{token, 2},
{"red-cellulose-fiber", 18},
{"bio-temp", 1},
{"bio-swamp", 1}
}, 3, aboretum_tech3, "3")
momoTweak.createRecipe("crafting", {{"bio-grade-3", 1}}, {
{"blue-cellulose-fiber", 18},
{token, 2},
{"bio-grade-1", 3},
{"bio-temp", 3},
{"bio-desert", 3},
{"bio-swamp", 3}
}, 3, aboretum_tech3)
bobmods.lib.recipe.add_ingredient("solid-alginic-acid", {"algae-green", 6})
--- wood pulp to cellulose-fiber
if (data.raw.item["bi-woodpulp"]) then
momoTweak.createRecipe("crafting", {{"cellulose-fiber", 4}}, {
{"bi-woodpulp", 4}
}, 2.5, momoTweak.get_tech_of_recipe("cellulose-fiber-raw-wood"))
end
end
function momoTweak.angelBio.FinalFixed()
bobmods.lib.recipe.add_ingredient(momoTweak.sci3, {"bio-grade-1", 1})
bobmods.lib.recipe.add_ingredient(momoTweak.sciProduction, {"bio-grade-2", 1})
bobmods.lib.recipe.add_ingredient(momoTweak.sciLogistic, {"bio-grade-2", 1})
bobmods.lib.recipe.add_ingredient(momoTweak.sciTech, {"bio-grade-3", 1})
if (momoTweak.mods.sct) then
local pack = "sct-bio-science-pack"
bobmods.lib.recipe.add_ingredient(pack, {"momo-vial", momoTweak.get_result_amount(pack)})
bobmods.lib.recipe.add_ingredient(pack, {"red-sci", 2})
bobmods.lib.recipe.add_ingredient(pack, {"b1", 1})
local sample = "sct-bio-ground-sample"
bobmods.lib.recipe.add_ingredient(sample, {"plate-pack-1", 1})
bobmods.lib.recipe.add_ingredient(sample, {"solid-alginic-acid", 2})
end
end
function momoTweak.angel_electrolysis_recipe()
data.raw.recipe["solid-alginic-acid"].category = "electrolysis"
end
|
--[[
(C) Paul Butler 2008-2012 <http://www.paulbutler.org/>
May be used and distributed under the zlib/libpng license
<http://www.opensource.org/licenses/zlib-license.php>
Adaptation to Lua by Philippe Fremy <phil at freehackers dot org>
Lua version copyright 2015
]]
local M={}
function M.table_join( t1, t2, t3 )
-- return a table containing all elements of t1 then t2 then t3
local t = {}
for i,v in ipairs(t1) do
table.insert(t,v)
end
for i,v in ipairs(t2) do
table.insert(t,v)
end
if t3 then
for i,v in ipairs(t3) do
table.insert(t,v)
end
end
return t
end
function M.table_subtable( t, start, stop )
-- 0 is first element, stop is last element
local ret = {}
if stop == nil then
stop = #t
end
if start < 0 or stop < 0 or start > stop then
error('Invalid values: '..start..' '..stop )
end
for i,v in ipairs(t) do
if (i-1) >= start and (i-1) < stop then
table.insert( ret, v )
end
end
return ret
end
function M.diff(old, new)
--[[
Find the differences between two lists or strings. Returns a list of pairs, where the
first value is in ['+','-','='] and represents an insertion, deletion, or
no change for that list. The second value of the pair is the list
of elements.
Params:
old the old list of immutable, comparable values (ie. a list
of strings)
new the new list of immutable, comparable values
Returns:
A list of pairs, with the first part of the pair being one of three
strings ('-', '+', '=') and the second part being a list of values from
the original old and/or new lists. The first part of the pair
corresponds to whether the list of values is a deletion, insertion, or
unchanged, respectively.
Examples:
>>> diff( {1,2,3,4}, {1,3,4})
{ {'=', {1} }, {'-', {2} }, {'=', {3, 4}} }
>>> diff( {1,2,3,4}, {2,3,4,1} )
{ {'-', {1}}, {'=', {2, 3, 4}}, {'+', {1}} }
>>> diff( { 'The', 'quick', 'brown', 'fox', 'jumps', 'over', 'the', 'lazy', 'dog' },
... { 'The', 'slow', 'blue', 'cheese', 'drips', 'over', 'the', 'lazy', 'carrot' })
{ {'=', {'The'} },
{'-', {'quick', 'brown', 'fox', 'jumps'} },
{'+', {'slow', 'blue', 'cheese', 'drips'} },
{'=', {'over', 'the', 'lazy'} },
{'-', {'dog'} },
{'+', {'carrot'} }
}
]]
-- print('diff('..mytostring(old)..', '..mytostring(new)..')' )
-- Create a map from old values to their indices
local old_index_map = {}
for i, val in ipairs(old) do
if not old_index_map[val] then
old_index_map[val] = {}
end
table.insert( old_index_map[val], i-1 )
end
--[[
Find the largest substring common to old and new.
We use a dynamic programming approach here.
We iterate over each value in the `new` list, calling the
index `inew`. At each iteration, `overlap[i]` is the
length of the largest suffix of `old[:i]` equal to a suffix
of `new[:inew]` (or unset when `old[i]` != `new[inew]`).
At each stage of iteration, the new `overlap` (called
`_overlap` until the original `overlap` is no longer needed)
is built from the old one.
If the length of overlap exceeds the largest substring
seen so far (`sub_length`), we update the largest substring
to the overlapping strings.
--[[
`sub_start_old` is the index of the beginning of the largest overlapping
substring in the old list. `sub_start_new` is the index of the beginning
of the same substring in the new list. `sub_length` is the length that
overlaps in both.
These track the largest overlapping substring seen so far, so naturally
we start with a 0-length substring.
]]
local overlap = {}
local sub_start_old = 0
local sub_start_new = 0
local sub_length = 0
for inewInc, val in ipairs(new) do
local inew = inewInc-1
local _overlap = {}
if old_index_map[val] then
for _,iold in ipairs(old_index_map[val]) do
-- now we are considering all values of iold such that
-- `old[iold] == new[inew]`.
if iold <= 0 then
_overlap[iold] = 1
else
_overlap[iold] = (overlap[iold - 1] or 0) + 1
end
if (_overlap[iold] > sub_length) then
sub_length = _overlap[iold]
sub_start_old = iold - sub_length + 1
sub_start_new = inew - sub_length + 1
end
end
end
overlap = _overlap
end
if sub_length == 0 then
-- If no common substring is found, we return an insert and delete...
local oldRet = {}
local newRet = {}
if #old > 0 then
oldRet = { {'-', old} }
end
if #new > 0 then
newRet = { {'+', new} }
end
return M.table_join( oldRet, newRet )
else
-- ...otherwise, the common substring is unchanged and we recursively
-- diff the text before and after that substring
return M.table_join(
M.diff(M.table_subtable( old, 0, sub_start_old),
M.table_subtable( new, 0, sub_start_new)),
{ {'=', M.table_subtable(new,sub_start_new,sub_start_new + sub_length)} },
M.diff(M.table_subtable( old, sub_start_old + sub_length ),
M.table_subtable( new, sub_start_new + sub_length ) )
)
end
end
return M
|
--[[ LibDraggable
Library.LibDraggable.draggify(window)
Notes: modified for FishItUp! by marcob@marcob.org
1) moves frames and not windows anymore.
2) reacts on RIGHT mouse clicks and not LEFT.
3) added undraggify() method
]]--
if not Library then Library = {} end
local Draggable = {}
if not Library.LibDraggable then Library.LibDraggable = Draggable end
Draggable.DebugLevel = 0
Draggable.Version = "0.5-130712-20:34:32"
Draggable.printf = Library.printf.printf
Draggable.windows = {}
function Draggable.draggify(window, callback)
if window then
local newtab = { dragging = false, x = 0, y = 0 }
Draggable.windows[window] = newtab
newtab.callback = callback
local border = window
border:EventAttach(Event.UI.Input.Mouse.Right.Down, function(...) Draggable.rightdown(window, ...) end, "draggable_right_down")
border:EventAttach(Event.UI.Input.Mouse.Cursor.Move, function(...) Draggable.mousemove(window, ...) end, "draggable_mouse_move")
border:EventAttach(Event.UI.Input.Mouse.Right.Up, function(...) Draggable.rightup(window, ...) end, "draggable_right_up")
border:EventAttach(Event.UI.Input.Mouse.Right.Upoutside, function(...) Draggable.rightupoutside(window, ...) end, "draggable_right_upoutside")
Draggable.windows[window] = newtab
end
end
function Draggable.undraggify(window, callback)
if window then
local border = window
Draggable.windows[window] = nil
local a, b = nil, nil
local EVENTS = { Event.UI.Input.Mouse.Right.Down, Event.UI.Input.Mouse.Cursor.Move, Event.UI.Input.Mouse.Right.Up, Event.UI.Input.Mouse.Right.Upoutside }
local event = nil
local eventlist= {}
for _, event in ipairs(EVENTS) do
local eventlist = border:EventList(event)
for a,b in pairs(eventlist) do
-- local c, d = nil, nil
-- for c, d in pairs(b) do print(string.format("a[%s] c[%s] d[%s]", a, c, d)) end
border:EventDetach(event, b.handler, b.label)
end
end
end
end
function Draggable.rightdown(window, event, ...)
local win = Draggable.windows[window]
if not win then
Draggable.windows[window] = { dragging = false, x = 0, y = 0 }
win = Draggable.windows[window]
end
win.dragging = true
win.win_x = window:GetLeft()
win.win_y = window:GetTop()
local l, t, r, b = window:GetBounds()
window:ClearAll()
window:SetPoint("TOPLEFT", UIParent, "TOPLEFT", l, t)
window:SetWidth(r - l)
window:SetHeight(b - t)
win.ev_x = Inspect.Mouse().x
win.ev_y = Inspect.Mouse().y
end
function Draggable.mousemove(window, event, ...)
local event, x, y = ...
local win = Draggable.windows[window]
if win and win.dragging then
local win = Draggable.windows[window]
local new_x = win.win_x + x - win.ev_x
local new_y = win.win_y + y - win.ev_y
window:SetPoint("TOPLEFT", UIParent, "TOPLEFT", new_x, new_y)
if win.callback then
win.callback(window, new_x, new_y)
end
end
end
function Draggable.rightup(window, event, ...)
local win = Draggable.windows[window]
if win then
win.dragging = false
win.ev_x = nil
win.ev_y = nil
end
end
function Draggable.rightupoutside(window, event, ...)
local win = Draggable.windows[window]
if win then
win.dragging = false
win.ev_x = nil
win.ev_y = nil
end
end
|
return {
[0x00] = {},
[0x01] = {
instruction = "nop",
cycles = 2,
addr_mode = "inh"
},
[0x02] = {},
[0x03] = {},
[0x04] = {},
[0x05] = {},
[0x06] = {
instruction = "tap",
cycles = 2,
addr_mode = "inh"
},
[0x07] = {
instruction = "tpa",
cycles = 2,
addr_mode = "inh"
},
[0x08] = {
instruction = "inx",
cycles = 4,
addr_mode = "inh"
},
[0x09] = {
instruction = "dex",
cycles = 4,
addr_mode = "inh"
},
[0x0A] = {
instruction = "clv",
cycles = 2,
addr_mode = "inh"
},
[0x0B] = {
instruction = "sev",
cycles = 2,
addr_mode = "inh"
},
[0x0C] = {
instruction = "clc",
cycles = 2,
addr_mode = "inh"
},
[0x0D] = {
instruction = "sec",
cycles = 2,
addr_mode = "inh"
},
[0x0E] = {
instruction = "cli",
cycles = 2,
addr_mode = "inh"
},
[0x0F] = {
instruction = "sei",
cycles = 2,
addr_mode = "inh"
},
[0x10] = {
instruction = "sba",
cycles = 2,
addr_mode = "inh"
},
[0x11] = {
instruction = "cba",
cycles = 2,
addr_mode = "inh"
},
[0x12] = {},
[0x13] = {},
[0x14] = {
instruction = "nba",
cycles = 2, -- TODO
addr_mode = "inh"
},
[0x15] = {},
[0x16] = {
instruction = "tab",
cycles = 2,
addr_mode = "inh"
},
[0x17] = {
instruction = "tba",
cycles = 2,
addr_mode = "inh"
},
[0x18] = {
},
[0x19] = {
instruction = "daa",
cycles = 2,
addr_mode = "inh"
},
[0x1A] = {
},
[0x1B] = {
instruction = "aba",
cycles = 2,
addr_mode = "inh"
},
[0x1C] = {
},
[0x1D] = {
},
[0x1E] = {
},
[0x1F] = {
},
[0x20] = {
instruction = "bra",
cycles = 4,
addr_mode = "rel"
},
[0x21] = {},
[0x22] = {
instruction = "bhi",
cycles = 4,
addr_mode = "rel"
},
[0x23] = {
instruction = "bls",
cycles = 4,
addr_mode = "rel"
},
[0x24] = {
instruction = "bcc",
cycles = 4,
addr_mode = "rel"
},
[0x25] = {
instruction = "bcs",
cycles = 4,
addr_mode = "rel"
},
[0x26] = {
instruction = "bne",
cycles = 4,
addr_mode = "rel"
},
[0x27] = {
instruction = "beq",
cycles = 4,
addr_mode = "rel"
},
[0x28] = {
instruction = "bvc",
cycles = 4,
addr_mode = "rel"
},
[0x29] = {
instruction = "bvs",
cycles = 4,
addr_mode = "rel"
},
[0x2A] = {
instruction = "bpl",
cycles = 4,
addr_mode = "rel"
},
[0x2B] = {
instruction = "bmi",
cycles = 4,
addr_mode = "rel"
},
[0x2C] = {
instruction = "bge",
cycles = 4,
addr_mode = "rel"
},
[0x2D] = {
instruction = "blt",
cycles = 4,
addr_mode = "rel"
},
[0x2E] = {
instruction = "bgt",
cycles = 4,
addr_mode = "rel"
},
[0x2F] = {
instruction = "ble",
cycles = 4,
addr_mode = "rel"
},
[0x30] = {
instruction = "tsx",
cycles = 4,
addr_mode = "inh"
},
[0x31] = {
instruction = "ins",
cycles = 4,
addr_mode = "inh"
},
[0x32] = {
instruction = "pul",
cycles = 4,
addr_mode = "acc",
acc = "a"
},
[0x33] = {
instruction = "pul",
cycles = 4,
addr_mode = "acc",
acc = "b"
},
[0x34] = {
instruction = "des",
cycles = 4,
addr_mode = "inh"
},
[0x35] = {
instruction = "txs",
cycles = 4,
addr_mode = "inh",
},
[0x36] = {
instruction = "psh",
cycles = 4,
addr_mode = "acc",
acc = "a"
},
[0x37] = {
instruction = "psh",
cycles = 4,
addr_mode = "acc",
acc = "b"
},
[0x38] = {},
[0x39] = {
instruction = "rts",
cycles = 5,
addr_mode = "inh"
},
[0x3A] = {},
[0x3B] = {
instruction = "rti",
cycles = 10,
addr_mode = "inh"
},
[0x3C] = {},
[0x3D] = {},
[0x3E] = {
instruction = "wai",
cycles = 9,
addr_mode = "inh"
},
[0x3F] = {
instruction = "swi",
cycles = 12,
addr_mode = "inh"
},
[0x40] = {
instruction = "neg",
cycles = 2,
addr_mode = "acc",
acc = "a"
},
[0x41] = {},
[0x42] = {},
[0x43] = {
instruction = "com",
cycles = 2,
addr_mode = "acc",
acc = "a"
},
[0x44] = {
instruction = "lsr",
cycles = 2,
addr_mode = "acc",
acc = "a"
},
[0x45] = {},
[0x46] = {
instruction = "ror",
cycles = 2,
addr_mode = "acc",
acc = "a"
},
[0x47] = {
instruction = "asr",
cycles = 2,
addr_mode = "acc",
acc = "a"
},
[0x48] = {
instruction = "asl",
cycles = 2,
addr_mode = "acc",
acc = "a"
},
[0x49] = {
instruction = "rol",
cycles = 2,
addr_mode = "acc",
acc = "a"
},
[0x4A] = {
instruction = "dec",
cycles = 2,
addr_mode = "acc",
acc = "a"
},
[0x4B] = {},
[0x4C] = {
instruction = "inc",
cycles = 2,
addr_mode = "acc",
acc = "a"
},
[0x4D] = {
instruction = "tst",
cycles = 2,
addr_mode = "acc",
acc = "a"
},
[0x4E] = {},
[0x4F] = {
instruction = "clr",
cycles = 2,
addr_mode = "acc",
acc = "a"
},
[0x50] = {
instruction = "neg",
cycles = 2,
addr_mode = "acc",
acc = "b"
},
[0x51] = {},
[0x52] = {},
[0x53] = {
instruction = "com",
cycles = 2,
addr_mode = "acc",
acc = "b"
},
[0x54] = {
instruction = "lsr",
cycles = 2,
addr_mode = "acc",
acc = "b"
},
[0x55] = {},
[0x56] = {
instruction = "ror",
cycles = 2,
addr_mode = "acc",
acc = "b"
},
[0x57] = {
instruction = "asr",
cycles = 2,
addr_mode = "acc",
acc = "b"
},
[0x58] = {
instruction = "asl",
cycles = 2,
addr_mode = "acc",
acc = "b"
},
[0x59] = {
instruction = "rol",
cycles = 2,
addr_mode = "acc",
acc = "b"
},
[0x5A] = {
instruction = "dec",
cycles = 2,
addr_mode = "acc",
acc = "b"
},
[0x5B] = {},
[0x5C] = {
instruction = "inc",
cycles = 2,
addr_mode = "acc",
acc = "b"
},
[0x5D] = {
instruction = "tst",
cycles = 2,
addr_mode = "acc",
acc = "b"
},
[0x5E] = {},
[0x5F] = {
instruction = "clr",
cycles = 2,
addr_mode = "acc",
acc = "b"
},
[0x60] = {
instruction = "neg",
cycles = 7,
addr_mode = "idx"
},
[0x61] = {},
[0x62] = {},
[0x63] = {
instruction = "com",
cycles = 7,
addr_mode = "idx"
},
[0x64] = {
instruction = "lsr",
cycles = 7,
addr_mode = "idx"
},
[0x65] = {},
[0x66] = {
instruction = "ror",
cycles = 7,
addr_mode = "idx"
},
[0x67] = {
instruction = "asr",
cycles = 7,
addr_mode = "idx"
},
[0x68] = {
instruction = "asl",
cycles = 7,
addr_mode = "idx"
},
[0x69] = {
instruction = "rol",
cycles = 7,
addr_mode = "idx"
},
[0x6A] = {
instruction = "dec",
cycles = 7,
addr_mode = "idx"
},
[0x6B] = {},
[0x6C] = {
instruction = "inc",
cycles = 7,
addr_mode = "idx"
},
[0x6D] = {
instruction = "tst",
cycles = 7,
addr_mode = "idx"
},
[0x6E] = {
instruction = "jmp",
cycles = 2,
addr_mode = "immx"--"idx"
},
[0x6F] = {
instruction = "clr",
cycles = 7,
addr_mode = "idx"
},
[0x70] = {
instruction = "neg",
cycles = 6,
addr_mode = "ext"
},
[0x71] = {},
[0x72] = {},
[0x73] = {
instruction = "com",
cycles = 6,
addr_mode = "ext"
},
[0x74] = {
instruction = "lsr",
cycles = 6,
addr_mode = "ext"
},
[0x75] = {},
[0x76] = {
instruction = "ror",
cycles = 6,
addr_mode = "ext"
},
[0x77] = {
instruction = "asr",
cycles = 6,
addr_mode = "ext"
},
[0x78] = {
instruction = "asl",
cycles = 6,
addr_mode = "ext"
},
[0x79] = {
instruction = "rol",
cycles = 6,
addr_mode = "ext"
},
[0x7A] = {
instruction = "dec",
cycles = 6,
addr_mode = "ext"
},
[0x7B] = {},
[0x7C] = {
instruction = "inc",
cycles = 6,
addr_mode = "ext"
},
[0x7D] = {
instruction = "tst",
cycles = 6,
addr_mode = "ext"
},
[0x7E] = {
instruction = "jmp",
cycles = 3,
addr_mode = "imm16"--"ext"
},
[0x7F] = {
instruction = "clr",
cycles = 6,
addr_mode = "ext"
},
[0x80] = {
instruction = "sub",
cycles = 2,
addr_mode = "imm",
acc = "a"
},
[0x81] = {
instruction = "cmp",
cycles = 2,
addr_mode = "imm",
acc = "a"
},
[0x82] = {
instruction = "sbc",
cycles = 2,
addr_mode = "imm",
acc = "a"
},
[0x83] = {},
[0x84] = {
instruction = "and",
cycles = 2,
addr_mode = "imm",
acc = "a"
},
[0x85] = {
instruction = "bit",
cycles = 2,
addr_mode = "imm",
acc = "a"
},
[0x86] = {
instruction = "lda",
cycles = 2,
addr_mode = "imm",
acc = "a"
},
[0x87] = {
-- TODO increments PC before storing!
instruction = "sta",
cycles = 2,
addr_mode = "imm",
acc = "a"
},
[0x88] = {
instruction = "eor",
cycles = 2,
addr_mode = "imm",
acc = "a"
},
[0x89] = {
instruction = "adc",
cycles = 2,
addr_mode = "imm",
acc = "a"
},
[0x8A] = {
instruction = "ora",
cycles = 2,
addr_mode = "imm",
acc = "a"
},
[0x8B] = {
instruction = "add",
cycles = 2,
addr_mode = "imm",
acc = "a"
},
[0x8C] = {
instruction = "cpx",
cycles = 3,
addr_mode = "imm16"
},
[0x8D] = {
instruction = "bsr",
cycles = 8,
addr_mode = "rel",
},
[0x8E] = {
instruction = "lds",
cycles = 3,
addr_mode = "imm16",
},
[0x8F] = {
-- TODO increments PC before storing!
instruction = "sts",
cycles = 2, -- TODO
addr_mode = "imm16",
},
[0x90] = {
instruction = "sub",
cycles = 3,
addr_mode = "dir",
acc = "a"
},
[0x91] = {
instruction = "cmp",
cycles = 3,
addr_mode = "dir",
acc = "a"
},
[0x92] = {
instruction = "sbc",
cycles = 3,
addr_mode = "dir",
acc = "a"
},
[0x93] = {},
[0x94] = {
instruction = "and",
cycles = 3,
addr_mode = "dir",
acc = "a"
},
[0x95] = {
instruction = "bit",
cycles = 3,
addr_mode = "dir",
acc = "a"
},
[0x96] = {
instruction = "lda",
cycles = 3,
addr_mode = "dir",
acc = "a"
},
[0x97] = {
instruction = "sta",
cycles = 4,
addr_mode = "dir",
acc = "a"
},
[0x98] = {
instruction = "eor",
cycles = 3,
addr_mode = "dir",
acc = "a"
},
[0x99] = {
instruction = "adc",
cycles = 3,
addr_mode = "dir",
acc = "a"
},
[0x9A] = {
instruction = "ora",
cycles = 3,
addr_mode = "dir",
acc = "a"
},
[0x9B] = {
instruction = "add",
cycles = 3,
addr_mode = "dir",
acc = "a"
},
[0x9C] = {
instruction = "cpx",
cycles = 4,
addr_mode = "dir16"
},
[0x9D] = {
instruction = "hcf",
addr_mode = "inh"
},
[0x9E] = {
instruction = "lds",
cycles = 4,
addr_mode = "dir16",
},
[0x9F] = {
instruction = "sts",
cycles = 5,
addr_mode = "dir16",
},
[0xA0] = {
instruction = "sub",
cycles = 5,
addr_mode = "idx",
acc = "a"
},
[0xA1] = {
instruction = "cmp",
cycles = 5,
addr_mode = "idx",
acc = "a"
},
[0xA2] = {
instruction = "sbc",
cycles = 5,
addr_mode = "idx",
acc = "a"
},
[0xA3] = {},
[0xA4] = {
instruction = "and",
cycles = 5,
addr_mode = "idx",
acc = "a"
},
[0xA5] = {
instruction = "bit",
cycles = 5,
addr_mode = "idx",
acc = "a"
},
[0xA6] = {
instruction = "lda",
cycles = 5,
addr_mode = "idx",
acc = "a"
},
[0xA7] = {
instruction = "sta",
cycles = 6,
addr_mode = "idx",
acc = "a"
},
[0xA8] = {
instruction = "eor",
cycles = 5,
addr_mode = "idx",
acc = "a"
},
[0xA9] = {
instruction = "adc",
cycles = 5,
addr_mode = "idx",
acc = "a"
},
[0xAA] = {
instruction = "ora",
cycles = 5,
addr_mode = "idx",
acc = "a"
},
[0xAB] = {
instruction = "add",
cycles = 5,
addr_mode = "idx",
acc = "a"
},
[0xAC] = {
instruction = "cpx",
cycles = 6,
addr_mode = "idx16"
},
[0xAD] = {
instruction = "jsr",
cycles = 8,
addr_mode = "immx"--"idx",
},
[0xAE] = {
instruction = "lds",
cycles = 6,
addr_mode = "idx16",
},
[0xAF] = {
instruction = "sts",
cycles = 7,
addr_mode = "idx16",
},
[0xB0] = {
instruction = "sub",
cycles = 4,
addr_mode = "ext",
acc = "a"
},
[0xB1] = {
instruction = "cmp",
cycles = 4,
addr_mode = "ext",
acc = "a"
},
[0xB2] = {
instruction = "sbc",
cycles = 4,
addr_mode = "ext",
acc = "a"
},
[0xB3] = {},
[0xB4] = {
instruction = "and",
cycles = 4,
addr_mode = "ext",
acc = "a"
},
[0xB5] = {
instruction = "bit",
cycles = 4,
addr_mode = "ext",
acc = "a"
},
[0xB6] = {
instruction = "lda",
cycles = 4,
addr_mode = "ext",
acc = "a"
},
[0xB7] = {
instruction = "sta",
cycles = 5,
addr_mode = "ext",
acc = "a"
},
[0xB8] = {
instruction = "eor",
cycles = 4,
addr_mode = "ext",
acc = "a"
},
[0xB9] = {
instruction = "adc",
cycles = 4,
addr_mode = "ext",
acc = "a"
},
[0xBA] = {
instruction = "ora",
cycles = 4,
addr_mode = "ext",
acc = "a"
},
[0xBB] = {
instruction = "add",
cycles = 4,
addr_mode = "ext",
acc = "a"
},
[0xBC] = {
instruction = "cpx",
cycles = 5,
addr_mode = "ext16"--"ext"
},
[0xBD] = {
instruction = "jsr",
cycles = 9,
addr_mode = "imm16"--"ext",
},
[0xBE] = {
instruction = "lds",
cycles = 5,
addr_mode = "ext16"--"ext",
},
[0xBF] = {
instruction = "sts",
cycles = 6,
addr_mode = "ext16"--"ext",
},
[0xC0] = {
instruction = "sub",
cycles = 2,
addr_mode = "imm",
acc = "b"
},
[0xC1] = {
instruction = "cmp",
cycles = 2,
addr_mode = "imm",
acc = "b"
},
[0xC2] = {
instruction = "sbc",
cycles = 2,
addr_mode = "imm",
acc = "b"
},
[0xC3] = {},
[0xC4] = {
instruction = "and",
cycles = 2,
addr_mode = "imm",
acc = "b"
},
[0xC5] = {
instruction = "bit",
cycles = 2,
addr_mode = "imm",
acc = "b"
},
[0xC6] = {
instruction = "lda",
cycles = 2,
addr_mode = "imm",
acc = "b"
},
[0xC7] = {
-- TODO increments PC before storing!
instruction = "sta",
cycles = 2,
addr_mode = "imm",
acc = "b"
},
[0xC8] = {
instruction = "eor",
cycles = 2,
addr_mode = "imm",
acc = "b"
},
[0xC9] = {
instruction = "adc",
cycles = 2,
addr_mode = "imm",
acc = "b"
},
[0xCA] = {
instruction = "ora",
cycles = 2,
addr_mode = "imm",
acc = "b"
},
[0xCB] = {
instruction = "add",
cycles = 2,
addr_mode = "imm",
acc = "b"
},
[0xCC] = {},
[0xCD] = {
-- TODO different kind of HCF
-- https://x86.fr/investigating-the-halt-and-catch-fire-instruction-on-motorola-6800/
instruction = "hcf",
addr_mode = "inh"
},
[0xCE] = {
instruction = "ldx",
cycles = 3,
addr_mode = "imm16",
},
[0xCF] = {
-- TODO increments PC before storing!
instruction = "stx",
cycles = 2, -- TODO
addr_mode = "imm16",
},
[0xD0] = {
instruction = "sub",
cycles = 3,
addr_mode = "dir",
acc = "b"
},
[0xD1] = {
instruction = "cmp",
cycles = 3,
addr_mode = "dir",
acc = "b"
},
[0xD2] = {
instruction = "sbc",
cycles = 3,
addr_mode = "dir",
acc = "b"
},
[0xD3] = {},
[0xD4] = {
instruction = "and",
cycles = 3,
addr_mode = "dir",
acc = "b"
},
[0xD5] = {
instruction = "bit",
cycles = 3,
addr_mode = "dir",
acc = "b"
},
[0xD6] = {
instruction = "lda",
cycles = 3,
addr_mode = "dir",
acc = "b"
},
[0xD7] = {
instruction = "sta",
cycles = 4,
addr_mode = "dir",
acc = "b"
},
[0xD8] = {
instruction = "eor",
cycles = 3,
addr_mode = "dir",
acc = "b"
},
[0xD9] = {
instruction = "adc",
cycles = 3,
addr_mode = "dir",
acc = "b"
},
[0xDA] = {
instruction = "ora",
cycles = 3,
addr_mode = "dir",
acc = "b"
},
[0xDB] = {
instruction = "add",
cycles = 3,
addr_mode = "dir",
acc = "b"
},
[0xDC] = {},
[0xDD] = {
instruction = "hcf",
addr_mode = "inh"
},
[0xDE] = {
instruction = "ldx",
cycles = 4,
addr_mode = "dir16",
},
[0xDF] = {
instruction = "stx",
cycles = 5,
addr_mode = "dir16"
},
[0xE0] = {
instruction = "sub",
cycles = 5,
addr_mode = "idx",
acc = "b"
},
[0xE1] = {
instruction = "cmp",
cycles = 5,
addr_mode = "idx",
acc = "b"
},
[0xE2] = {
instruction = "sbc",
cycles = 5,
addr_mode = "idx",
acc = "b"
},
[0xE3] = {},
[0xE4] = {
instruction = "and",
cycles = 5,
addr_mode = "idx",
acc = "b"
},
[0xE5] = {
instruction = "bit",
cycles = 5,
addr_mode = "idx",
acc = "b"
},
[0xE6] = {
instruction = "lda",
cycles = 5,
addr_mode = "idx",
acc = "b"
},
[0xE7] = {
instruction = "sta",
cycles = 6,
addr_mode = "idx",
acc = "b"
},
[0xE8] = {
instruction = "eor",
cycles = 5,
addr_mode = "idx",
acc = "b"
},
[0xE9] = {
instruction = "adc",
cycles = 5,
addr_mode = "idx",
acc = "b"
},
[0xEA] = {
instruction = "ora",
cycles = 5,
addr_mode = "idx",
acc = "b"
},
[0xEB] = {
instruction = "add",
cycles = 5,
addr_mode = "idx",
acc = "b"
},
[0xEC] = {},
[0xED] = {
-- TODO different kind of HCF
-- https://x86.fr/investigating-the-halt-and-catch-fire-instruction-on-motorola-6800/
instruction = "hcf",
addr_mode = "inh"
},
[0xEE] = {
instruction = "ldx",
cycles = 6,
addr_mode = "idx16",
},
[0xEF] = {
instruction = "stx",
cycles = 7,
addr_mode = "idx16",
},
[0xF0] = {
instruction = "sub",
cycles = 4,
addr_mode = "ext",
acc = "b"
},
[0xF1] = {
instruction = "cmp",
cycles = 4,
addr_mode = "ext",
acc = "b"
},
[0xF2] = {
instruction = "sbc",
cycles = 4,
addr_mode = "ext",
acc = "b"
},
[0xF3] = {},
[0xF4] = {
instruction = "and",
cycles = 4,
addr_mode = "ext",
acc = "b"
},
[0xF5] = {
instruction = "bit",
cycles = 4,
addr_mode = "ext",
acc = "b"
},
[0xF6] = {
instruction = "lda",
cycles = 4,
addr_mode = "ext",
acc = "b"
},
[0xF7] = {
instruction = "sta",
cycles = 5,
addr_mode = "ext",
acc = "b"
},
[0xF8] = {
instruction = "eor",
cycles = 4,
addr_mode = "ext",
acc = "b"
},
[0xF9] = {
instruction = "adc",
cycles = 4,
addr_mode = "ext",
acc = "b"
},
[0xFA] = {
instruction = "ora",
cycles = 4,
addr_mode = "ext",
acc = "b"
},
[0xFB] = {
instruction = "add",
cycles = 4,
addr_mode = "ext",
acc = "b"
},
[0xFC] = {},
[0xFD] = {
-- TODO slower HCF
-- https://x86.fr/investigating-the-halt-and-catch-fire-instruction-on-motorola-6800/
instruction = "hcf",
addr_mode = "inh"
},
[0xFE] = {
instruction = "ldx",
cycles = 5,
addr_mode = "ext16"--"ext",
},
[0xFF] = {
instruction = "stx",
cycles = 6,
addr_mode = "ext16"--"ext",
},
}
|
-- Fri Apr 24 21:09:39 2020
-- (c) Alexander Veledzimovich
-- set HOT
-- lua<5.3
local utf8 = require('utf8')
local unpack = table.unpack or unpack
local SET = {
APPNAME = love.window.getTitle(),
VER = '1.0',
SAVE = 'hotsave.lua',
FULLSCR = love.window.getFullscreen(),
WID = love.graphics.getWidth(),
HEI = love.graphics.getHeight(),
MIDWID = love.graphics.getWidth() / 2,
MIDHEI = love.graphics.getHeight() / 2,
SCALE = {1,1},
DELAY = 0.3,
BOX2D = false,
EMPTY = {0,0,0,0},
WHITE = {1,1,1,1},
WHITE64 = {1,1,1,64/255},
WHITE32 = {1,1,1,32/255},
WHITE16 = {1,1,1,16/255},
WHITE0 = {1,1,1,0},
BLACK = {0,0,0,1},
RED = {1,0,0,1},
RED0 = {1,0,0,0},
YELLOW = {1,1,0,1},
YELLOW0 = {1,1,0,0},
GREEN = {0,1,0,1},
GREEN0 = {0,1,0,0},
BLUE = {0,0,1,1},
BLUE0 = {0,0,1,0},
DARKGRAY = {32/255,32/255,32/255,1},
DARKGRAY0 = {32/255,32/255,32/255,0},
GRAY = {0.5,0.5,0.5,1},
GRAY64 = {0.5,0.5,0.5,64/255},
GRAY32 = {0.5,0.5,0.5,32/255},
GRAY16 = {0.5,0.5,0.5,16/255},
GRAY0 = {0.5,0.5,0.5,0},
LIGHTGRAY = {192/255,192/255,192/255,1},
LIGHTGRAY0 = {192/255,192/255,192/255,0},
DARKRED = {128/255,0,0,1},
DARKRED0 = {128/255,0,0,0},
ORANGE = {1,0.5,0,0.5},
ORANGE0 = {1,0.5,0,0},
-- Vera Sans
MAINFNT = nil
}
SET.CANWID = SET.WID
SET.CANHEI = SET.HEI
SET.CANMIDWID = SET.CANWID/2
SET.CANMIDHEI = SET.CANHEI/2
SET.TITLEFNT = {SET.MAINFNT,64}
SET.MENUFNT = {SET.MAINFNT,32}
SET.GAMEFNT = {SET.MAINFNT,16}
SET.UIFNT = {SET.MAINFNT,8}
SET.BGCLR = SET.BLACK
SET.TXTCLR = SET.WHITE
return SET
|
local Type, Version = "WeakAurasIconButton", 20
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
local function Hide_Tooltip()
GameTooltip:Hide();
end
local function Show_Tooltip(owner, line1, line2)
GameTooltip:SetOwner(owner, "ANCHOR_NONE");
GameTooltip:SetPoint("BOTTOM", owner, "TOP");
GameTooltip:ClearLines();
GameTooltip:AddLine(line1);
GameTooltip:AddLine(line2, 1, 1, 1, 1);
GameTooltip:Show();
end
--[[-----------------------------------------------------------------------------
Methods
-------------------------------------------------------------------------------]]
local methods = {
["OnAcquire"] = function(self)
self:SetWidth(52);
self:SetHeight(52);
end,
["OnRelease"] = function(self)
self:ClearPick();
self.texture:SetTexture();
end,
["SetName"] = function(self, name)
self.texture.name = name;
end,
["GetName"] = function(self)
return self.texture.name;
end,
["SetTexture"] = function(self, texturePath)
self.texture.path = texturePath;
local success = self.texture:SetTexture(texturePath);
if not(success) then
self.texture:SetTexture("Interface\\BUTTONS\\UI-Quickslot-Depress.blp");
end
return success;
end,
["GetTexturePath"] = function(self)
return self.texture.path;
end,
["SetClick"] = function(self, func)
self.frame:SetScript("OnClick", func);
end,
["Pick"] = function(self)
self.frame:LockHighlight();
end,
["ClearPick"] = function(self)
self.frame:UnlockHighlight();
end
}
--[[-----------------------------------------------------------------------------
Constructor
-------------------------------------------------------------------------------]]
local function Constructor()
local button = CreateFrame("BUTTON", nil, UIParent);
button:SetHeight(52);
button:SetWidth(52);
local highlighttexture = button:CreateTexture(nil, "OVERLAY");
--highlighttexture:SetTexture("Interface\\BUTTONS\\ButtonHilight-SquareQuickslot.blp");
--highlighttexture:SetTexCoord(0.175, 0.875, 0.125, 0.825);
highlighttexture:SetTexture("Interface\\BUTTONS\\UI-Listbox-Highlight.blp");
highlighttexture:SetVertexColor(0.25, 0.5, 1);
highlighttexture:SetPoint("BOTTOMLEFT", button, 4, 4);
highlighttexture:SetPoint("TOPRIGHT", button, -4, -4);
button:SetHighlightTexture(highlighttexture);
local texture = button:CreateTexture(nil, "OVERLAY");
texture:SetAllPoints(button);
texture.name = "Undefined";
button:SetScript("OnEnter", function() Show_Tooltip(button, texture.name, texture.path:sub(17)) end);
button:SetScript("OnLeave", Hide_Tooltip);
local widget = {
frame = button,
texture = texture,
type = Type
}
for method, func in pairs(methods) do
widget[method] = func
end
return AceGUI:RegisterAsWidget(widget)
end
AceGUI:RegisterWidgetType(Type, Constructor, Version)
|
return {'tweelingen','twentenaar','twents','twee','tweearmig','tweebaansweg','tweebenig','tweebladig','tweecilinder','tweecomponentenlijm','tweed','tweedaags','tweede','tweededivisieclub','tweedegraads','tweedegraadsleraar','tweedehands','tweedehandsautomarkt','tweedehandsje','tweedehandskleding','tweedehandsmarkt','tweedehandszaak','tweedejaars','tweedekansonderwijs','tweedekker','tweedeklas','tweedeklasreiziger','tweedeklassenreiziger','tweedeklasser','tweedekwartaalcijfers','tweedelig','tweedelijns','tweedeling','tweedens','tweederangs','tweederangsburger','tweederangsrol','tweederdemeerderheid','tweedeurs','tweedeursauto','tweedeurskoelkast','tweedhoed','tweedimensionaal','tweedimensionaliteit','tweedjas','tweedraads','tweedracht','tweedrachtig','tweedrank','tweeduizend','tweeduizendste','tweefasestructuur','tweefasig','tweegesprek','tweegevecht','tweegezinswoning','tweehandig','tweeheid','tweehoevig','tweehonderd','tweehonderddertig','tweehonderdduizend','tweehonderdduizendste','tweehonderdjarig','tweehonderdste','tweehonderdtal','tweehonderdtwintig','tweehonderdveertig','tweehonderdvijftig','tweehoofdig','tweehoog','tweehuizig','tweejaarlijks','tweejarentermijn','tweejarig','tweejarige','tweekamerappartement','tweekamerflat','tweekamerstelsel','tweekamerwoning','tweekamp','tweeklank','tweekleppig','tweekleurendruk','tweekleurig','tweekoppig','tweeledig','tweeledigheid','tweelettergrepig','tweeling','tweelingbaan','tweelingbroeder','tweelingbroer','tweelingdorp','tweelingstad','tweelingzus','tweelingzuster','tweelingzwangerschap','tweelippig','tweelobbig','tweeloop','tweeloops','tweeluik','tweemaal','tweemaandelijks','tweemansbob','tweemanschap','tweemansfractie','tweemansschool','tweemaster','tweemotorig','tweemotorige','tweeogig','tweepartijenstelsel','tweepartijensysteem','tweepersoons','tweepersoonsauto','tweepersoonsbed','tweepersoonshuishouden','tweepersoonskamer','tweepersoonsledikant','tweepersoonsspelen','tweepits','tweepitsgastoestel','tweepitter','tweeploegendienst','tweeregelig','tweerelatie','tweerichtingsverkeer','tweeriemsgiek','tweern','tweernen','tweeschalig','tweeschijfsblok','tweeslachtig','tweeslachtigheid','tweeslag','tweesnijdend','tweesoortig','tweespalt','tweespan','tweesporenbeleid','tweesporig','tweespraak','tweesprong','tweestemmig','tweestemmigheid','tweesterrenrestaurant','tweestrijd','tweestromenland','tweetakt','tweetaktmotor','tweetal','tweetalig','tweetaligheid','tweetallig','tweeter','tweeterm','tweetje','tweetjes','tweetongig','tweetonig','tweetoppig','tweetrapsraket','tweeverdiener','tweeverdieners','tweeverdienerswet','tweeversnellingsnaaf','tweevlakkig','tweevlakshoek','tweevleugelig','tweevoeter','tweevoetig','tweevormig','tweevoud','tweevoudig','tweeweeks','tweewegluidsprekersysteem','tweewekelijks','tweewieler','tweewielerbedrijf','tweewielig','tweewoonst','tweezaadlobbig','tweezaadlobbigen','tweezijdig','tweezijdigheid','tweezitter','tweeendertig','tweeendertigste','tweeenhalf','tweeennegentig','tweeentachtig','tweeentwintig','tweeentwintigjarig','tweeentwintigste','tweeenveertig','tweeenvijftig','tweeenzestig','tweeenzeventig','tweeerhande','tweeerlei','twen','twenter','tweeendertigjarig','tweezits','tweekwartsmaat','tweedeklascoupe','tweedegeneratieallochtoon','tweekamerparlement','tweepoot','tweedehandsauto','tweekapper','tweescharig','tweelingziel','tweewielerbranche','tweefrontenoorlog','tweeduizendjarige','tweerichtingsproces','tweestatenoplossing','tweerichtingscommunicatie','twent','twente','twenterand','tweeweg','tweearmige','tweebenige','tweebladige','tweedaagse','tweedehandsautos','tweedehandsboeken','tweedehandse','tweedehandswinkels','tweedekkers','tweedeklasreizigers','tweedeklassenreizigers','tweedeklassers','tweedelige','tweeden','tweedes','tweedeursautos','tweedeurskoelkasten','tweedimensionale','tweedraadse','tweedrachtige','tweefasige','tweegesprekken','tweegevechten','tweegezinswoningen','tweehandige','tweehoevige','tweehoofdige','tweehuizige','tweejaarlijkse','tweekamerappartementen','tweekamerappartementje','tweekampen','tweekappers','tweeklanken','tweekleurige','tweekoppige','tweeledige','tweelettergrepige','tweelingbanen','tweelingbroeders','tweelingbroers','tweelingen','tweelingzusters','tweelingzwangerschappen','tweelippige','tweelobbige','tweelopen','tweeluiken','tweemaandelijkse','tweemasters','tweeogige','tweepersoonsbedden','tweepersoonshuishoudens','tweeregelige','tweeriemsgieken','tweeschalige','tweescharige','tweeschijfsblokken','tweeslachtige','tweesnijdende','tweesoortige','tweespannen','tweespraken','tweesprongen','tweestemmige','tweetaktmotoren','tweetalige','tweetaligen','tweetallen','tweetermen','tweetonige','tweetoppige','tweeverdienende','tweevlakshoeken','tweevleugelige','tweevoetige','tweevouden','tweevoudige','tweewekelijkse','tweewielers','tweewielige','tweewoonsten','tweezaadlobbige','tweezijdige','tweeen','tweeenhalve','tweeenveertigste','twenters','twentenaren','twentse','tweebaanswegen','tweecilinders','tweedelingen','tweederangsburgers','tweedranken','tweejarigen','tweekamerwoningen','tweekleppige','tweelingzussen','tweemanschappen','tweepersoonskamers','tweepitters','tweerelaties','tweesporige','tweetakten','tweetaktmotors','tweevlakkige','tweewielerbedrijven','tweeentwintigjarige','twens','tweeweekse','tweedehandsjes','tweedeursautootje','tweeendertigjarige','tweeters','tweevoeters','tweedegeneratieallochtonen','tweedeklascoupes','tweefasestructuren','tweekwartsmaten','tweepoten','tweetrapsraketten','tweelingzusjes','tweelingbroertjes','tweelingzielen','tweelingzusje','tweelingbroertje','tweedjasje','tweedjasjes','tweezitters','twellose'} |
local lhlh_redis = require "module.lhlh_redis"
local lhlh_common = require "module.lhlh_common"
local sub = string.sub
local find = string.find
local char = string.char
local tonumber = tonumber
local new_tab = lhlh_common.new_tab
local _M = new_tab(0, 2)
_M._VERSION = '0.02'
lhlh_redis.add_commands("cluster")
local function get_redis_link(host, port, timeout)
local r = lhlh_redis:new()
r:set_timeout(timeout)
local ok, err = r:connect(host, port)
if not ok then
ngx.log(ngx.ERR, "failed to connect: ", err, " host: ", host, " port: ", port)
return nil
end
return r
end
local function update_cluster_nodes(self, results, node)
local lines = lhlh_common:string_split(results, char(10), 1000)
for line_index = 1, #lines do
local line = lines[line_index]
local fields = lhlh_common:string_split(line, " ")
if #fields > 1 then
local addr_str = fields[2]
local addr = nil
if addr_str == ":0" then
addr = { node[1], tonumber(node[2]) }
else
local host_port = lhlh_common:string_split(addr_str, ":", 2)
addr = { host_port[1], tonumber(host_port[2]) }
g_redis_cluster_nodes[#(g_redis_cluster_nodes) + 1] = addr
end
for slot_index = 9, #fields do
local slot = fields[slot_index]
if not slot then
break
end
if sub(slot, 1, 1) ~= "[" then
local range = lhlh_common:string_split(slot, "-", 2)
local first = tonumber(range[1])
local last = first
if #range >= 2 then
last = tonumber(range[2])
end
for ind = first, last do
g_redis_cluster_slots[ind] = addr
end
end
end
end
end
end
function _M.cluster_nodes(self)
local timeout = g_config["proxy_timeout"]
local node_list = g_redis_cluster_nodes
local keepalive_duration = g_config["proxy_keepalive_duration"]
local keepalive_size = g_config["proxy_keepalive_size"]
for i = 1, #node_list do
local node = node_list[i]
local r = get_redis_link(node[1], node[2], timeout)
if r then
local results, _, err = r:cluster("nodes")
if not results then
r:close()
else
update_cluster_nodes(self, results, node)
r:set_keepalive(keepalive_duration, keepalive_size)
break
end
end
end
end
return _M
|
add_rules("mode.debug", "mode.release")
target("coros")
set_kind("static")
add_files("coroutine.cpp")
add_files("scheduler.cpp")
add_files("socket.cpp")
set_warnings("all", "error")
set_languages("c++11")
add_includedirs("../include", {public = true})
on_load(function(target)
target:add(find_packages("boost"))
end)
|
local namespace = require('namespace')
local ChangeSceneEvent = namespace.class("ChangeSceneEvent")
function ChangeSceneEvent:initialize(newSceneName)
self.newSceneName = newSceneName
LOG("Firing ChangeSceneEvent")
end
return ChangeSceneEvent |
local Game = require("Game")
function love.load()
love.window.setTitle("Blood Money")
love.window.setMode(800, 600, {
fullscreentype = "desktop",
resizable = true,
})
resources = {
images = {
blocks = {
grass = loadImage("resources/images/blocks/grass.png"),
},
creatures = {
vampire = {
crouch = {
loadImage("resources/images/creatures/vampire/crouch.png"),
},
fall = {
loadImage("resources/images/creatures/vampire/fall.png"),
},
jump = {
loadImage("resources/images/creatures/vampire/jump.png"),
},
stand = {
loadImage("resources/images/creatures/vampire/stand.png"),
},
walk = {
loadImage("resources/images/creatures/vampire/walk-1.png"),
loadImage("resources/images/creatures/vampire/walk-2.png"),
},
},
},
},
}
game = Game.new(resources, {})
end
function love.update(dt)
game:update(dt)
end
function love.draw()
game:draw()
end
function loadImage(filename)
local image = love.graphics.newImage(filename)
image:setFilter("linear", "nearest")
return image
end
|
int_package = {}
function int_package.Pack( table, max_size )
if #table<1 then return 0 end
-- set max size (default 100)
local max = max_size or 100
-- pack integers
local res = table[1]
for i=2,#table do
res = res * max_size
res = res + table[i]
end
return res
end
function int_package.Unpack( integer, table_size, max_size )
local res = {}
for i=table_size,1,-1 do
res[i] = integer%max_size
integer = math.floor(integer/max_size)
end
return res
end
return int_package |
--[[
Information:
- Da Hood (https://www.roblox.com/games/2788229376/)
]]
-- // Dependencies
local Aiming = loadstring(game:HttpGet("https://raw.githubusercontent.com/libaan151/xx5/main/xxxxxxxxxxwts6"))()
-- // Disable Team Check
local AimingIgnored = Aiming.Ignored
AimingIgnored.TeamCheck(false)
local AimingSettings = Aiming.Settings
AimingSettings.Ignored.IgnoreLocalTeam = false
-- // Downed Check
local AimingChecks = Aiming.Checks
local AimingUtilities = Aiming.Utilities
function AimingChecks.Custom(Player)
-- // Check if downed
local Character = AimingUtilities.Character(Player)
local KOd = Character:WaitForChild("BodyEffects")["K.O"].Value
local Grabbed = Character:FindFirstChild("GRABBING_CONSTRAINT") ~= nil
-- // Check B
if (KOd or Grabbed) then
return false
end
-- //
return true
end
-- // Return
return Aiming |
local file_size = request('!.file.get_size')
local represent_size = request('!.number.represent_size')
return
function(self)
self:say(
('Loading "%s" [%s].'):format(
self.f_in_name,
represent_size(file_size(self.f_in_name))
)
)
local data = self.load(self.f_in_name)
if data then
self:say('Parsing.')
local parse_result = self.parse(data)
if parse_result then
self:say('Compiling.')
local compile_result = self.compile(parse_result)
if compile_result then
assert_string(compile_result)
self:say(
('Saving "%s" [%s].'):format(
self.f_out_name,
represent_size(#compile_result)
)
)
self.save(self.f_out_name, compile_result)
else
self:say('Compile failed.')
end
else
self:say('Parse failed.')
end
end
self:say('')
end
|
local jpegLib = require('jpeg')
local cinfo = jpegLib.newDecompress()
local filename = 'libjpeg/testimg.jpg'
print('reading '..filename)
local fd = io.open(filename, 'rb')
jpegLib.fillSource(cinfo, function()
local data = fd:read(2048)
--print('read '..tostring(#data))
return data
end)
local info, err = jpegLib.readHeader(cinfo)
if err or (type(info) ~= 'table') then
fd:close()
error('Cannot read header')
end
jpegLib.configureDecompress(cinfo, {scaleNum = 4, scaleDenom = 8})
jpegLib.startDecompress(cinfo)
info = jpegLib.getInfosDecompress(cinfo)
local image = jpegLib.newBuffer(info.output.components * info.output.width * info.output.height)
jpegLib.decompress(cinfo, image)
fd:close()
print('image decompressed')
local filename = 'tmp_scale.jpg'
fd = io.open(filename, 'wb')
local cinfo = jpegLib.newCompress()
jpegLib.startCompress(cinfo, info.output, function(data)
--print('write('..tostring(#data)..')')
fd:write(data)
end)
--jpegLib.writeMarker(cinfo, 0xe1, buffer)
jpegLib.compress(cinfo, image)
fd:close()
print('image compressed in '..filename)
|
require 'pl.app'.require_here ".."
local stack = require 'tools.simplestack'
local utest = require 'tools.unittest'
utest.group "simplestack"
{
test_noparmcreate = function ()
local st = stack()
assert (st and st:empty())
end,
test_emptytablecreate = function ()
local st = stack {}
assert (st and st:empty())
end,
test_badcreateparm = function ()
local status, errmsg = pcall (stack, "bad argument")
assert (not status and errmsg)
end,
test_nonemptycreate = function ()
local st = stack {24, 42}
assert (not st:empty ())
assert (st:size () == 2)
end,
test_tableholecreate = function ()
local st = stack {23, nil, 31, 13, nil, 83}
assert (st:size () == 4)
assert (st:top () == 83)
end,
test_push2 = function ()
local st = stack()
local n = math.random ()
st:push (n)
assert (st:size () == 1)
assert (st:top () == n)
n = math.random ()
st:push (n)
assert (st:size () == 2)
assert (st:top () == n)
end,
test_pop1 = function ()
local st = stack { 18 }
assert (not st:empty ())
assert (st:top () == 18)
st:pop ()
assert (st:empty ())
assert (st:top () == nil)
end,
test_pop2 = function ()
local st = stack { 18, 39 }
assert (st:size () == 2)
assert (st:top () == 39)
st:pop ()
assert (st:size () == 1)
assert (st:top () == 18)
st:pop()
assert (st:empty ())
assert (st:top () == nil)
end,
test_clearemptystack = function ()
local st = stack ()
assert (st:empty ())
st:clear ()
assert (st:empty ())
end,
test_clearnonemptystack = function ()
local st = stack {nil, nil, nil, "foo", nil, 42, true}
assert (not st:empty () and st:size () == 3)
assert (st:top () == true)
st:clear ()
assert (st:empty ())
assert (st:top () == nil)
end,
}
utest.run "simplestack"
|
return LoadActor(THEME:GetPathB("","_wait"),0.5)
|
class("BatchGetCommanderCommand", pm.SimpleCommand).execute = function (slot0, slot1)
slot4 = {}
slot5 = {}
slot6 = {}
for slot10, slot11 in ipairs(slot3) do
table.insert(slot6, function (slot0)
slot0:sendNotification(GAME.COMMANDER_ON_OPEN_BOX, {
notify = false,
id = slot1,
callback = function (slot0)
if slot0 then
table.insert(slot0, slot0)
table.insert(table.insert, )
end
slot3()
end
})
end)
end
seriesAsync(slot6, function ()
slot0:sendNotification(GAME.COMMANDER_ON_BATCH_DONE, {
boxIds = slot1,
commanders = GAME.COMMANDER_ON_BATCH_DONE
})
end)
end
return class("BatchGetCommanderCommand", pm.SimpleCommand)
|
require("handlers.handlers")
for index, player in pairs(game.players) do
if global["armor_bonus"][player.name] == nil and player.get_inventory(defines.inventory.character_armor) ~= nil then
local armor_stack = player.get_inventory(defines.inventory.character_armor)[1]
if armor_stack ~= nil and armor_stack.is_armor then
local evt = {}
evt.player_index = index
on_armor_changed(evt)
end
end
end |
local meta = FindMetaTable( "Player" );
local function nInvSend( len )
LocalPlayer().Inventory = { };
local n = net.ReadUInt( MaxUIntBits( INV_SIZE ) );
for i = 1, n do
local id = net.ReadUInt( MaxUIntBits( INV_SIZE ) );
local class = net.ReadString();
LocalPlayer().Inventory[id] = class;
end
GAMEMODE:UpdateItemHUD();
end
net.Receive( "nInvSend", nInvSend );
local function nInvAdd( len )
LocalPlayer():CheckInventory();
local id = net.ReadUInt( MaxUIntBits( INV_SIZE ) );
local class = net.ReadString();
LocalPlayer().Inventory[id] = class;
GAMEMODE:UpdateItemHUD();
end
net.Receive( "nInvAdd", nInvAdd );
local function nInvClear( len )
LocalPlayer().Inventory = { };
GAMEMODE:UpdateItemHUD();
end
net.Receive( "nInvClear", nInvClear );
function GM:HideItemPanel()
if( self.ItemPanel and self.ItemPanel:IsValid() ) then
self.ItemPanel:SetVisible( false );
end
end
function GM:ShowItemPanel()
if( self.ItemPanel and self.ItemPanel:IsValid() ) then
self.ItemPanel:SetVisible( true );
end
end
local function nShowItemPanel( len )
GAMEMODE:ShowItemPanel();
end
net.Receive( "nShowItemPanel", nShowItemPanel );
function GM:UpdateItemHUD()
if( !LocalPlayer().Inventory ) then return end
local padding = 6;
local w = 64;
local h = w;
if( !self.ItemPanel or !self.ItemPanel:IsValid() ) then
local ow = padding * ( INV_SIZE + 1 ) + w * INV_SIZE;
local oh = h + padding * 2;
self.ItemPanel = self:CreatePanel( nil, NODOCK, ow, oh );
self.ItemPanel:SetPos( ScrW() / 2 - ow / 2, ScrH() - oh );
self.ItemPanel:DockPadding( padding, padding, padding, padding );
self.ItemPanel.Slots = { };
self.ItemPanel:SetPaintBackground( false );
for i = 1, INV_SIZE do
self.ItemPanel.Slots[i] = self:CreatePanel( self.ItemPanel, LEFT, w, h );
if( i < INV_SIZE ) then
self.ItemPanel.Slots[i]:DockMargin( 0, 0, padding, 0 );
end
local l = self:CreateLabel( self.ItemPanel.Slots[i], FILL, i, "NSS 12", 3 );
l:DockMargin( 0, 0, 4, 4 );
end
end
if( self.MapEditMode ) then
for i = 1, INV_SIZE do
if( self.ItemPanel.Slots[i].Item and self.ItemPanel.Slots[i].Item:IsValid() ) then
self.ItemPanel.Slots[i].Item:Remove();
end
end
self.ItemPanel.Slots[1].Item = self:CreateSpawnIcon( self.ItemPanel.Slots[1], FILL, 0, 0, "models/props_combine/combine_interface00" .. math.random( 1, 3 ) .. ".mdl", "Terminal" );
self.ItemPanel.Slots[2].Item = self:CreateSpawnIcon( self.ItemPanel.Slots[2], FILL, 0, 0, "models/props_wasteland/controlroom_desk001b.mdl", "Workbench" );
self.ItemPanel.Slots[3].Item = self:CreateSpawnIcon( self.ItemPanel.Slots[3], FILL, 0, 0, "models/props_c17/gaspipes006a.mdl", "ASS" );
self.ItemPanel.Slots[6].Item = self:CreateSpawnIcon( self.ItemPanel.Slots[6], FILL, 0, 0, "models/Mechanics/gears/gear12x6.mdl", "Settings" );
else
for i = 1, INV_SIZE do
if( self.ItemPanel.Slots[i].Item and self.ItemPanel.Slots[i].Item:IsValid() ) then
self.ItemPanel.Slots[i].Item:Remove();
end
if( LocalPlayer().Inventory[i] ) then
local v = LocalPlayer().Inventory[i];
self.ItemPanel.Slots[i].Item = self:CreateSpawnIcon( self.ItemPanel.Slots[i], FILL, 0, 0, GAMEMODE.Items[v].Model, GAMEMODE.Items[v].Name );
end
end
end
end
function GM:OpenWorkbench( ent )
LocalPlayer().Workbench = true;
LocalPlayer().WorkbenchEnt = ent;
self.WorkbenchPanel = self:CreateFrame( I18( "workbench" ), 600, 300 );
self.WorkbenchPanel.OnClose = function() self:ClearWorkbench( LocalPlayer() ); end
local list = self:CreateScrollPanel( self.WorkbenchPanel, LEFT, 200, 0 );
list:DockMargin( 10, 10, 10, 10 );
local SelectedPowerup = "";
local Ingredients = { };
local d = self:CreatePanel( self.WorkbenchPanel, FILL );
d:DockPadding( 10, 10, 10, 10 );
local title = self:CreateLabel( d, TOP, "Name", "NSS Title 32", 8 );
local desc = self:CreateLabel( d, TOP, "Desc", "NSS 16", 8 );
desc:SetWrap( true );
desc:SetTall( 4 * 16 );
desc:DockMargin( 0, 0, 0, 30 );
local ih = 64;
local padding = 6;
local reqLabel = self:CreateLabel( d, TOP, I18( "required_items" ), "NSS 16", 7 );
reqLabel:DockMargin( 0, 0, 0, 10 );
local reqPanel = self:CreatePanel( d, TOP, 0, ih );
reqPanel:SetPaintBackground( false );
local bCraft = self:CreateButton( d, BOTTOM, 0, 30, I18( "create" ), "NSS 24", function()
if( SelectedPowerup and SelectedPowerup != "" ) then
if( self:GetState() == STATE_GAME ) then
for k, _ in pairs( Ingredients ) do
LocalPlayer().Inventory[k] = nil;
end
GAMEMODE:UpdateItemHUD();
net.Start( "nCreatePowerup" );
net.WriteString( SelectedPowerup );
net.WriteEntity( LocalPlayer().WorkbenchEnt );
net.SendToServer();
self.WorkbenchPanel:FadeOut();
self:ClearWorkbench( LocalPlayer() );
if( GAMEMODE.Powerups[SelectedPowerup].OnCreate ) then
GAMEMODE.Powerups[SelectedPowerup].OnCreate( LocalPlayer() );
end
chat.AddText( Color( 255, 255, 255 ), I18( "you_created" ) .. " ", Color( 255, 0, 0 ), GAMEMODE.Powerups[SelectedPowerup].Name, Color( 255, 255, 255 ), "." );
end
end
end );
bCraft:SetBackgroundColor( team.GetColor( LocalPlayer():Team() ) );
d:SetVisible( false );
for k, v in SortedPairsByMemberValue( self.Powerups, "Name" ) do
local b = self:CreateButton( list, TOP, 0, 30, v.Name, "NSS 18", function()
SelectedPowerup = k;
d:SetVisible( true );
title:SetText( v.Name );
desc:SetText( v.Desc );
reqPanel:Clear();
local hasIng = true;
local used = { };
for _, v in pairs( v.Ingredients ) do
local s = self:CreateSpawnIcon( reqPanel, LEFT, ih, 0, self.Items[v].Model, self.Items[v].Name );
s:DockMargin( 0, 0, padding, 0 );
local k = LocalPlayer():HasItem( v, used );
if( k ) then
used[k] = true;
else
hasIng = false;
s:SetDisabled( true );
end
end
if( hasIng ) then
bCraft:SetDisabled( false );
Ingredients = used;
else
bCraft:SetDisabled( true );
end
end );
b:DockMargin( 0, 0, 0, 6 );
end
end
function GM:ClearWorkbench( ply )
ply.Workbench = false;
ply.WorkbenchEnt = nil;
if( ply == LocalPlayer() ) then
if( self.WorkbenchPanel and self.WorkbenchPanel:IsValid() ) then
self.WorkbenchPanel:FadeOut();
end
self.WorkbenchPanel = nil;
end
end
function GM:WorkbenchThink()
for _, v in pairs( player.GetAll() ) do
if( v.Workbench ) then
if( !v.WorkbenchEnt or !v.WorkbenchEnt:IsValid() ) then
self:ClearWorkbench( v );
elseif( v.WorkbenchEnt:GetPos():Distance( v:GetPos() ) > 100 ) then
self:ClearWorkbench( v );
end
end
end
end
local function nOpenWorkbench( len )
local ent = net.ReadEntity();
GAMEMODE:OpenWorkbench( ent );
end
net.Receive( "nOpenWorkbench", nOpenWorkbench );
local function nSetPowerup( len )
local ply = net.ReadEntity();
local powerup = net.ReadString();
ply.Powerup = powerup;
end
net.Receive( "nSetPowerup", nSetPowerup );
local function nClearPowerup( len )
local ply = net.ReadEntity();
ply.Powerup = nil;
end
net.Receive( "nClearPowerup", nClearPowerup ); |
local ServerScriptService = game:GetService("ServerScriptService")
local agentsFolder = ServerScriptService:WaitForChild("Agents", 2)
local aiBase = require(agentsFolder:WaitForChild("PathfindingAiBase", 2))
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local require = require(ReplicatedStorage:WaitForChild("Nevermore"))
local HumanoidList = require("HumanoidFinder")
local rq = require("Std").rquery
local perception = require("perception")
local StateMachineMachine = require("StateMachineMachine")
local soldatAiProto = {
_configs = {},
CurrentTarget = nil,
SoldatModel = nil,
SoldatTorso = nil
}
local soldatBrainMeta = { __index = soldatAiProto }
function soldatAiProto:PushStates()
local IdleState = self:GetIdleState()
local defaultFaceCFrame = self.SoldatTorso.CFrame
local desiredFaceAngle = 0
local lastTurned = 0
local turningGyro = self.SoldatTorso.BodyGyro
local turnWait = math.random(5,10)
self.CurrentTarget = game.Workspace:FindFirstChild("Zombie") -- ***<--- FIX THIS TO BE DYNAMIC
local IdleState = self:GetIdleState()
IdleState.Action = function()
local now = os.time()
if now - lastTurned > turnWait then
desiredFaceAngle = math.random(-60, 60)
lastTurned = now
turnWait = math.random(5,10)
end
local currentFaceDirection = self.SoldatTorso.CFrame.lookVector
local angle = math.acos(currentFaceDirection:Dot(defaultFaceCFrame.lookVector))
turningGyro.cframe = defaultFaceCFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(desiredFaceAngle),0)
end
IdleState.Init = function()
turningGyro.maxTorque = Vector3.new(0, 10000, 0)
end
local lastAttack = 0
local AttackState = self.StateMachine.NewState("Attack")
local AimTrack = self.SoldatModel.Humanoid:LoadAnimation(self.SoldatModel.Animations.Aim)
local aiming = false
AttackState.Action = function()
if self.CurrentTarget then
-- go into aiming animation
if not aiming then
aiming = true
AimTrack:Play()
end
-- face the target
local currentTargetTorso = rq.PersonageTorsoOrEquivalent(self.CurrentTarget)
self.SoldatModel:SetPrimaryPartCFrame(CFrame.new(
self.SoldatTorso.Position,
Vector3.new(currentTargetTorso.Position.X,
self.SoldatTorso.Position.Y,
currentTargetTorso.Position.Z))*CFrame.Angles(0,-math.pi/3,0))
local now = os.time()
if now - lastAttack > self:GetConfigValue("AttackCooldown") then
lastAttack = now
-- render shot
local toTarget = currentTargetTorso.Position - self.SoldatTorso.Position
local hit = -toTarget.magnitude/self:GetConfigValue("AggroRange") + 1
if math.random() < hit then
self.CurrentTarget.Humanoid.Health =
self.CurrentTarget.Humanoid.Health - self:GetConfigValue("Damage")
else
-- missed!
local hOffset = toTarget:Cross(Vector3.new(0,1,0)).unit * 5 * math.random(-1, 1)
toTarget = toTarget + hOffset
local missRay = Ray.new(self.SoldatTorso.Position, toTarget.unit * 1000)
local ignoreList = {}
table.insert(ignoreList, self.SoldatModel)
local part, position = game.Workspace:FindPartOnRayWithIgnoreList(missRay, ignoreList)
if part then
if part and part.Parent and part.Parent:FindFirstChild("Humanoid") and
part.Parent ~= "Soldier" then
if game.Players:GetPlayerFromCharacter(part.Parent) and not self:GetConfigValue("CanDamagePlayer") then
return
end
local otherHumanoid = part.Parent:FindFirstChild("Humanoid")
otherHumanoid.Health = otherHumanoid.Health - self:GetConfigValue("Damage")
end
end
end
local shot = Instance.new("Part", game.Workspace)
shot.FormFactor = Enum.FormFactor.Custom
shot.Size = Vector3.new(.1,.1,toTarget.magnitude)
shot.Anchored = true
shot.CanCollide = false
--shot.Position = soldier.Torso.Position + toTarget / 2
shot.CFrame = CFrame.new(self.SoldatTorso.Position + toTarget / 2, self.SoldatTorso.Position)
shot.BrickColor = BrickColor.Yellow()
game.Debris:AddItem(shot, .1)
end
end
end
AttackState.Init = function()
turningGyro.maxTorque = Vector3.new(0, 0, 0)
end
-- CONDITIONS
local CanSeeTarget = self.StateMachine.NewCondition()
CanSeeTarget.Name = "CanSeeTarget"
CanSeeTarget.Evaluate = function()
local humanoids = HumanoidList:GetCurrent()
local soldiers = {}
local enemies = {}
for _, object in pairs(humanoids) do
if object
and object.Parent
and not game.Players:GetPlayerFromCharacter(object.Parent) and object.Health > 0
and object.WalkSpeed > 0 and object.Parent:FindFirstChild("Torso") then
local torso = rq.PersonageTorsoOrEquivalent(object.Parent)
local distance = (self.SoldatTorso.Position - torso.Position).magnitude
if distance <= self.GetConfigValue("AggroRange") then
if object.Parent.Name == "Soldier" then
table.insert(soldiers, object.Parent)
else
table.insert(enemies, object.Parent)
end
end
end
end
local target = perception:GetClosestVisibleTarget(
self.SoldatModel, enemies, soldiers, self:GetConfigValue("FieldOfView"))
if target then
self.CurrentTarget = target
return true
end
return false
end
CanSeeTarget.TransitionState = AttackState
local TargetDead = self.StateMachine.NewCondition()
TargetDead.Name = "TargetDead"
TargetDead.Evaluate = function()
if self.CurrentTarget and self.CurrentTarget:FindFirstChild("Humanoid") then
return self.CurrentTarget.Humanoid.Health <= 0
end
return true
end
TargetDead.TransitionState = IdleState
table.insert(IdleState.Conditions, CanSeeTarget)
table.insert(AttackState.Conditions, TargetDead)
self.StateMachine.SwitchState(IdleState)
self.Stop = function()
self.StateMachine.SwitchState(nil)
end
end
function soldatAiProto:LoadConfigsFromModel(soldatModel)
local configTable = soldatModel:FindFirstChild("Configurations")
self:LoadConfig(configTable, "AggroRange", 100)
self:LoadConfig(configTable, "FieldOfView", 180)
self:LoadConfig(configTable, "Damage", 50)
self:LoadConfig(configTable, "AttackCooldown", 1)
self:LoadConfig(configTable, "CanDamagePlayer", false)
end
-- ***************************************
-- ***************************************
-- {48bfcbf7-e9c5-488b-96ab-9158850d2055}
-- Create metatable for this
-- ***************************************
-- ***************************************
function soldatAiProto:Init(soldatModel)
self:LoadConfigsFromModel(soldatModel)
self.SoldatModel = soldatModel
self.SoldatTorso = rq.PersonageTorsoOrEquivalent(self.SoldatModel)
self.StateMachine = StateMachineMachine.NewStateMachine()
self:PushStates()
end
local soldatAiModule = {}
function soldatAiModule.new(soldatModel, targetNames)
local aiInstanceMeta = setmetatable({}, soldatBrainMeta)
local aiInstance = setmetatable(aiInstanceMeta, aiBase.new())
aiInstance:Init(soldatModel)
return aiInstance
end
return soldatAiModule |
--Type => SubSystem
--Type => SubSystem
--ThingToBuild => name of subsystem to build
--RequiredResearch => global research dependencies
--RequiredShipSubSystems => subsystems dependencies for local to the ship
--RequiredFleetSubSystems => Fleet wide subsystem dependencies
--DisplayPriority => Order in UI lists
--DisplayedName => Localized name for UI
--Description => Description for UI
Ship = 0
SubSystem = 1
dofilepath("data:scripts/races/vaygr_hwce/scripts/out_vgr_bld.lua")
dofilepath("data:scripts/techfunc.lua")
PrintBuildNames()
|
reb = reb or {}
include("shared.lua")
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua") |
-- This is a piece based on Arvo Part work
-- It uses the tintinabulation technique and the structure of Cantus in Memorian of Benjamin Britten
-- https://soundcloud.com/victor-bombi/arvo-parts-cantus-remake
-- motion track of movie in : https://vimeo.com/222002715
LILY = require"sc.lilypond"
--local NRT = require"sc.nrt":Gen(1100)
------------------------------- synthdefs -----------------------------
-- early reflections generations
ER = require"sc.ER"()
-- reverb
SynthDef("dwgreverb", { busin=0, busout=0,predelay=0.1,c1=4,c3=4,len=1200,mix = 1},function()
local source=Mix(In.ar(busin,2));
source = DelayC.ar(source,0.5,predelay)
source = DWGReverbC1C3_16.ar(source,len,c1,c3,mix)
ReplaceOut.ar(busout,source)
end):store();
-- body resonances for bowed
body_resons={{118, 18, -33},
{274, 22, -34.5},
{449, 10, -16},
{547, 16, -15.5},
{840, 50, -31},
{997, 30, -20.4},
{1100, 30, -34},
{1290, 25, -29},
{1500, 50, -28},
{1675, 60, -22},
{1900, 60, -20}}
sc = require"sclua.Server".Server()
gainLB = sc.Bus()
curr_panel = addPanel{type="hbox",name="body"}
Slider("gainL",0,120,50,function(val) gainLB:set(val) end)
gainSB = sc.Bus()
Slider("gainS",0,2,0,function(val) gainSB:set(val) end)
gainHB = sc.Bus()
Slider("gainH",0,2,2,function(val) gainHB:set(val) end)
SynthDef("bowsoundboard", { busin=0, busout=0,mix=0.9,fLPF=6300,size=1,T1=1,gainS=0,gainL=60,gainH=2},function()
local str=In.ar(busin,2);
local coefs = TA{199, 211, 223, 227, 229, 233, 239, 241 } *size
local fdn = DWGSoundBoard.ar(str,nil,nil,mix,unpack(coefs:asSimpleTable()));
local bodyf = 0
T1 = T1:max(0.001)
for i,v in ipairs(body_resons) do
bodyf = bodyf + BPF.ar(str,v[1]*T1,1/(v[2]*T1))*db2amp(v[3])
end
gainL = In.kr(gainLB.busIndex,1)
gainS = In.kr(gainSB.busIndex,1)
gainH = In.kr(gainHB.busIndex,1)
local son = str*gainS + bodyf*gainL + fdn*gainH
son = LPF.ar(son,fLPF)
ReplaceOut.ar(busout,son)
end):store();
-- bowed section, set N=4 if it is too much for CPU
bowed = SynthDef("bowed", {out=0, freq=440, amp=0.5,velb=1,force=1, gate=1,pos=0.07,c1=2,c3=400,mistune = 5200,release=0.1,Z = 1,Zfac=1,B=4,Ztor=1.8,c1tor=2,c3tor=6000,pan=0,vibdeph=7,vibrate=4,vibonset=1,t_gate=1;
},function()
N = 12 --4 -- number of voices
local fratio = midi2ratio(0.025*12/N)
local freqs = TA():gseries(N,1 * fratio^(-N/2),fratio)
freq = freqs*freq
local vibfreq = Vibrato.kr{freq, rate= vibrate, depth= vibdeph/1000, delay= 0, onset= vibonset, rateVariation= 0.2, depthVariation= 0.1, iphase = 0,trig=t_gate}
amp = amp *velb
Z = Z*Zfac
local son = DWGBowedTor.ar(vibfreq, amp,force, gate,pos,release,c1,c3,Z,B,1 + mistune/1000,c1tor,c3tor,Ztor)*0.5
local mdel = 0.03
son = son:Doi(function(v,i) return DelayC.ar(v,0.2,LFDNoise3.kr(0.1,mdel,mdel))*LFDNoise3.kr(5,0.2,0.9) end)
Out.ar(out, Pan2.ar(Mix(son*0.04) ,0))
end):store();
------------------------------- some functions ----------------
-- function for do tintinabuli voice from main voice (notes) for chord and order (-3 to 3)
function Tintinabuli(notes,chord,order)
local tv = {}
for i,low in ipairs(notes) do
local tinv = {}
local dists = {}
local mindisindex = -1
for j=1,#chord do
local mid = chord[j]
--put mid over low-------------
local dist = low - mid
tinv[j] = mid + math.ceil(dist/7)*7
dist = tinv[j] - low
dists[#dists + 1] = {index=j,dist=dist}
end
table.sort(dists,function(a,b) return a.dist< b.dist end)
--find most near up
if order < 0 then
tv[#tv + 1] = tinv[dists[-order].index] - 7
else
tv[#tv + 1] = tinv[dists[order].index]
end
end
return tv
end
-- function to make real phrase from notes sequence
-- it repeats the sequence each time one note longer from ini to limit
function MakeFrase(notes,limit,ini)
limit = limit or #notes
ini = ini or 3
local phrase = {}
for i=ini,limit do
phrase[#phrase + 1] = LS(TA(notes)(1,i),1)
end
return phrase
end
-- the scale
hungarianL = {0, 2, 3, 6, 7, 8, 11}
escale = newScale(hungarianL) + 9 ---12
-- the phrases
frase = TA{5,8,10,9,8,7,6,5,4,3,2,1} +0
frase = frase..(frase - 7)..(frase - 14)
Tfrase = TA(Tintinabuli(frase,{1,3,5},-3))
fraseBass = TA{8,7,6,5,4,3,2,1}
TfraseBass = TA(Tintinabuli(fraseBass,{1,3,5},3))
-- print phrases
print(frase:Do(function(v) return numberToNote(getNote(v,escale)) end))
print(Tfrase:Do(function(v) return numberToNote(getNote(v,escale)) end))
-- function providing amp
function ppqpos2amp()
return linearmap(0,1000,0,0.5,theMetro.ppqPos)
end
------------------- sequences -------------------
seqM = {
dur = LOOP{2,1},
escale = {escale},
pan = -0.75,
vibdeph = 5,
force = 1,
pos = 0.14,
t_gate = 1,
Zfac = 1,
Ztor = 3,
B = 2,
velb = 1,
amp = LOOP{ENV({0.2,0.2,0.4,0.4},{0.0,0.2,0.7}),ENV({-0.2,-0.2,-0.5,-0.4},{0.0,0.2,0.7})} + LOOP{FS(ppqpos2amp),-FS(ppqpos2amp)},
degree = LS(MakeFrase(frase,34)) + 7*6
}
-- end sequence
finM = {
dur = LOOP{2,1}*10,
escale = {escale},
pan = -0.75,
vibdeph = 5,
force = seqM.force,
pos = seqM.pos,
Z = seqM.Z,
Ztor = seqM.Ztor,
B = seqM.B,
amp = LOOP{ERAMP(0.3,0.5,nil),ERAMP(-0.3,-0.3,nil)}
+ LOOP{FS(ppqpos2amp),-FS(ppqpos2amp)},
degree = frase[34] + 7*6
}
-- tintinabuli sequences
seqT = deepcopy(seqM)
seqT.degree = LS(MakeFrase(Tfrase,34)) + 7*6
finT = deepcopy(finM)
finT.degree = Tfrase[34] + 7*6
-- create a player that wont be added to OSCPlayers (this is made by OscEP)
-- and will be used for being copied by other players
play1 = OscEventPlayer:new{inst="bowed",mono=true,sends = {0.5},channel={level=db2amp(-8)}}
-- function for creating players: a normal player and a tintinabuli player
function DoVoic(durfac,ff,oct,off,pan,db,limit,ini,fras,Tfras,Tonly)
local Z = 1/ff
fras = fras or frase
Tfras = Tfras or Tfrase
if Tonly==nil then Tonly = false end
local seqM2 = deepcopy(seqM)
seqM2.dur = seqM2.dur*durfac
seqM2.degree = LS(MakeFrase(fras,limit,ini)) + 7*6 -7*oct
seqM2.pan = pan
seqM2.Z = Z
seqM2.vibonset = 0.5*ff
local finM2 = deepcopy(finM)
finM2.dur = finM2.dur*durfac
finM2.degree = fras[limit] + 7*6 -7*oct
finM2.pan = pan
finM2.Z = Z
finM2.vibonset = 0.5*ff
local seqT2 = deepcopy(seqT)
seqT2.dur = seqT2.dur*durfac
seqT2.degree = LS(MakeFrase(Tfras,limit,ini))+ 7*6 -7*oct
seqT2.pan = pan
seqT2.Z = Z
seqT2.vibonset = 0.5*ff
local finT2 = deepcopy(finT)
finT2.dur = finT2.dur*durfac
finT2.degree = Tfras[limit] + 7*6 -7*oct
finT2.pan = pan
finT2.Z = Z
finT2.vibonset = 0.5*ff
local fLPF = math.max(3000,linearmap(0,5,16000,2200,ff))
local play2
if not Tonly then
play2 = copyplayer(play1)
play2.channel.level = db2amp(db)
play2.ppqOffset = off
play2:Bind(LS{PS(seqM2),PS(finM2)})
play2.inserts = {{"bowsoundboard",{T1=1/(ff),size=ff,fLPF=fLPF}},{ER.synname,{angle=pan,bypass=0,dist=1}}}
end
local play2T = copyplayer(play1)
play2T.channel.level = db2amp(db)
play2T.ppqOffset = off
play2T:Bind(LS{PS(seqT2),PS(finT2)})
play2T.inserts = {{"bowsoundboard",{T1=1/(ff),size=ff,fLPF=fLPF}},{ER.synname,{angle=pan,bypass=0,dist=1}}}
return play2,play2T
end
-- use the function creating 10 voices
--durfac,body size,oct,offset,pan,db,limit,ini,fras,Tfras,Tonly
ply1,ply1T = DoVoic(1,1,0,0,-1,-2.5,34) --z=1
ply2,ply2T = DoVoic(2,1,1,18*1,-0.5,-0,24) --z=1
ply3,ply3T = DoVoic(4,2.5,2,(18 + 18*2)*1,-0.02,-0,13,nil,nil,nil,false) --z=0.5
ply4,ply4T = DoVoic(8,4,3,(18 + 18*2 + 18*4)*1,0.5,0,12) --z o.26
ply5,ply5T = DoVoic(16,5,4,(18 + 18*2 + 18*4 + 18*8)*1,1, 2,8,3,fraseBass,TfraseBass) --z=0.25
-------------------- stop players on beat 1070
actioncue=ActionEP{name="actioncue"}
actioncue:Bind{actions=LS{STOP(1070,unpack(OSCPlayers)),}}
------------------------- Master ----------------------------------------
MASTER{level=db2amp(-10)}
FreqScope()
--DiskOutBuffer("tintinabuli_bodys6.wav")
Effects={FX("dwgreverb",db2amp(-10),nil,{c1=2.4,c3=6,len=1551})}
theMetro:play(240,nil,nil,30)
theMetro:start()
-- uncomment to use lilypond
--LILY:Gen(0,1070,TA(OSCPlayers),{time="6/4"}) |
local extension = {}
local panel = nil
extension.name = "Dark Votescreen"
extension.is_enabled = true
function extension.OnVoteStarted()
panel = vgui.Create("pam_votescreen_dark")
end
function extension.OnVoteCanceled()
panel:Remove()
end
function extension.OnVoterAdded(ply, map_id)
panel:AddVoter(ply, map_id)
end
function extension.OnVoterRemoved(ply)
panel:RemoveVoter(ply)
end
function extension.OnWinnerAnnounced()
panel:AnnounceWinner()
end
function extension.ToggleVisibility()
panel:SetVisible(not panel:IsVisible())
end
function extension.OnEnable()
if PAM.state != PAM.STATE_DISABLED then
extension.OnVoteStarted()
for steam_id, map_id in pairs(PAM.votes) do
extension.OnVoterAdded(player.GetBySteamID(steam_id), map_id)
end
end
if PAM.state == PAM.STATE_FINISHED then
extension.OnWinnerAnnounced()
end
end
function extension.OnDisable()
if PAM.state != PAM.STATE_DISABLED then
panel:Remove()
end
end
hook.Add("PAM_Register_Client_Extensions", "PAM_Register_Votescreen_Dark", function()
PAM.RegisterExtension(extension)
end)
|
val1=0
val2=2
val3=3 |
local GTcpManager = class("GTcpManager")
function GTcpManager:ctor()
self._tcps = {} -- 多个GTcp列表 {tcpId=tcp} 键值对
self._index = 0
self._pushCallbacks = {}
self._requestCallbacks = {}
self._requestArguments = {}
self._requestIndex = 0
end
function GTcpManager:init()
end
--清除所有tcp,--这个函数不出发回调
function GTcpManager:clear()
for id, tcp in pairs(self._tcps) do
tcp:disconnect()
end
end
--返回tcp的标记
function GTcpManager:connect(ip, port, connectFunc, disconnectFunc, timeout)
self._index = self._index + 1
local tcp = require("network.GTcp").create()
self._tcps[self._index] = tcp
local function connectCallback(id, state)
if state == enum.tcpConnectState.success then
connectFunc(true)
else
self._tcps[id]:disconnect()
self._tcps[id] = nil
connectFunc(false)
end
end
local function disconnectCallback(id)
self._tcps[id]:disconnect()
self._tcps[id] = nil
if disconnectFunc then disconnectFunc() end
end
tcp:init(self._index, connectCallback, disconnectCallback, handler(self, self.handleTcpData))
tcp:connect(ip, port, timeout)
return self._index
end
function GTcpManager:disconnect(id)
local tcp = self._tcps[id]
tcp:disconnect()
end
function GTcpManager:send(id, serviceType, serviceId, callback, p, ...)
if p and p.name then
local tcp = self._tcps[id]
if tcp then
local args = string.format(p.args, ...)
self._requestIndex = self._requestIndex + 1
tcp:send(serviceType, serviceId, {name=p.name, args=args}, self._requestIndex)
if callback then --保留发送的数据
self._requestCallbacks[self._requestIndex] = callback
if p.keepData then
local newArgs = {}
local len = select("#", ...)
for i = 1, len do
table.insert(newArgs, select(i, ...))
end
self._requestArguments[self._requestIndex] = newArgs
end
end
else
print("[GTcpManager] unkonw tcpId :", id)
end
else
print("[GTcpManager] unkonw protocol.")
end
end
function GTcpManager:handleTcpData(id, requestId, protocolName, state, data)
if requestId > 0 then
local callback = self._requestCallbacks[requestId]
self._requestCallbacks[requestId] = nil
local sendArgs = self._requestArguments[requestId]
self._requestArguments[requestId] = nil
if state == enum.server.response.success then --正常返回
if callback then
callback(protocolName, data, sendArgs)
end
else
self:handleException(protocolName, state)
end
else
if state == enum.server.response.push then --推送数据
local callback = self._pushCallbacks[protocolName]
if callback then
callback(protocolName, data)
end
elseif state == enum.server.response.disconnect then --断开,被服务器踢掉,比如,帐号被顶掉
self._tcps[id]:disconnect()
self._tcps[id] = nil
local msg = data.msg or ""
event.broadcast(event.network.disconnectByServer, {msg=msg}) --有一根线被踢掉了
else
self:handleException(protocolName, state)
end
end
end
--异常处理,反映到上层可能点了没有反应
function GTcpManager:handleException(protocolName, state)
warning(protocolName, tostring(state))
end
--不支持两个函数同时注册一个推送
function GTcpManager:registerPushHandler(protocol, callback)
if not protocol or not callback then
print("[GTcpManager] protocol or callback is empty.")
return
end
self._pushCallbacks[protocol.name] = callback
end
function GTcpManager:unregisterPushHandler(protocol)
if protocol == nil then
print("[GTcpManager] protocol is empty.")
return
end
self._pushCallbacks[protocol.name] = nil
end
return GTcpManager
|
-- This is a part of uJIT's testing suite.
-- Copyright (C) 2015-2019 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
assert(jit.status() == true)
jit.opt.start(0, 'fold', 'loop', 'dse', 'cse', 'jitcat')
-- BUFSTR IR causes an allocation, so corresponding TBAR
-- should not be eliminated by the CSE optimization.
local N = 1e3
local out = {''}
for i = 1, N do
out[i + 1] = "foo" .. out[i]
end
print("out_len=" .. #out)
|
--[[-----------------------------------------------------------------------------
* Infected Wars, an open source Garry's Mod game-mode.
*
* Infected Wars is the work of multiple authors,
* a full list can be found in CONTRIBUTORS.md.
* For more information, visit https://github.com/JarnoVgr/InfectedWars
*
* Infected Wars is free software: you can redistribute it and/or modify
* it under the terms of the MIT License.
*
* A full copy of the MIT License can be found in LICENSE.txt.
-----------------------------------------------------------------------------]]
include('shared.lua')
local matTripmineLaser = Material( "sprites/bluelaser1" )
local matLight = Material( "models/roller/rollermine_glow" )
local colBeam = Color( 50, 100, 210, 30 )
local colLaser = Color( 50, 100, 240, 30 )
killicon.Add( "turret", "killicon/infectedwars/turret", Color(255, 80, 0, 255 ) )
function ENT:Team()
return TEAM_HUMAN
end
function ENT:GetName()
return "< Turret >"
end
ENT.Name = ENT.GetName
function ENT:NickName()
return self.Entity:GetNetworkedString("nickname") or ""
end
function ENT:GetHealth()
return self.Entity:GetDTFloat( 0 ) or 0
end
function ENT:GetMaxHealth()
return self.Entity:GetDTFloat( 1 ) or 1
end
function ENT:Status()
return self.Entity:GetDTInt( 0 ) or TurretStatus.inactive
end
function ENT:GetMode()
return self.Entity:GetDTInt( 2 ) or st.FOLLOWING
end
function ENT:Kills()
return self.Entity:GetDTInt( 1 ) or 0
end
function ENT:OnRemove()
LocalPlayer().TurretStatus = TurretStatus.destroyed
end
function ENT:Think()
if not self.Entity:GetDTBool( 0 ) then return end
if self.Entity:GetOwner() == LocalPlayer() then
LocalPlayer().Turret = self
LocalPlayer().TurretStatus = self:Status()
if (self:NickName() == "") then
RunConsoleCommand("turret_nickname",TurretNickname)
end
end
local t = {}
t.start = self.Entity:GetPos() + self.Entity:GetAngles():Up()*2
t.endpos = t.start + self.Entity:GetAngles():Forward() * 4096
t.filter = {self.Entity, self.Entity:GetOwner()}
t.mask = MASK_PLAYERSOLID
local tr = util.TraceLine(t)
self.endpos = tr.HitPos
self.Entity:SetRenderBoundsWS( self.endpos, self.Entity:GetPos(), Vector()*8 )
if self:GetHealth() < 50 then
-- Smoke timer
self.SmokeTimer = self.SmokeTimer or (CurTime()+0.02)
if ( self.SmokeTimer <= CurTime() ) then
self.SmokeTimer = CurTime() + 0.02
-- Smoke effects
local spawnPos = self.Entity:GetPos()+Vector(math.random(0,8),math.random(0,8),math.random(0,8) )
local emitter = ParticleEmitter( spawnPos )
local particle = emitter:Add( "particles/smokey", spawnPos )
particle:SetVelocity( Vector(math.Rand(0,1)/3,math.Rand(0,1)/3,1):Normalize()*math.Rand( 10, 20 ) )
particle:SetDieTime( 0.7 )
particle:SetStartAlpha( math.Rand( 100, 150 ) )
particle:SetStartSize( math.Rand( 5, 10 ) )
particle:SetEndSize( math.Rand( 15, 30 ) )
particle:SetRoll( math.Rand( -0.2, 0.2 ) )
local ran = math.random(0,30)
particle:SetColor( 40+ran, 40+ran, 40+ran )
emitter:Finish()
end
end
end
function ENT:Draw()
self.Entity:DrawModel()
if not self.Entity:GetDTBool( 0 ) or not self.endpos then return end
render.SetMaterial( matTripmineLaser )
// offset the texture coords so it looks like it is scrolling
local TexOffset = CurTime() * 3
// Make the texture coords relative to distance so they are always a nice size
local Distance = self.endpos:Distance( self.Entity:GetPos() )
// Draw the beam
render.DrawBeam( self.endpos, self.Entity:GetPos(), 8, TexOffset, TexOffset+Distance/8, colBeam )
render.DrawBeam( self.endpos, self.Entity:GetPos(), 4, TexOffset, TexOffset+Distance/8, colBeam )
// Draw a quad at the hitpoint to fake the laser hitting it
render.SetMaterial( matLight )
local Size = math.Rand( 5, 8 )
local Normal = (self.Entity:GetPos()-self.endpos):GetNormal() * 0.1
render.DrawQuadEasy( self.endpos + Normal, Normal, Size, Size, colLaser, 0 )
end
// Turret nickname setting
local randnames = { "R2D2", "C3P0", "Bender", "George", "Bob" }
//CreateClientConVar("_iw_turretnickname", table.Random(randnames), true, false)
CreateClientConVar("_iw_turretnick", table.Random(randnames), true, true) //fixed :D
TurretNickname = GetConVarString("_iw_turretnick")
function SetTurretNick( pl,commandName,args )
if not args[1] then return end
if string.len(tostring(args[1])) > 15 then
pl:ChatPrint("Maximum nickname length is 15 characters!")
return
end
TurretNickname = args[1]
RunConsoleCommand("_iw_turretnick",tostring(args[1]))
RunConsoleCommand("turret_nickname",tostring(args[1]))
end
concommand.Add("iw_turretnickname",SetTurretNick)
|
local BOT_MT = TLG.GetBot("base")
local METHOD = TLG.NewMethod("deleteMessage")
function BOT_MT:DeleteMessage(a, b)
if istable(a) then
local MSG = a
return self:Request(METHOD)
:SetParam("chat_id", MSG["chat"]["id"])
:SetParam("message_id", MSG["message_id"])
else
return self:Request(METHOD)
:SetParam("chat_id", a)
:SetParam("message_id", b)
end
end
|
--====================================================================--
-- dmc_widget/widget_button.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2014-2015 David McCuskey
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]
--- Button Widget Module
-- @module Widget.Button
-- @usage
-- local dUI = require 'dmc_ui'
-- local widget = dUI.newButton()
--====================================================================--
--== DMC Corona UI : Widget Button
--====================================================================--
-- Semantic Versioning Specification: http://semver.org/
local VERSION = "0.1.0"
--====================================================================--
--== DMC UI Setup
--====================================================================--
local dmc_ui_data = _G.__dmc_ui
local dmc_ui_func = dmc_ui_data.func
local ui_find = dmc_ui_func.find
--====================================================================--
--== DMC UI : newButton
--====================================================================--
--====================================================================--
--== Imports
local ButtonBase = require( ui_find( 'dmc_widget.widget_button.button_base' ) )
local PushButton = require( ui_find( 'dmc_widget.widget_button.button_push' ) )
local RadioButton = require( ui_find( 'dmc_widget.widget_button.button_radio' ) )
local ToggleButton = require( ui_find( 'dmc_widget.widget_button.button_toggle' ) )
--===================================================================--
--== Button Factory
--===================================================================--
local function initializeButtons( manager )
-- print( "Buttons.initialize" )
dUI = manager
local Style = dUI.Style
ButtonBase.STYLE_CLASS = Style.Button
ButtonBase.initialize( manager )
Style.registerWidget( ButtonBase )
end
local Buttons = {}
Buttons.initialize = initializeButtons
-- export class instantiations for direct access
Buttons.Base = ButtonBase
Buttons.PushButton = PushButton
Buttons.ToggleButton = ToggleButton
Buttons.RadioButton = RadioButton
-- Button factory method
function Buttons.create( params )
-- print( "Buttons.create", params.type )
params = params or {}
if params.action==nil then params.action=PushButton.TYPE end
--==--
local action = params.action
if action == PushButton.TYPE then
return PushButton:new( params )
elseif action == RadioButton.TYPE then
return RadioButton:new( params )
elseif action == ToggleButton.TYPE then
return ToggleButton:new( params )
else
error( "newButton: unknown button type: " .. tostring( action ) )
end
end
return Buttons
|
require 'rockspec'
package('rockspec','0.1')
depends 'penlight'
Lua.directory '.'
Lua.module.rockspec()
rockspec.write()
|
--***********************************************************
--** THE INDIE STONE **
--***********************************************************
require "ISUI/ISPanel"
local FONT_HGT_MEDIUM = getTextManager():getFontHeight(UIFont.Medium)
if debugScenarios == nil then
debugScenarios = {}
end
---@class DebugScenarios : ISPanel
DebugScenarios = ISPanel:derive("DebugScenarios");
selectedDebugScenario = nil;
function DebugScenarios:createChildren()
self.header = ISLabel:new(self.width / 2, 0, 40, "SCENARIOS", 1,1,1,1, UIFont.Large, true);
self.header.center = true;
self:addChild(self.header);
local listY = self.header:getBottom()
self.listbox = ISScrollingListBox:new(16, listY, self:getWidth()-32, self:getHeight()-16-listY);
self.listbox:initialise();
self.listbox:instantiate();
self.listbox:setFont(UIFont.Medium, 2);
self.listbox.drawBorder = true;
self.listbox.doDrawItem = DebugScenarios.drawItem;
self.listbox:setOnMouseDownFunction(self, DebugScenarios.onClickOption);
self:addChild(self.listbox);
for k,v in pairs(debugScenarios) do
self.listbox:addItem(v.name, k);
end
self:setMaxDrawHeight(self.header:getBottom())
end
function DebugScenarios:prerender()
local height = self:getHeight();
if self:getMaxDrawHeight() ~= -1 then
height = self:getMaxDrawHeight();
end
if self.background then
self:drawRectStatic(0, 0, self.width, height, self.backgroundColor.a, self.backgroundColor.r, self.backgroundColor.g, self.backgroundColor.b);
self:drawRectBorderStatic(0, 0, self.width, height, self.borderColor.a, self.borderColor.r, self.borderColor.g, self.borderColor.b);
end
end
function DebugScenarios:drawItem(y, item, alt)
if self.mouseoverselected == item.index then
self:drawRect(0, y, self:getWidth(), item.height-1, 0.25,0.5,0.5,0.5);
end
self:drawRectBorder(0, y + item.height - 1, self:getWidth(), 1, 0.5, self.borderColor.r, self.borderColor.g, self.borderColor.b);
-- the name of the story
self:drawText(item.text, 16, y + (item.height - FONT_HGT_MEDIUM) / 2, 0.6, 0.7, 0.9, 1.0, UIFont.Medium);
return y+item.height;
end
function DebugScenarios:onMouseMove(dx, dy)
ISPanel.onMouseMove(self, dx, dy);
self:setMaxDrawHeight(self:getHeight());
end
function DebugScenarios:onMouseMoveOutside(dx, dy)
ISPanel.onMouseMoveOutside(self, dx, dy);
self:setMaxDrawHeight(self.header:getBottom());
end
function DebugScenarios:new (x, y, width, height)
local o = ISPanel:new(x, y, width, height);
setmetatable(o, self)
self.__index = self
o.x = x;
o.y = y;
o.backgroundColor = {r=0.0, g=0.05, b=0.1, a=1.0};
o.borderColor = {r=1, g=1, b=1, a=0.7};
return o
end
function DebugScenarios:onClickOption(option)
local scenario = debugScenarios[option];
self:launchScenario(scenario);
end
function DebugScenarios:launchScenario(scenario)
MainScreen.instance:setBeginnerPreset();
if(scenario ~= nil) then
selectedDebugScenario = scenario;
end
if selectedDebugScenario.setSandbox ~= nil then
selectedDebugScenario.setSandbox();
end
local worldName = ZombRand(100000)..ZombRand(100000)..ZombRand(100000)..ZombRand(100000);
getWorld():setWorld(worldName);
createWorld(worldName);
GameWindow.doRenderEvent(false);
Events.OnNewGame.Add(DebugScenarios.ongamestart);
Events.LoadGridsquare.Add(DebugScenarios.onloadgs);
forceChangeState(GameLoadingState.new());
DebugScenarios.instance:setVisible(false);
end
function doDebugScenarios()
local x = getCore():getScreenWidth() / 2;
local y = getCore():getScreenHeight() / 2;
x = x - 250;
y = y - 250;
local debug = DebugScenarios:new(x, y, 500, 500);
MainScreen.instance:addChild(debug);
DebugScenarios.instance = debug;
-- check if any scenarios have the forceLaunch option, in this case we launch it directly, save more clicks!
for i,v in pairs(debugScenarios) do
if v.forceLaunch and getDebugOptions():getBoolean("DebugScenario.ForceLaunch") then
DebugScenarios.instance:launchScenario(v);
end
end
end
function DebugScenarios:onResolutionChange(oldw, oldh, neww, newh)
local x = neww / 2;
local y = newh / 2;
self:setX(x - 250);
self:setY(y - 250);
end
function DebugScenarios.onloadgs(sq)
if selectedDebugScenario and selectedDebugScenario.onLoadGS then
selectedDebugScenario.onLoadGS(sq);
end
end
function DebugScenarios.ongamestart()
if selectedDebugScenario and selectedDebugScenario.onStart then
CharacterCreationHeader.instance:randomGenericOutfit();
getPlayer():setDescriptor(MainScreen.instance.desc);
getPlayer():Dressup(MainScreen.instance.desc);
selectedDebugScenario.onStart();
end
end
|
hello = function()
print("Hello, World!")
end
handle("/", hello)
|
data:extend(
{
{
type = "bool-setting",
name = "gtts-z-No-Runtime-Adjustments",
setting_type = "startup",
default_value = false,
},
{
type = "bool-setting",
name = "gtts-Adjust-GameSpeed",
setting_type = "startup",
default_value = true,
},
{
type = "int-setting",
name = "gtts-Target-FrameRate",
setting_type = "startup",
default_value = 60,
},
{
type = "bool-setting",
name = "gtts-Adjust-DayNight",
setting_type = "runtime-global",
default_value = false,
},
{
type = "bool-setting",
name = "gtts-Adjust-WindSpeed",
setting_type = "runtime-global",
default_value = false,
},
{
type = "bool-setting",
name = "gtts-fluid-speed",
setting_type = "startup",
default_value = false,
},
{
type = "bool-setting",
name = "gtts-Reset-GameSpeed",
setting_type = "runtime-global",
default_value = false,
},
{
type = "bool-setting",
name = "gtts-Adjust-HandCraftingSpeed",
setting_type = "runtime-global",
default_value = false,
},
{
type = "bool-setting",
name = "gtts-Adjust-Pollution",
setting_type = "runtime-global",
default_value = false,
},
{
type = "bool-setting",
name = "gtts-Adjust-Evolution",
setting_type = "runtime-global",
default_value = false,
},
{
type = "bool-setting",
name = "gtts-Adjust-Expansion",
setting_type = "runtime-global",
default_value = false,
},
{
type = "bool-setting",
name = "gtts-Adjust-Groups",
setting_type = "runtime-global",
default_value = false,
},
}
) |
local PATH = (...):gsub('%.[^%.]+$', '')
local Component = require(PATH .. '.component')
local log = require 'log'
local Coroutine = Component:extend()
-- function(co, dt)
-- co:wait(3)
-- co:waitUntil(...)
-- end
function Coroutine:new(func)
Coroutine.super.new(self)
self.coroutine = coroutine.create(func)
end
function Coroutine:update(dt)
local co = self.coroutine
local ok, message = coroutine.resume(co, self, dt)
if not ok then
log.error(message)
end
if coroutine.status(co) == 'dead' then
self.removeMe = true
end
end
function Coroutine:wait(limit)
local count = 0
while count < limit do
local _, dt = coroutine.yield()
count = count + dt
end
end
function Coroutine:waitUntil(condition, arg1, arg2)
while not condition(arg1, arg2) do
coroutine.yield()
end
end
function Coroutine:waitForAnimation(animation)
while not animation:isPaused() do
coroutine.yield()
end
end
function Coroutine:__tostring()
return 'Coroutine'
end
return Coroutine
|
local item = ...
local game = item:get_game()
--this code should probably be somewhere else
function game:add_stored_blood_vials(amount)
if game:get_value"stored_blood_vials" == nil then game:set_value("stored_blood_vials", 0) end
game:set_value("stored_blood_vials", game:get_value"stored_blood_vials" + amount)
end
function game:remove_stored_blood_vials(amount)
if game:get_value"stored_blood_vials" == nil then game:set_value("stored_blood_vials", 0) end
game:set_value("stored_blood_vials", game:get_value"stored_blood_vials" - amount)
if game:get_value"stored_blood_vials" <= 0 then
game:set_value("stored_blood_vials", 0)
end
end
function game:replenish_blood_vials()
local user_item = game:get_item("blood_vial_user")
local needed_vials = 20 - user_item:get_amount()
if not game:get_value"stored_blood_vials" then game:set_value("stored_blood_vials", 0) end
if game:get_value"stored_blood_vials" < needed_vials then
user_item:add_amount(game:get_value"stored_blood_vials")
game:set_value("stored_blood_vials", 0)
else
game:remove_stored_blood_vials(needed_vials)
user_item:add_amount(needed_vials)
end
end
function item:on_obtaining(variant)
item:set_brandish_when_picked(false)
local amounts = {1, 2, 5}
local user_item = game:get_item("blood_vial_user")
local amount_obtained = amounts[variant]
local held_amount = user_item:get_amount()
local amount_over_20 = math.max(held_amount + amount_obtained - 20, 0)
user_item:add_amount(amount_obtained - amount_over_20)
game:add_stored_blood_vials(amount_over_20)
end
|
return
{
name="Flow",
description="Calculate water flow.",
options=
{
{name="Layer", type="list", value="Layer 2", list={"Layer 1","Layer 2","Layer 3","Layer 4","Layer 5","Layer 6","Layer 7","Layer 8","Mask 1","Mask 2","Mask 3"}},
{name="Bias", type="value", value=0.87},
{name="Replace value?", type="flag", value=false},
{name="Use Mask 0?", type="flag", value=false},
{name="Invert Mask 0?", type="flag", value=false},
{name="Use Mask 1?", type="flag", value=false},
{name="Invert Mask 1?", type="flag", value=false},
{name="Use Mask 2?", type="flag", value=false},
{name="Invert Mask 2?", type="flag", value=false},
},
execute=function(self)
local ops=GetOptions(self.options)
local b=ops["Bias"]
local layername=ops["Layer"]
local which=-1
if layername=="Layer 1" then which=0
elseif layername=="Layer 2" then which=1
elseif layername=="Layer 3" then which=2
elseif layername=="Layer 4" then which=3
elseif layername=="Layer 5" then which=4
elseif layername=="Layer 6" then which=5
elseif layername=="Layer 7" then which=6
elseif layername=="Layer 8" then which=7
end
local ms=MaskSettings(ops["Use Mask 0?"], ops["Invert Mask 0?"], ops["Use Mask 1?"], ops["Invert Mask 1?"], ops["Use Mask 2?"], ops["Invert Mask 2?"])
local buf=CArray2Dd()
local arr=CArray2Dd()
TerrainState:GetHeightMap(arr)
waterFlow(arr,buf,0)
print("Water flow min/max: "..buf:getMin().." / "..buf:getMax())
buf:scaleToRange(0,1)
buf:bias(b)
if which==-1 then
if layername=="Mask 1" then
TerrainState:SetMaskBuffer(buf, 0)
elseif layername=="Mask 2" then
TerrainState:SetMaskBuffer(buf, 1)
elseif layername=="Mask 3" then
TerrainState:SetMaskBuffer(buf, 2)
end
else
if ops["Replace value?"] then
TerrainState:SetLayerBuffer(buf,which,ms)
else
TerrainState:SetLayerBufferMax(buf,which,ms)
end
end
end
}
|
Timer = require("timer")
function assert_very_close(a, b)
local tol = 0.0000000001
assert(math.abs(a - b) < tol,
string.format("%.10f is not equal within %.10f of %10f",
a, tol, b))
end
function test_basic()
-- test basic functionality
local basic = {x=0, y=0}
Timer.tween(3, basic, {x=99, y=66})
Timer.update(1)
assert_very_close(basic.x, 33)
assert_very_close(basic.y, 22)
Timer.update(2)
assert_very_close(basic.x, 99)
assert_very_close(basic.y, 66)
end
function test_tween_userdata()
-- only run if love is not nil!
if love ~= nil then
Timer.func_tween(5, love.graphics, {Color={0, 0, 0}})
Timer.update(5)
local r, g, b, a = love.graphics.getColor()
assert_very_close(r, 0)
assert_very_close(g, 0)
assert_very_close(b, 0)
assert_very_close(a, 1)
end
end
function test_tween_subtable()
-- test tweening for sub-table
local inner_table = {posn={x=20, y=20}}
Timer.tween(4, inner_table, {posn={x=10, y=30}})
Timer.update(4)
assert_very_close(inner_table.posn.x, 10)
assert_very_close(inner_table.posn.y, 30)
end
function test_tweening_arraylike()
-- test tweening for array-like
local array_like = {40, -11}
Timer.tween(30, array_like, {-10, -10})
Timer.update(30)
assert_very_close(array_like[1], -10)
assert_very_close(array_like[2], -10)
end
function test_tween_setget()
-- -- test tweening for single getter/setter
univar_setget = {
getX = function(self)
return self.x
end,
getY = function(self)
return self.y
end,
setX = function(self, x)
self.x = x
end,
setY = function(self, y)
self.y = y
end,
x = 60,
y = 60
}
Timer.func_tween(5, univar_setget, {X=10, Y=180}, nil, nil, {
X={univar_setget.setX, univar_setget.getX},
Y={univar_setget.setY, univar_setget.getY}})
Timer.update(5)
assert_very_close(univar_setget:getX(), 10)
assert_very_close(univar_setget:getY(), 180)
end
function test_tweening_multivalue_setget()
-- test tweening for multi-value getter/setter
--[[
Some functions such as `Body:set/getPosition` or `set/getLinearVelocity`
need and return multiple values
we should be able to handle that
--]]
multivar_setget = {
getP = function(self)
return self.x, self.y
end,
setP = function(self, x, y)
self.x = x
self.y = y
end,
x = 80,
y = 80
}
Timer.tween(10, multivar_setget, {P={65, 180}}, 'quad')
Timer.update(10)
assert_very_close(multivar_setget.x, 65)
assert_very_close(multivar_setget.y, 180)
end
function test_tweening_table_setget()
-- test tweening for table-based getter/setter
table_setget = {
getP = function(self)
return self.posn
end,
setP = function(self, posn)
self.posn.x = posn.x
self.posn.y = posn.y
end,
posn={x=100, y=100}
}
Timer.tween(10, table_setget, {P={x=65, y=180}}, 'quad')
Timer.update(10)
assert_very_close(table_setget.posn.x, 65)
assert_very_close(table_setget.posn.y, 180)
end
function test_tweening_arraylike_table_setget()
-- test tweening setget for array-like tables
array_setget = {
getP = function(self)
return self.posn
end,
setP = function(self, posn)
self.posn=posn
end,
posn = {120, 120}
}
Timer.tween(10, array_setget, {P={65, 180}}, 'quad')
Timer.update(10)
assert_very_close(array_setget.posn[1], 65)
assert_very_close(array_setget.posn[2], 180)
end
function runtests()
print("run tests")
for n, t in pairs(_G) do
if string.find(n, 'test_') then
local s, e = pcall(t)
if s then print("PASS")
else print('error in ', n, ":") print(e) end
end
end
end
if love ~= nil then
function love.load()
runtests()
end
else
runtests()
end
|
require("src/Util")
local M = def_module_unit("FieldAnimator", nil)
FieldAnimator.Mode = {
Stop = 1,
Wrap = 2,
Continue = 3
}
-- class FieldAnimator
M.Unit = class(M.Unit)
function M.Unit:__init(duration, fields, trans, mode, serial_reset_callback)
type_assert(duration, "number")
type_assert(fields, "table")
type_assert(trans, "table")
type_assert(mode, "number", true)
type_assert(serial_reset_callback, "function", true)
self.duration = duration
self.fields = fields
self.trans = trans
self.mode = optional(mode, FieldAnimator.Mode.Stop)
self.serial_reset_callback = serial_reset_callback
self:reset()
end
function M.Unit:is_complete()
return 1.0 <= self.total
end
function M.Unit:reset(new_duration)
type_assert(new_duration, "number", true)
self.duration = optional(new_duration, self.duration)
self.time = 0.0
self.total = 0.0
self.picked = {}
for f, t in pairs(self.trans) do
if "table" == type(t[1]) then
-- trans for field is a table of variants
-- instead of a direct (base,target) pair
local index = random(1, #t)
self.picked[f] = index
end
local value = self:get_field_trans(f)[1]
if "table" == type(f) then
for _, af in pairs(f) do
self:__post(af, value)
end
else
self:__post(f, value)
end
end
end
function M.Unit:get_field_trans(f)
local index = self.picked[f]
if nil ~= index then
return self.trans[f][index]
else
return self.trans[f]
end
end
function M.Unit:__post(f, value)
if "function" == type(self.fields[f]) then
self.fields[f](value, self)
else
self.fields[f] = value
end
end
function M.Unit:__update_field_table(f, t)
local value = t[1] + ((t[2] - t[1]) * self.total)
for _, af in pairs(f) do
self:__post(af, value)
end
end
function M.Unit:__update_field(f, t)
local value = t[1] + ((t[2] - t[1]) * self.total)
self:__post(f, value)
end
function M.Unit:update(dt)
self.time = self.time + dt
if FieldAnimator.Mode.Continue ~= self.mode and self.time >= self.duration then
if FieldAnimator.Mode.Stop == self.mode then
self.time = self.duration
self.total = 1.0
if self.serial_reset_callback then
self.serial_reset_callback(self)
end
elseif FieldAnimator.Mode.Wrap == self.mode then
self:reset()
if self.serial_reset_callback then
self.serial_reset_callback(self)
end
end
else
self.total = self.time / self.duration
end
for f, _ in pairs(self.trans) do
if "table" == type(f) then
self:__update_field_table(f, self:get_field_trans(f))
else
self:__update_field(f, self:get_field_trans(f))
end
end
return self:is_complete()
end
return M
|
--ZFUNC-strlstlen-v1
local function strlstlen( lst ) --> len
local len = 0
for _, str in ipairs( lst ) do
len = len + string.len( str )
end
return len
end
return strlstlen
|
local M = {}
local AngleWithOffset = {}
M.AngleWithOffset = AngleWithOffset
function AngleWithOffset.new(base_angle, angle)
local min = math.floor(base_angle / 360) * 360
local max = (math.floor(base_angle / 360) + 1) * 360
if min <= angle and angle <= max then
return angle
end
return (angle % 360) + min
end
function AngleWithOffset.shift(base_angle, angle)
local offset
if base_angle < 0 then
offset = math.floor(base_angle / 360) * 360
else
offset = math.ceil(base_angle / 360) * 360
end
return angle + offset
end
local Angle0To360 = {}
M.Angle0To360 = Angle0To360
function Angle0To360.new(angle)
return AngleWithOffset.new(0, angle)
end
local Angle0To359 = {}
M.Angle0To359 = Angle0To359
function Angle0To359.new(angle)
return angle % 360
end
return M
|
require "Fonts"
scoreLimit_buttons = {}
SNAKE_LIVES_buttons = {}
SNAKE_LEN_buttons = {}
SNAKE_SPEED_buttons = {}
STONES_buttons = {}
function add_length_button(x, y, text, id)
table.insert(SNAKE_LEN_buttons, {x = x, y = y, text = text, id = id})
end
function add_lives_button(x, y, text, id)
table.insert(SNAKE_LIVES_buttons, {x = x, y = y, text = text, id = id})
end
function add_score_button(x, y, text, id)
table.insert(scoreLimit_buttons, {x = x, y = y, text = text, id = id})
end
function add_speed_button(x, y, text, id)
table.insert(SNAKE_SPEED_buttons, {x = x, y = y, text = text, id = id})
end
function add_stone_button(x, y, text, id)
table.insert(STONES_buttons, {x = x, y = y, text = text, id = id})
end
function draw_button()
love.graphics.setFont(Fonts.largeFont)
love.graphics.setColor(1, 1, 1, 1)
for i, v in ipairs(SNAKE_LEN_buttons) do
love.graphics.print(v.text, v.x, v.y)
end
for i, v in ipairs(SNAKE_LIVES_buttons) do
love.graphics.print(v.text, v.x, v.y)
end
for i, v in ipairs(SNAKE_SPEED_buttons) do
love.graphics.print(v.text, v.x, v.y)
end
for i, v in ipairs(scoreLimit_buttons) do
love.graphics.print(v.text, v.x, v.y)
end
for i, v in ipairs(STONES_buttons) do
love.graphics.print(v.text, v.x, v.y)
end
end
function button_clicked(x, y)
for i, v in ipairs(SNAKE_LEN_buttons) do
if x > v.x and x < v.x + Fonts.largeFont:getWidth(v.text) and y > v.y and y < v.y + Fonts.largeFont:getHeight(v.text) then
SNAKE_LEN = v.id
end
end
for i, v in ipairs(SNAKE_LIVES_buttons) do
if x > v.x and x < v.x + Fonts.largeFont:getWidth(v.text) and y > v.y and y < v.y + Fonts.largeFont:getHeight(v.text) then
SET_LIVES = v.id
end
end
for i, v in ipairs(scoreLimit_buttons) do
if x > v.x and x < v.x + Fonts.largeFont:getWidth(v.text) and y > v.y and y < v.y + Fonts.largeFont:getHeight(v.text) then
scoreLimit = v.id
end
end
for i, v in ipairs(STONES_buttons) do
if x > v.x and x < v.x + Fonts.largeFont:getWidth(v.text) and y > v.y and y < v.y + Fonts.largeFont:getHeight(v.text) then
STONES_MAX_N = v.id
STONES_txt = v.text
end
end
for i, v in ipairs(SNAKE_SPEED_buttons) do
if x > v.x and x < v.x + Fonts.largeFont:getWidth(v.text) and y > v.y and y < v.y + Fonts.largeFont:getHeight(v.text) then
SNAKE_SPEED = 0.1 - (v.id * 0.005)
SNAKE_SPEED_txt = v.id
end
end
end
|
return PlaceObj('ModDef', {
'title', "Breakthrough Randomizer",
'description', "Allows you to choose from 4 different Breakthroughs when scanning Breakthrough anomalies, Planetary Anomalies, and even the Omega Telescope. Does not affect Story Bits or Mystery Rewards.\n\nTo keep this compatible with [url=https://survivingmaps.com]Surviving Maps[/url] I made sure that the first breakthrough in the list of choices is always the same as it would if the mod wasn't there. So if your map should have The Positronic Brain; it will have The Positronic Brain. \n\nAll but the first Breakthrough is chosen at random the moment the Anomaly is scanned; realoding changes the list. If the first Breakthrough was already researched, it will be replaced with another. \n\n[url=https://steamcommunity.com/sharedfiles/filedetails/?id=2588828764]Steam[/url]\n[url=https://mods.paradoxplaza.com/authors/Tremualin]Paradox[/url]\n[url=https://github.com/Tremualin/SurvivingMarsMods]Github[/url]",
'image', "Preview.jpg",
'last_changes', "First version",
'dependencies', {
PlaceObj('ModDependency', {
'id', "Tremualin_Library",
'title', "Tremualin's Library",
}),
},
'id', "Tremualin_BreakthroughRandomizer",
'steam_id', "2605770617",
'pops_desktop_uuid', "6c2c7e13-d0a4-418d-baf9-784d03a83963",
'pops_any_uuid', "50d68d9d-303f-479b-8866-f8be05694c4c",
'author', "Tremualin",
'version_major', 1,
'version', 6,
'lua_revision', 1007000,
'saved_with_revision', 1007874,
'code', {
"Code/Script.lua",
},
'saved', 1632021362,
'screenshot1', "Choose.jpg",
'TagGameplay', true,
}) |
return function (port, _servermodules)
assert((not not wifi.sta.getip()) or (not not wifi.ap.getip()), "tcpserver: No viable IP found")
assert(_servermodules ~= nil, "tcpserver: no server modules specified")
local servermodules
--for i,s in ipairs(_servermodules) do
-- servermodules[s] = true
--end
servermodules = _servermodules
local function detector(conn, payload)
for m,e in pairs(servermodules) do
tmr.wdclr()
--load the server module
local modfname = m..".lc"
if file.exists(modfname) then
local server = dofile(modfname)(conn)
if server and server.detect and server.install and server.onReceive then
if server.detect(payload) then
print("tcpserver -> "..m)
server.install(conn)
server.onReceive(conn, payload) --forward current payload to detected server
collectgarbage()
return
end
--unload the server module
server = nil
collectgarbage()
else
print(m.." does not seem to be a server module")
end
else
print(m.." module file was not found")
end
end
--no server matched, so close
print("tcpserver: unknown protocol")
conn:close()
end
local function tcpserverListen(conn)
assert(conn ~= nil, "tcpserverInstall: nil conn")
conn:on("receive", detector)
end
local s = net.createServer(net.TCP, 180) -- 180 seconds client timeout
s:listen(port, tcpserverListen)
-- false and nil evaluate as false
local ip = wifi.sta.getip()
if not ip then
ip = wifi.ap.getip()
end
print(ip)
print("tcpserver running on port ".. port)
local tcpserver = {}
function tcpserver:close()
s:close()
end
--[[--
function tcpserver:addModule(serverodule)
assert(servermodule, "servermodule is nil")
if file.open(servermodule..".lc") then
file.close()
table.insert(servermodules, servermodule)
else
print("Server module "..servermodule.." not found")
end
end
function tcpserver:removeModule(servermodule)
table.remove()
end
function tcpserver:getModules()
return servermodules
end
--]]--
return tcpserver
end
|
--[[
.______ ______ _______. _______. ____ ____ _______. .______ __ ___ ____ ____ _______ .______ _______.
| _ \ / __ \ / | / | \ \ / / / | | _ \ | | / \ \ \ / / | ____|| _ \ / |
| |_) | | | | | | (----` | (----` \ \/ / | (----` | |_) | | | / ^ \ \ \/ / | |__ | |_) | | (----`
| _ < | | | | \ \ \ \ \ / \ \ | ___/ | | / /_\ \ \_ _/ | __| | / \ \
| |_) | | `--' | .----) | .----) | \ / .----) | | | | `----./ _____ \ | | | |____ | |\ \----.----) |
|______/ \______/ |_______/ |_______/ \__/ |_______/ | _| |_______/__/ \__\ |__| |_______|| _| `._____|_______/
.______ ____ ____ _______ ___ __ ___ ___ ___ __ .______
| _ \ \ \ / / | ____| / \ | | / \ \ \ / / | | | _ \
| |_) | \ \/ / | |__ / ^ \ | | / ^ \ \ V / | | | |_) |
| _ < \_ _/ | __| / /_\ \ | | / /_\ \ > < | | | /
| |_) | | | | | / _____ \ | `----./ _____ \ / . \ | | | |\ \----.
|______/ |__| |__| /__/ \__\ |_______/__/ \__\ /__/ \__\ |__| | _| `._____|
--]]
Events.Subscribe("BVP_Client_Jump_Calculation", function(bossy)
if Client.GetLocalPlayer():GetControlledCharacter() == nil then return end
if Client.GetLocalPlayer():GetControlledCharacter():GetTeam() ~= 1 then return end
local playerChara = Client.GetLocalPlayer():GetControlledCharacter()
if (playerChara ~= nil) then
local players = Player.GetAll()
local result = math.ceil((#players))
if bossy.BossJumpMultiplier ~= nil then
result = result * bossy.BossJumpMultiplier
end
Client_Jump_Check(result)
end
end)
function Client_Jump_Check(inc)
Client.SetValue("BVP_JumpReady", 0)
Timer.SetInterval(function(increm)
if Client.GetValue("BVP_GameState") > 2 then return false end
local old = Client.GetValue("BVP_JumpReady")
local newValue = old + increm
if newValue > 100 then
Client.SetValue("BVP_JumpReady", 100)
else
Client.SetValue("BVP_JumpReady", newValue)
end
if old + increm >= 100 then
local ChoosenLanguage = Client.GetLocalPlayer():GetValue("BVP_Language")
if ChoosenLanguage == nil then
Events.CallRemote("BVP_GetLanguageOnNill")
return
end
MainHUD:CallEvent("BVP_HUD_Boss_Jump", ChoosenLanguage["HUD_Ability_Jump_Ready"])
return true
end
local ChoosenLanguage = Client.GetLocalPlayer():GetValue("BVP_Language")
if ChoosenLanguage == nil then
Events.CallRemote("BVP_GetLanguageOnNill")
return
end
local text = ChoosenLanguage["HUD_Ability_Jump_Loading"]
text = string.gsub(text, "%__PERCENTAGE__", tostring(old + increm))
MainHUD:CallEvent("BVP_HUD_Boss_Jump", text)
end, 1000, inc)
end
function Client_Jump_Do()
local JumpLevel = Client.GetValue("BVP_JumpReady")
local playerChara = Client.GetLocalPlayer():GetControlledCharacter()
if playerChara ~= nil then
if playerChara:GetTeam() ~= 1 then return end
else return
end
if JumpLevel >= 100 then
Client.SetValue("BVP_JumpReady", 0)
Events.CallRemote("BVP_BossAbilityExecute_Jump", Client.GetLocalPlayer())
local ChoosenLanguage = Client.GetLocalPlayer():GetValue("BVP_Language")
if ChoosenLanguage == nil then
Events.CallRemote("BVP_GetLanguageOnNill")
return
end
local text = ChoosenLanguage["HUD_Ability_Jump_Loading"]
text = string.gsub(text, "%__PERCENTAGE__", "0")
MainHUD:CallEvent("BVP_HUD_Boss_Jump", text)
Client.SetValue("BVP_JumpReady", 0)
end
end |
--[[
Created by DidVaitel (http://steamcommunity.com/profiles/76561198108670811)
]]
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include( "shared.lua" )
function ENT:Initialize()
self:SetModel( "models/Humans/Group01/male_02.mdl" )
self:SetHullType( HULL_HUMAN )
self:SetHullSizeNormal( )
self:SetNPCState( NPC_STATE_SCRIPT )
self:SetSolid( SOLID_BBOX )
self:CapabilitiesAdd( CAP_ANIMATEDFACE, CAP_TURN_HEAD )
self:SetUseType( SIMPLE_USE )
self:DropToFloor()
end
function ENT:AcceptInput( Name, Activator, Caller )
if Name == "Use" and Caller:IsPlayer() and not Caller.timer or Caller.timer and Caller.timer < CurTime() then
Caller.timer = CurTime() + 3
gDuel.GetdataAll(function(data)
net.Start("gDuel.Menu")
net.WriteTable(data)
net.Send(Caller)
end)
end
end |
--[[
LuiExtended
License: The MIT License (MIT)
--]]
LUIE.CampaignNames = { }
local SlashCommands = LUIE.SlashCommands
local printToChat = LUIE.PrintToChat
local zo_strformat = zo_strformat
-- Slash Command to port to primary home
function SlashCommands.SlashHome(option)
-- Check option is valid if it exists
-- Return an error message if no input is entered.
if option and option ~= "" then
if option ~= "inside" and option ~= "outside" then
printToChat(GetString(SI_LUIE_SLASHCMDS_HOME_TRAVEL_FAILED_OPTION), true)
if LUIE.SV.TempAlertHome then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, (GetString(SI_LUIE_SLASHCMDS_HOME_TRAVEL_FAILED_OPTION)))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
return
end
end
local primaryHouse = GetHousingPrimaryHouse()
-- Check if we are in combat
if IsUnitInCombat("player") then
printToChat(GetString(SI_LUIE_SLASHCMDS_HOME_TRAVEL_FAILED_IN_COMBAT), true)
if LUIE.SV.TempAlertHome then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, (GetString(SI_LUIE_SLASHCMDS_HOME_TRAVEL_FAILED_IN_COMBAT)))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
return
end
-- Check to make sure we're not in Imperial City
if IsInImperialCity() then
printToChat(GetString(SI_LUIE_SLASHCMDS_HOME_TRAVEL_FAILED_IC), true)
if LUIE.SV.TempAlertHome then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, (GetString(SI_LUIE_SLASHCMDS_HOME_TRAVEL_FAILED_IC)))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
return
end
-- Check to make sure we're not in Cyrodiil
if IsPlayerInAvAWorld() then
printToChat(GetString(SI_LUIE_SLASHCMDS_HOME_TRAVEL_FAILED_AVA), true)
if LUIE.SV.TempAlertHome then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, (GetString(SI_LUIE_SLASHCMDS_HOME_TRAVEL_FAILED_AVA)))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
return
end
-- Check to make sure we're not in a battleground
if IsActiveWorldBattleground() then
printToChat(GetString(SI_LUIE_SLASHCMDS_HOME_TRAVEL_FAILED_BG), true)
if LUIE.SV.TempAlertHome then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, (GetString(SI_LUIE_SLASHCMDS_HOME_TRAVEL_FAILED_BG)))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
return
end
-- Check if user set a primary home
if primaryHouse == 0 then
printToChat(GetString(SI_LUIE_SLASHCMDS_HOME_TRAVEL_FAILED_NOHOME), true)
if LUIE.SV.TempAlertHome then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, (GetString(SI_LUIE_SLASHCMDS_HOME_TRAVEL_FAILED_NOHOME)))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
else
-- Check whether we should be porting inside or outside
local outside
if option and (option == "inside" or option == "outside") then
if option == "inside" then
outside = false
elseif option == "outside" then
outside = true
end
else
outside = SlashCommands.SV.SlashHomeChoice == 2 and true or false
end
RequestJumpToHouse(primaryHouse, outside)
local string = outside and GetString(SI_LUIE_SLASHCMDS_HOME_TRAVEL_SUCCESS_MSG_OUT) or GetString(SI_LUIE_SLASHCMDS_HOME_TRAVEL_SUCCESS_MSG_IN)
printToChat(string, true)
if LUIE.SV.TempAlertHome then
ZO_Alert(UI_ALERT_CATEGORY_ALERT, nil, (string))
end
end
end
function SlashCommands.SlashSetPrimaryHome()
local currentHouse = GetCurrentZoneHouseId()
if currentHouse ~= nil and currentHouse > 0 then
local houseName = GetPlayerActiveZoneName()
if IsOwnerOfCurrentHouse() then
if IsPrimaryHouse(currentHouse) then
printToChat(zo_strformat(GetString(SI_LUIE_SLASHCMDS_SET_HOME_FAILED_ALREADY), houseName), true)
if LUIE.SV.TempAlertHome then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, (zo_strformat(GetString(SI_LUIE_SLASHCMDS_SET_HOME_FAILED_ALREADY), houseName)))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
return
else
SetHousingPrimaryHouse(currentHouse)
printToChat(zo_strformat(GetString(SI_LUIE_SLASHCMDS_SET_HOME_SUCCESS_MSG), houseName), true)
if LUIE.SV.TempAlertHome then
ZO_Alert(UI_ALERT_CATEGORY_ALERT, nil, (zo_strformat(GetString(SI_LUIE_SLASHCMDS_SET_HOME_SUCCESS_MSG), houseName)))
end
end
else
printToChat(GetString(SI_LUIE_SLASHCMDS_SET_HOME_FAILED_NOT_OWNER), true)
if LUIE.SV.TempAlertHome then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, (GetString(SI_LUIE_SLASHCMDS_SET_HOME_FAILED_NOT_OWNER)))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
return
end
else
printToChat(GetString(SI_LUIE_SLASHCMDS_SET_HOME_FAILED_NOHOME), true)
if LUIE.SV.TempAlertHome then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, (GetString(SI_LUIE_SLASHCMDS_SET_HOME_FAILED_NOHOME)))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
return
end
end
-- Slash Command to initiate a trade dialogue
function SlashCommands.SlashTrade(option)
if option == "" or option == nil then
printToChat(GetString(SI_LUIE_SLASHCMDS_TRADE_FAILED_NONAME), true)
if LUIE.ChatAnnouncements.SV.Notify.NotificationTradeAlert then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, SOUNDS.GENERAL_ALERT_ERROR, (GetString(SI_LUIE_SLASHCMDS_TRADE_FAILED_NONAME)))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
return
end
TradeInviteByName(option)
end
local firstRun = true -- Changed by SlashCommands.SlashCampaignQ() when called, used to index available campaigns.
-- Slash Command to queue for a campaign
function SlashCommands.SlashCampaignQ(option)
-- Return an error message if no input is entered.
if option == "" or option == nil then
printToChat(GetString(SI_LUIE_SLASHCMDS_CAMPAIGN_FAILED_NONAME), true)
if LUIE.SV.TempAlertCampaign then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, GetString(SI_LUIE_SLASHCMDS_CAMPAIGN_FAILED_NONAME))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
return
end
-- Return an error message if the player is in a battleground (can't queue for campaigns in a battleground).
if IsActiveWorldBattleground() then
printToChat(GetString(SI_LUIE_SLASHCMDS_CAMPAIGN_FAILED_BG), true)
if LUIE.SV.TempAlertCampaign then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, GetString(SI_LUIE_SLASHCMDS_CAMPAIGN_FAILED_BG))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
return
end
-- The first time we call this function and it passes a check to make sure input is valid, fill a table with campaign names and their corresponding id.
if firstRun then
firstRun = false
for i = 1, 200 do -- TODO: Find a way to determine # of campaigns dynamically instead of iterating.
local campaignName = string.lower(GetCampaignName(i))
if campaignName ~= "" and campaignName ~= nil then
LUIE.CampaignNames[campaignName] = i
end
end
end
-- If input is valid and the name is in the campaign table, try to queue for the campaign.
local option = string.lower(option)
if LUIE.CampaignNames[option] then
local campaignId = LUIE.CampaignNames[option]
local campaignName = GetCampaignName(campaignId)
if GetAssignedCampaignId() == campaignId or GetGuestCampaignId() == campaignId then
QueueForCampaign(campaignId)
printToChat(zo_strformat(GetString(SI_LUIE_SLASHCMDS_CAMPAIGN_QUEUE), campaignName), true)
if LUIE.SV.TempAlertCampaign then
ZO_Alert(UI_ALERT_CATEGORY_ALERT, nil, zo_strformat(GetString(SI_LUIE_SLASHCMDS_CAMPAIGN_QUEUE), campaignName))
end
return
else
printToChat(GetString(SI_LUIE_SLASHCMDS_CAMPAIGN_FAILED_NOT_ENTERED), true)
if LUIE.SV.TempAlertCampaign then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, GetString(SI_LUIE_SLASHCMDS_CAMPAIGN_FAILED_NOT_ENTERED))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
return
end
end
-- Otherwise, return an error message that the campaign doesn't exist.
printToChat(GetString(SI_LUIE_SLASHCMDS_CAMPAIGN_FAILED_WRONGCAMPAIGN), true)
if LUIE.SV.TempAlertCampaign then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, GetString(SI_LUIE_SLASHCMDS_CAMPAIGN_FAILED_WRONGCAMPAIGN))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
end
-- Slash Command to use collectibles based on their collectible id
function SlashCommands.SlashCollectible(id)
-- Determine ID
if id == "banker" then
if SlashCommands.SV.SlashBankerChoice == 1 then
id = 267 -- Tythis
elseif SlashCommands.SV.SlashMerchantChoice == 2 then
id = 6376 -- Ezabi
else
id = 8994 -- Baron
end
elseif id == "merchant" then
if SlashCommands.SV.SlashMerchantChoice == 1 then
id = 301 -- Nuzhimeh
elseif SlashCommands.SV.SlashMerchantChoice == 2 then
id = 6378 -- Ferez
else
id = 8995 -- Peddler of Prizes
end
end
-- Check to make sure we're not in Imperial City
if IsInImperialCity() then
printToChat(zo_strformat(GetString(SI_LUIE_SLASHCMDS_COLLECTIBLE_FAILED_IC), GetCollectibleName(id)), true)
if LUIE.SV.TempAlertHome then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, zo_strformat(GetString(SI_LUIE_SLASHCMDS_COLLECTIBLE_FAILED_IC), GetCollectibleName(id)))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
return
end
-- Check to make sure we're not in Cyrodiil
if IsPlayerInAvAWorld() then
printToChat(zo_strformat(GetString(SI_LUIE_SLASHCMDS_COLLECTIBLE_FAILED_AVA), GetCollectibleName(id)), true)
if LUIE.SV.TempAlertHome then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, zo_strformat(GetString(SI_LUIE_SLASHCMDS_COLLECTIBLE_FAILED_AVA), GetCollectibleName(id)))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
return
end
-- Check to make sure we're not in a battleground
if IsActiveWorldBattleground() then
printToChat(zo_strformat(GetString(SI_LUIE_SLASHCMDS_COLLECTIBLE_FAILED_BG), GetCollectibleName(id)), true)
if LUIE.SV.TempAlertHome then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, zo_strformat(GetString(SI_LUIE_SLASHCMDS_COLLECTIBLE_FAILED_BG), GetCollectibleName(id)))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
return
end
-- If this is a Banker/Merchant/Fence/Companion and we are in a player home then display a message that the collectible can't be used here.
if id == 300 or id == 267 or id == 6376 or id == 301 or id == 6378 or id == 8006 or id == 9245 or id == 9353 or id == 8994 or id == 8995 then
local currentHouse = GetCurrentZoneHouseId()
if currentHouse ~= nil and currentHouse > 0 then
printToChat(zo_strformat(GetString(SI_LUIE_SLASHCMDS_COLLECTIBLE_FAILED_HOME), GetCollectibleName(id)), true)
if LUIE.SV.TempAlertHome then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, zo_strformat(GetString(SI_LUIE_SLASHCMDS_COLLECTIBLE_FAILED_HOME), GetCollectibleName(id)))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
return
end
end
if IsCollectibleUnlocked(id) then
UseCollectible(id)
LUIE.SlashCollectibleOverride = true
if id ~= 300 and id ~= 267 and id ~= 6376 and id ~= 301 and id ~= 6378 and id ~= 8006 and id ~= 9245 and id ~= 9353 and id ~= 8994 and id ~= 8995 then
LUIE.LastMementoUsed = id
end
else
printToChat(zo_strformat(GetString(SI_LUIE_SLASHCMDS_COLLECTIBLE_FAILED_NOTUNLOCKED), GetCollectibleName(id)), true)
if LUIE.SV.TempAlertHome then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, zo_strformat(GetString(SI_LUIE_SLASHCMDS_COLLECTIBLE_FAILED_NOTUNLOCKED), GetCollectibleName(id)))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
return
end
end
function SlashCommands.SlashCompanion(option)
-- Return an error if input is not blank and is not valid
if option and (option ~= "" and option ~= "bastian" and option ~= "mirri") then
printToChat(GetString(SI_LUIE_SLASHCMDS_COMPANION_FAILED_OPTION), true)
if LUIE.SV.TempAlertHome then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, zo_strformat(GetString(SI_LUIE_SLASHCMDS_COLLECTIBLE_FAILED_IC), GetCollectibleName(id)))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
return
end
-- If we have valid input then summon the relevant companion
if option == "bastian" then
SlashCommands.SlashCollectible(9245)
elseif option == "mirri" then
SlashCommands.SlashCollectible(9353)
end
-- If we have no additional input that use dropdown option
if option == nil or option == "" then
-- Determine ID
if SlashCommands.SV.SlashCompanionChoice == 1 then
SlashCommands.SlashCollectible(9245)
else
SlashCommands.SlashCollectible(9353)
end
end
end
-- Slash Command to equip a chosen outfit by number
function SlashCommands.SlashOutfit(option)
if option == "" or option == nil then
printToChat(GetString(SI_LUIE_SLASHCMDS_OUTFIT_NOT_VALID))
if LUIE.SV.TempAlertOutfit then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, GetString(SI_LUIE_SLASHCMDS_OUTFIT_NOT_VALID))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
return
end
local valid = tonumber(option)
if not valid or valid > 10 then
printToChat(GetString(SI_LUIE_SLASHCMDS_OUTFIT_NOT_VALID))
if LUIE.SV.TempAlertOutfit then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, GetString(SI_LUIE_SLASHCMDS_OUTFIT_NOT_VALID))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
return
end
local numOutfits = GetNumUnlockedOutfits(GAMEPLAY_ACTOR_CATEGORY_PLAYER)
if valid > numOutfits then
printToChat(zo_strformat(GetString(SI_LUIE_SLASHCMDS_OUTFIT_NOT_UNLOCKED), valid))
if LUIE.SV.TempAlertOutfit then
ZO_Alert(UI_ALERT_CATEGORY_ERROR, nil, zo_strformat(GetString(SI_LUIE_SLASHCMDS_OUTFIT_NOT_UNLOCKED), valid))
end
PlaySound(SOUNDS.GENERAL_ALERT_ERROR)
return
end
EquipOutfit(GAMEPLAY_ACTOR_CATEGORY_PLAYER, valid)
-- Display a confirmation message.
local name = GetOutfitName(GAMEPLAY_ACTOR_CATEGORY_PLAYER, valid)
if name == "" then
name = zo_strformat("<<1>> <<2>>", GetString(SI_CROWN_STORE_SEARCH_ADDITIONAL_OUTFITS), valid)
end
printToChat(zo_strformat(GetString(SI_LUIE_SLASHCMDS_OUTFIT_CONFIRMATION), name))
if LUIE.SV.TempAlertOutfit then
ZO_Alert(UI_ALERT_CATEGORY_ALERT, nil, zo_strformat(GetString(SI_LUIE_SLASHCMDS_OUTFIT_CONFIRMATION), name))
end
end
-- Slash Command to report a player by given name and attach useful information
function SlashCommands.SlashReport(player)
local location = GetPlayerLocationName()
local currenttime = GetTimeString()
local currentdate = GetDateStringFromTimestamp(GetTimeStamp())
local server = GetWorldName()
local text = "I've encounterd a suspicious player.\n\nName: <<1>>\nLocation: <<2>>\nDate & Time: <<3>> <<4>>\nServer: <<5>>"
-- Set the category to report a player
HELP_CUSTOMER_SERVICE_ASK_FOR_HELP_KEYBOARD:SelectCategory(2)
-- Set the subcategory (default: Other)
HELP_CUSTOMER_SERVICE_ASK_FOR_HELP_KEYBOARD:SelectSubcategory(4)
-- Populate the reporting window name and description
ZO_Help_Ask_For_Help_Keyboard_ControlDetailsTextLineField:SetText(player)
ZO_Help_Ask_For_Help_Keyboard_ControlDescriptionBodyField:SetText(zo_strformat(text, player, location, currentdate, currenttime, server))
-- Open the reporting window
HELP_CUSTOMER_SUPPORT_KEYBOARD:OpenScreen(HELP_CUSTOMER_SERVICE_ASK_FOR_HELP_KEYBOARD_FRAGMENT)
end
local petIds = {
[23304] = "[Familiar]", -- Summon Unstable Familiar (Sorcerer)
[23319] = "[Clannfear]", -- Summon Unstable Clannfear (Sorcerer)
[23316] = "[Volatile Familiar]", -- Summon Volatile Familiar (Sorcerer)
[24613] = "[Winged Twilight]", -- Summon Winged Twilight (Sorcerer)
[24636] = "[Twilight Tormentor]", -- Summon Twilight Tormentor (Sorcerer)
[24639] = "[Twilight Matriarch]", -- Summon Twilight Matriarch (Sorcerer)
[85982] = "[Feral Guardian]", -- Feral Guardian (Warden)
[85986] = "[Eternal Guardian]", -- Eternal Guardian (Warden)
[85990] = "[Wild Guardian]", -- Wild Guardian (Warden)
}
-- Slash Command to dismiss pets and optionally non-combat pets
function SlashCommands.SlashPet()
for i = 1, GetNumBuffs("player") do
local _, _, _, buffSlot, _, _, _, _, _, _, abilityId = GetUnitBuffInfo("player", i)
if petIds[abilityId] then
CancelBuff(buffSlot)
if SlashCommands.SV.SlashPetMessage then
local petName = petIds[abilityId]
local message = zo_strformat(GetString(SI_LUIE_DISMISS_PET), petName)
printToChat(message)
end
end
end
end
|
local tag = "lively_chat"
local prefix = mingeban and mingeban.utils.CmdPrefix or "^[%$%.!/]"
if CLIENT then
local gray = Color(192, 212, 222)
local luaPatterns = {
[2] = "([%a_][%w_]*)", -- keyword or text
[4] = "(\".-\")", -- string
[5] = "([%d]+%.?%d*)", -- number
[6] = "([%+%-%*/%%%(%)%.,<>~=#:;{}%[%]])", -- operator
[7] = "(//[^\n]*)", -- c comment
[8] = "(/%*.-%*/)", -- c multiline comment
[9] = "(%-%-[^%[][^\n]*)", -- lua comment
[10] = "(%-%-%[%[.-%]%])", -- lua multiline comment
[11] = "(%[%[.-%]%])", -- odd string
[12] = "('.-')", -- quote string
[13] = "(!+)", -- c not
}
local defCol = Color(192, 197, 206)
local keywordCol = Color(180, 142, 173)
local strCol = Color(163, 190, 140)
local numberCol = Color(208, 135, 112)
local operatorCol = defCol
local commentCol = Color(153, 157, 164)
local colors = {
Color(255, 255, 255), -- unused
keywordCol,
defCol,
strCol,
numberCol,
operatorCol,
commentCol,
commentCol,
commentCol,
commentCol,
strCol,
strCol,
Color(255, 0, 0), -- c not
}
local keywords = {
["local"] = true,
["function"] = true,
["return"] = true,
["break"] = true,
["continue"] = true,
["end"] = true,
["if"] = true,
["not"] = true,
["while"] = true,
["for"] = true,
["repeat"] = true,
["until"] = true,
["do"] = true,
["then"] = true,
["true"] = true,
["false"] = true,
["nil"] = true,
["in"] = true
}
local function SyntaxHighlight(code) -- borrowed from Meta, made by Morten
local output = {}
local finds = {}
local types = {}
local startPos, lastPos, type = 0, 0, 0
while true do
local temp = {}
for type, pattern in pairs(luaPatterns) do
local startPos, endPos = code:find(pattern, lastPos + 1)
if startPos then
table.insert(temp, {type, startPos, endPos})
end
end
-- nothing to see
if #temp == 0 then break end
-- pick the first detected pattern
table.sort(temp, function(a, b) return (a[2] == b[2]) and (a[3] > b[3]) or (a[2] < b[2]) end)
-- we will use these in the next loop and to determine if we're using a keyword
type, startPos, lastPos = unpack(temp[1])
table.insert(finds, startPos)
table.insert(finds, lastPos)
-- are we a keyword?
table.insert(types, type == 2 and (keywords[code:sub(startPos, lastPos)] and 2 or 3) or type)
end
-- this fixes stuff, apparently
for i = 1, #finds - 1 do
local fix = (i - 1) % 2
local sub = code:sub(finds[i] + fix, finds[i + 1] - fix)
local i2 = 1
local before = output[#output - i2]
while isstring(before) and before:Trim() == "" do
i2 = i2 + 1
before = output[#output - i2]
end
local col = colors[types[1 + (i - 1) / 2]]
if sub:Trim() ~= "" and before and before ~= col then
table.insert(output, fix == 0 and col or Color(0, 0, 0, 255))
end -- add color
table.insert(output, (fix == 1 and sub:find("^%s+$")) and sub:gsub("%s", " ") or sub) -- add text
-- not sure what the fix is for here, but let's keep it
end
return output
end
local client = Color(103, 215, 220)
local server = Color(114, 241, 129)
local shared = Color(210, 161, 141)
local states = {
["l"] = { c = server, n = "server", a = "ran" },
["p"] = { c = server, n = "server", a = "printed" },
["lm"] = { c = client, n = "self", a = "ran" },
["pm"] = { c = client, n = "self", a = "printed" },
["pm2"] = { c = client, n = "self", a = "printed" },
["ls"] = { c = shared, n = "shared", a = "ran" },
["ps"] = { c = shared, n = "shared", a = "printed" },
["lb"] = { c = shared, n = "both", a = "ran" },
["lc"] = { c = client, n = "clients", a = "ran" },
["pc"] = { c = client, n = "clients", a = "printed" },
["lsc"] = { c = client, a = "ran" },
["psc"] = { c = client, a = "printed" },
}
hook.Add("OnPlayerChat", tag .. "_syntax", function(ply, txt, tc, dead)
if not IsValid(ply) then return end
local prefix = txt:match(prefix)
if prefix then
local method = txt:lower():match("^" .. prefix .. "(%w+)%s?")
local methodInfo = states[method]
if not methodInfo then return end
local code = txt:sub(prefix:len() + 1 + method:len() + 1)
local name = methodInfo.n
if method == "lsc" or method == "psc" then
name = ("[,%s]"):Explode(code, true)[1] or "no one"
name = name:Trim()
code = code:sub(name:len() + 2)
end
local stuff = { team.GetColor(ply.Team and ply:Team() or 1001), ply.Nick and ply:Nick() or "???", " ", Color(160, 170, 220), methodInfo.a, gray, "@", methodInfo.c, name, gray, ": " }
-- stuff[#stuff + 1] = code
local highlight = SyntaxHighlight(code)
for _, thing in next, highlight do
stuff[#stuff + 1] = thing
end
chat.AddText(unpack(stuff))
return true
end
end)
end
if SERVER then
-- timed messages, dunno if this is a good idea
local w = Color(194, 210, 225)
local g = Color(127, 255, 127)
lively_chat = {}
lively_chat.Messages = {
{
message = {
w, "If you wish to get news about the server and participate in its discussions, feel free to join the ", g, "Discord", w, " or ", g, "Steam Group", w, "!"
},
time = 60
},
{
message = {
w, "To do so, type ", g, "!discord", w, " and ", g, "!steam", w, " to join them!"
},
time = 10
},
{
message = {
w, "Thanks for joining ", g, "Re-Dream", w, ", we hope you have a good time on here!"
},
time = 900
},
}
local curMsg = 1
function lively_chat.PrintNextAnnouncement()
local msgs = lively_chat.Messages
ChatAddText(unpack(msgs[curMsg].message))
curMsg = curMsg + 1
if curMsg > #msgs then
curMsg = 1
end
timer.Adjust(tag .. "_announcements", msgs[curMsg].time, 0, lively_chat.PrintNextAnnouncement)
end
function lively_chat.StartAnnouncements()
local msgs = lively_chat.Messages
curMsg = 1
timer.Create(tag .. "_announcements", msgs[1].time, 0, lively_chat.PrintNextAnnouncement)
end
-- lively_chat.StartAnnouncements()
hook.Add("PreChatSoundsSay", tag, function(ply, txt)
if txt:match(prefix) then return false end
end)
end
|
require("import") -- the import fn
import("exception_partial_info") -- import code
-- catch "undefined" global variables
setmetatable(getfenv(),{__index=function (t,i) error("undefined global variable `"..i.."'",2) end})
imp=exception_partial_info.Impl()
-- trying to call throwing methods
-- should fail
assert(pcall(function() imp:f1() end)==false)
assert(pcall(function() imp:f2() end)==false)
|
--[[
while
repeat
for
--]]
for i,v in ipairs({
a = 2,
b = 3,
[1] = 2,
[3] = 4
}) do
print(i, v)
end
print()
for k,v in pairs({
a = 2,
b = 3,
[1] = 2,
[3] = 4
}) do
print(k, v)
end |
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local hashes = {1171614426,456714581,1127131465,-1647941228,2046537925,-1973172295,-1627000575,1912215274,-1536924937,-1779120616,-1683328900,1922257928,-34623805,1171614426}
local myPed = GetPlayerPed( -1 )
local myVehicle = GetVehiclePedIsIn(myPed, false)
if GetPedInVehicleSeat(GetVehiclePedIsIn(GetPlayerPed(-1), false), 0) then
for I in pairs(hashes) do
if (GetEntityModel(myVehicle) == hashes[I]) then
SetEntityAsMissionEntity( myVehicle, true, true )
velocidade (myVehicle)
end
end
elseif GetEntityModel(myVehicle) == 1171614426 and ~GetPedInVehicleSeat(GetVehiclePedIsIn(GetPlayerPed(-1), false), 0) then
SetEntityHealth(myPed, 1000)
end
end
end)
function velocidade (carro)
Citizen.InvokeNative( 0xB59E4BD37AE292DB, carro, 5.0)
end
|
--@native table
--@import see.util.ArgumentUtils
--[[
@throw see.util.InvalidArgumentException if the args are incorrect.
]]
function FastArray.insert(array, ...)
ArgumentUtils.check(1, array, "table")
table.insert(array, ...)
end
--[[
@throw see.util.InvalidArgumentException if the args are incorrect.
]]
function FastArray.remove(array, index)
ArgumentUtils.check(1, array, "table")
ArgumentUtils.check(2, index, "number")
table.remove(array, index)
end
--[[
@throw see.util.InvalidArgumentException if the args are incorrect.
]]
function FastArray.sort(array, comp)
ArgumentUtils.check(1, array, "table")
ArgumentUtils.check(2, comp, "function")
table.sort(array, comp)
end |
require "base"
local func_next_CGridPageView_test_scene = nil;
local func_back_CGridPageView_test_scene = nil;
local func_ref_CGridPageView_test_scene = nil;
-- createCGridPageViewBasicTest
-- =====================================================
-- =====================================================
-- =====================================================
local function createCGridPageViewBasicTest()
local p_base_scene = createScene();
--next
p_base_scene.p_next_btn:setOnClickScriptHandler(function(p_sender)
func_next_CGridPageView_test_scene();
end);
--back
p_base_scene.p_back_btn:setOnClickScriptHandler(function(p_sender)
func_back_CGridPageView_test_scene();
end);
--ref
p_base_scene.p_ref_btn:setOnClickScriptHandler(function(p_sender)
func_ref_CGridPageView_test_scene();
end);
p_base_scene.setTitle("CGridPageViewBasicTest");
p_base_scene.setDescription("GridPageView basic test");
local function data_source(p_convertview, idx)
local pCell = tolua.cast(p_convertview, "CGridPageViewCell");
local pButton = nil;
if pCell == nil then
pCell = CGridPageViewCell:new();
pCell:autorelease();
pButton = CButton:createWith9Sprite(CCSizeMake(70, 70), "sprite9_btn1.png", "sprite9_btn2.png");
pButton:setPosition(CCPoint(320 / 4 / 2, 390 / 5 / 2));
pButton:getLabel():setFontSize(25.0);
pButton:setTag(5);
pCell:addChild(pButton);
else
pButton = tolua.cast(pCell:getChildByTag(5), "CButton");
end
if idx ~= -1 then
pButton:setVisible(true);
pButton:getLabel():setString(tostring(idx));
pButton:setUserTag(idx);
else
pButton:setVisible(false);
end
return pCell;
end
local pBg = CCSprite:create("background2.png");
pBg:setPosition(CCPoint(480, 320));
p_base_scene.p_window:addChild(pBg);
local pTable = CGridPageView:create(CCSizeMake(320, 390));
pTable:setSizeOfCell(CCSizeMake(320 / 4, 390 / 5));
pTable:setCountOfCell(72);
pTable:setDataSourceAdapterScriptHandler(data_source);
pTable:setColumns(4);
pTable:setRows(5);
pTable:setAutoRelocate(true);
pTable:setPosition(CCPoint(480, 320));
p_base_scene.p_window:addChild(pTable);
pTable:reloadData();
return p_base_scene.p_scene;
end
-- createCGridPageViewBackPackTest
-- =====================================================
-- =====================================================
-- =====================================================
local function createCGridPageViewBackPackTest()
local p_base_scene = createScene();
--next
p_base_scene.p_next_btn:setOnClickScriptHandler(function(p_sender)
func_next_CGridPageView_test_scene();
end);
--back
p_base_scene.p_back_btn:setOnClickScriptHandler(function(p_sender)
func_back_CGridPageView_test_scene();
end);
--ref
p_base_scene.p_ref_btn:setOnClickScriptHandler(function(p_sender)
func_ref_CGridPageView_test_scene();
end);
p_base_scene.setTitle("CGridPageViewBackPackTest");
p_base_scene.setDescription("backpack test, long click item and drag into circle for remove");
local m_vData = {};
local m_pSelectedSprite = nil;
local m_pToggleImage = nil;
local pTable = nil;
for i = 0, 71, 1 do
m_vData[i + 1] = i;
end
local pBg = CCSprite:create("background2.png");
pBg:setPosition(CCPoint(480, 320));
p_base_scene.p_window:addChild(pBg);
local function on_item_longclick(p_sender, p_touch)
local pIconButton = tolua.cast(p_sender, "CButton");
pIconButton:setVisible(false);
m_pSelectedSprite:setVisible(true);
m_pSelectedSprite:setPosition(p_touch:getLocation());
return true;
end
local function on_afterlongclick_moved(p_sender, p_touch, f_duration)
m_pSelectedSprite:setPosition(p_touch:getLocation());
local tLayoutPoint = p_base_scene.p_window:convertTouchToNodeSpace(p_touch);
if m_pToggleImage:boundingBox():containsPoint(tLayoutPoint) == true then
m_pToggleImage:setChecked(true);
else
m_pToggleImage:setChecked(false);
end
end
local function on_afterlongclick_ended(p_sender, p_touch, f_duration)
local pIconButton = tolua.cast(p_sender, "CButton");
m_pSelectedSprite:setPosition(p_touch:getLocation());
pIconButton:setVisible(true); --back to the same as before dragged
m_pSelectedSprite:setVisible(false);
m_pToggleImage:setChecked(false);
local tLayoutPoint = p_base_scene.p_window:convertTouchToNodeSpace(p_touch);
if m_pToggleImage:boundingBox():containsPoint(tLayoutPoint) == true then
table.remove(m_vData,pIconButton:getUserTag());
pTable:setCountOfCell(table.getn(m_vData));
pTable:reloadData();
end
end
p_base_scene.p_window:setOnTouchMovedAfterLongClickScriptHandler(on_afterlongclick_moved);
p_base_scene.p_window:setOnTouchEndedAfterLongClickScriptHandler(on_afterlongclick_ended);
p_base_scene.p_window:setOnTouchCancelledAfterLongClickScriptHandler(on_afterlongclick_ended);
local function data_source(p_convertview, idx)
local pCell = tolua.cast(p_convertview, "CGridPageViewCell");
local pIconButton = nil;
if pCell == nil then
pCell = CGridPageViewCell:new();
pCell:autorelease();
local pBg = CImageViewScale9:create("sprite9_btn1.png");
pBg:setContentSize(CCSize(70, 70));
pBg:setPosition(CCPoint(320 / 4 / 2, 390 / 5 / 2));
pCell:addChild(pBg, -1);
pIconButton = CButton:create("icon.png");
pIconButton:setOnLongClickScriptHandler(on_item_longclick);
pIconButton:getLabel():setFontSize(25);
pIconButton:setPosition(CCPoint(320 / 4 / 2, 390 / 5 / 2));
pIconButton:setLabelOffset(CCPoint(-15, -15));
pIconButton:setTag(1);
pCell:addChild(pIconButton);
else
pIconButton = tolua.cast(pCell:getChildByTag(1), "CButton");
end
if idx ~= -1 then
pIconButton:setVisible(true);
pIconButton:getLabel():setString(tostring(m_vData[idx + 1]));
pIconButton:setUserTag(idx + 1);
else
pIconButton:setVisible(false);
end
return pCell;
end
pTable = CGridPageView:create(CCSizeMake(320, 390));
pTable:setDataSourceAdapterScriptHandler(data_source);
pTable:setSizeOfCell(CCSizeMake(320 / 4, 390 / 5));
pTable:setCountOfCell(table.getn(m_vData));
pTable:setColumns(4);
pTable:setRows(5);
pTable:setAutoRelocate(true);
pTable:setPosition(CCPoint(480, 320));
p_base_scene.p_window:addChild(pTable);
pTable:reloadData();
m_pSelectedSprite = CCSprite:create("icon.png");
m_pSelectedSprite:setOpacity(170);
--m_pSelectedSprite:setZOrder(1);
m_pSelectedSprite:setVisible(false);
p_base_scene.p_window:addChild(m_pSelectedSprite, 1);
m_pToggleImage = CToggleView:create("circle1.png", "circle2.png");
m_pToggleImage:setPosition(CCPoint(200, 320));
p_base_scene.p_window:addChild(m_pToggleImage);
return p_base_scene.p_scene;
end
local _n_CGridPageView_test_idx = 0;
local function get_CGridPageView_test_scene()
if _n_CGridPageView_test_idx == 0 then
return createCGridPageViewBasicTest();
elseif _n_CGridPageView_test_idx == 1 then
return createCGridPageViewBackPackTest();
else
_n_CGridPageView_test_idx = 0;
return createCGridPageViewBasicTest();
end
return nil;
end
function push_CGridPageView_test_scene()
_n_CGridPageView_test_idx = 0;
local p_scene = get_CGridPageView_test_scene();
_p_director:pushScene(p_scene);
end
func_next_CGridPageView_test_scene = function()
_n_CGridPageView_test_idx = _n_CGridPageView_test_idx + 1;
local p_scene = get_CGridPageView_test_scene();
_p_director:replaceScene(p_scene);
end
func_back_CGridPageView_test_scene = function()
_n_CGridPageView_test_idx = _n_CGridPageView_test_idx - 1;
local p_scene = get_CGridPageView_test_scene();
_p_director:replaceScene(p_scene);
end
func_ref_CGridPageView_test_scene = function()
local p_scene = get_CGridPageView_test_scene();
_p_director:replaceScene(p_scene);
end
|
local utils = require('utils')
local repo = 'https://github.com/wbthomason/packer.nvim'
local path = utils.joinPath(rv.dataPath, 'site', 'pack', 'packer', 'start', 'packer.nvim')
local cloneRepo = function()
utils.execute('git clone ' .. repo .. ' ' .. path)
vim.cmd('packadd packer.nvim')
end
local updateRepo = function()
local c = ' && '
if utils.isWindows then
c = ' ; '
end
local cmd = 'cd ' .. path .. c .. 'git pull --ff-only --rebase=false --progress'
utils.execute(cmd)
end
local checkInstall = function()
if not utils.exists(path) then
cloneRepo()
return
end
end
local checkUpdate = function()
if utils.isUpdate() then
updateRepo()
require('packer').sync()
end
end
checkInstall()
local packer = require('packer')
packer.init({
profile = {
enable = true,
threshold = 1, -- integer in milliseconds, plugins which load faster than this won't be shown in profile output
},
})
packer.startup({
function(use)
use({ 'wbthomason/packer.nvim' })
use({ 'antoinemadec/FixCursorHold.nvim' }) -- Needed while issue https://github.com/neovim/neovim/issues/12587 is still open
use({ 'nathom/filetype.nvim' })
use({
'rcarriga/nvim-notify',
config = function()
vim.notify = require('notify')
end,
})
use({
'nvim-telescope/telescope.nvim',
requires = { { 'nvim-lua/popup.nvim' }, { 'nvim-lua/plenary.nvim' } },
config = function()
require('plugins.telescope')
end,
})
use({
'nvim-treesitter/nvim-treesitter',
--event = 'BufRead',
after = 'telescope.nvim',
run = { 'TSUpdate' },
requires = {
{ 'nvim-treesitter/playground', opt = true },
{ 'windwp/nvim-autopairs' },
{ 'windwp/nvim-ts-autotag' },
},
config = function()
require('plugins.treesitter')
end,
})
use({
'nvim-treesitter/nvim-treesitter-textobjects',
--event = 'BufRead',
after = 'nvim-treesitter',
})
use({
'AckslD/nvim-neoclip.lua',
config = function()
require('neoclip').setup()
end,
})
use({
'lspcontainers/lspcontainers.nvim',
--'/home/rverst/dev/lspcontainers.nvim/',
requires = { 'neovim/nvim-lspconfig' },
config = function()
require('lsp')
end,
})
use({
'glepnir/lspsaga.nvim',
config = function()
require('plugins.lspsaga')
end,
})
use({
'onsails/lspkind-nvim',
config = function()
require('plugins.lspkind')
end,
})
use({
'nvim-telescope/telescope-dap.nvim',
after = 'telescope.nvim',
requires = {
{ 'mfussenegger/nvim-dap' },
{ 'Pocco81/DAPInstall.nvim' },
{ 'nvim-telescope/telescope.nvim' },
{ 'nvim-treesitter/nvim-treesitter' },
},
config = function()
require('plugins.nvim-dap')
end,
})
use({
'rcarriga/nvim-dap-ui',
requires = { 'mfussenegger/nvim-dap' },
config = function()
require('plugins.nvim-dap-ui')
end,
})
use({
'theHamsta/nvim-dap-virtual-text',
after = 'telescope-dap.nvim',
config = function()
require('plugins.nvim-dap-virtual-text')
end,
})
use({
'nvim-telescope/telescope-symbols.nvim',
after = 'telescope.nvim',
})
use({
'lewis6991/gitsigns.nvim',
event = 'BufRead',
requires = { 'nvim-lua/plenary.nvim' },
config = function()
require('plugins.gitsigns')
end,
})
-- use({
-- 'ray-x/go.nvim',
-- config = function()
-- require('plugins.go-nvim')
-- end,
-- })
use({
'mhartington/formatter.nvim',
config = function()
require('plugins.formatter')
end,
--rocks = {'luaformatter', {'luaformatter', version = '0.3.5'}}
})
use({
'b0o/mapx.nvim',
config = function()
require('bindings')
end,
})
use({
'folke/which-key.nvim',
config = function()
require('plugins.which-key')
end,
})
use({
'kyazdani42/nvim-tree.lua',
requires = { 'kyazdani42/nvim-web-devicons' },
config = function()
require('plugins.nvim-tree')
end,
})
use({
'glepnir/galaxyline.nvim',
requires = { 'kyazdani42/nvim-web-devicons', opt = true },
config = function()
require('plugins.galaxyline')
end,
})
use({
'romgrk/barbar.nvim',
requires = { 'kyazdani42/nvim-web-devicons', opt = true },
config = function()
require('plugins.bufferline')
end,
})
use({ 'hrsh7th/nvim-cmp', config = "require('plugins.cmp')" })
use({ 'hrsh7th/cmp-vsnip', requires = 'hrsh7th/nvim-cmp' })
use({ 'hrsh7th/cmp-buffer', requires = 'hrsh7th/nvim-cmp' })
use({ 'hrsh7th/cmp-path', requires = 'hrsh7th/nvim-cmp' })
use({ 'hrsh7th/cmp-calc', requires = 'hrsh7th/nvim-cmp' })
use({ 'hrsh7th/cmp-nvim-lua', requires = 'hrsh7th/nvim-cmp' })
use({ 'hrsh7th/cmp-nvim-lsp', requires = 'hrsh7th/nvim-cmp' })
use({ 'hrsh7th/vim-vsnip', requires = 'hrsh7th/nvim-cmp' })
use({
'L3MON4D3/LuaSnip',
requires = { { 'hrsh7th/nvim-cmp' }, { 'saadparwaiz1/cmp_luasnip' } },
config = function()
require('snippets')
end,
})
use({
'b3nj5m1n/kommentary',
event = 'VimEnter',
config = function()
require('plugins.kommentary')
end,
})
use({
'michaelb/sniprun',
config = function()
require('plugins.sniprun')
end,
run = 'bash ./install.sh',
})
use({ 'norcalli/nvim-base16.lua' })
use({ 'tjdevries/colorbuddy.vim' })
use({
'norcalli/nvim-colorizer.lua',
config = function()
require('colorizer').setup()
end,
})
use({ 'glepnir/dashboard-nvim' })
use({
'Shatur/neovim-session-manager',
config = function()
require('plugins.sessions')
end,
})
use({ 'tweekmonster/startuptime.vim' })
end,
config = {
display = {
open_fn = function()
return require('packer.util').float({ border = 'single' })
end,
},
},
})
checkUpdate()
|
--[[
Seriál "Programovací jazyk Lua"
Demonstrační příklad k článku:
Lua Fun: knihovna pro zpracování konečných i nekonečných sekvencí v jazyce Lua
]]
-- načtení knihovny Lua Fun a současně import symbolů do globálního jmenného prostoru
require "fun"()
-- pomocná funkce pro tisk několika prvků konečné sekvence
function printSequence(sequence)
for _, x in iter(sequence) do
print(x)
end
end
-- inicializovat generátor celých čísel
g1 = range(1, 10, 1)
g2 = intersperse("---------------------", g1)
print()
print("interspersed sequence")
print("---------------------")
printSequence(g2)
-- finito
|
local deadzone = Class{ type = 'deadzone' }
function deadzone:init ()
self.destroyed = false
World:add(self, 0, VIRTUAL_HEIGHT, VIRTUAL_WIDTH, 50)
end
function deadzone:render ()
end
function deadzone:update ()
end
function deadzone:destroy ()
self.destroyed = true
if World:hasItem(self) then World:remove(self) end
end
return deadzone
|
return function(frame)
local fps = get_fps()
local seconds = 10
if frame > 0 and frame % (fps * seconds) == 0 then
next_scene()
end
end
|
-----------------------------------------------------------------------------------------------
-- Craft Queue Item implementation
-- Copyright (c) 2014 DoctorVanGogh on Wildstar forums - all rights reserved
-----------------------------------------------------------------------------------------------
require "GameLib"
require "CraftingLib"
local MAJOR,MINOR = "DoctorVanGogh:Hephaestus:CraftQueueItem", 1
-- Get a reference to the package information if any
local APkg = Apollo.GetPackage(MAJOR)
-- If there was an older version loaded we need to see if this is newer
if APkg and (APkg.nVersion or 0) >= MINOR then
return -- no upgrade needed
end
local oo = Apollo.GetPackage("DoctorVanGogh:Lib:Loop:Base").tPackage
local ooModelCraftQueue = Apollo.GetPackage("DoctorVanGogh:Lib:Loop:Multiple").tPackage
local CraftQueueItem = APkg and APkg.tPackage or oo.class{}
local CraftUtil = Apollo.GetPackage("DoctorVanGogh:Hephaestus:CraftUtil").tPackage
-------------------------------------------------------------
-- local values declarations
-------------------------------------------------------------
local glog
function CraftQueueItem:OnLoad()
-- import GeminiLogging
local GeminiLogging = Apollo.GetPackage("Gemini:Logging-1.2").tPackage
glog = GeminiLogging:GetLogger({
level = GeminiLogging.INFO,
pattern = "%d [%c:%n] %l - %m",
appender = "GeminiConsole"
})
self.log = glog
end
function CraftQueueItem:Serialize()
return {
nSchematicId = self.tSchematicInfo.nSchematicId,
nAmount = self.nAmount
}
end
function CraftQueueItem:Deserialize(tStorage, tQueue)
if tStorage and tStorage.nSchematicId and tStorage.nAmount then
return CraftQueueItem(CraftingLib.GetSchematicInfo(tStorage.nSchematicId), tStorage.nAmount, tQueue)
end
end
function CraftQueueItem:__init(tSchematicInfo, nAmount, tQueue)
glog:debug("__init(%s, %s, %s, ...)", tostring(tSchematicInfo), tostring(nAmount), tostring(tQueue))
ci = oo.rawnew(
self,
{
tSchematicInfo = tSchematicInfo,
nAmount = nAmount,
tQueue = tQueue
}
)
return ci
end
function CraftQueueItem:Remove()
self.tQueue:Remove(self)
end
function CraftQueueItem:GetQueue()
return self.tQueue
end
function CraftQueueItem:MoveForward()
return self:GetQueue():Forward(self)
end
function CraftQueueItem:MoveBackward()
return self:GetQueue():Backward(self)
end
function CraftQueueItem:GetSchematicInfo()
return self.tSchematicInfo
end
function CraftQueueItem:GetAmount()
return self.nAmount
end
function CraftQueueItem:SetAmount(nAmount)
self.nAmount = nAmount
end
function CraftQueueItem:CraftComplete()
glog:debug("CraftQueueItem:CraftComplete()")
self:SetAmount(self:GetAmount() - (self:GetCurrentCraftAmount() or 0))
self:SetCurrentCraftAmount(nil)
-- GOTCHA: we dont have a dependency on CraftQueue (intentionally!), so we got to get the eventname in a roundabout way ;)
local queue = self:GetQueue()
local CraftQueue = ooModelCraftQueue.classof(queue)
queue:FireCollectionChangedEvent(CraftQueue.CollectionChanges.Refreshed, self)
end
function CraftQueueItem:GetMaxCraftable()
return CraftUtil:GetMaxCraftableForSchematic(self:GetSchematicInfo())
end
function CraftQueueItem:GetCurrentCraftAmount()
return self.nCurrentCraftAmount
end
function CraftQueueItem:SetCurrentCraftAmount(nCount)
glog:debug("CraftQueueItem:SetCurrentCraftAmount(%s)", tostring(nCount))
self.nCurrentCraftAmount = nCount
end
function CraftQueueItem:TryCraft()
glog:debug("CraftQueueItem:TryCraft")
if self:GetMaxCraftable() == 0 then
glog:warn(Apollo.GetString("GenericError_Craft_MissingMaterials"))
self:GetQueue():Stop()
return
end
local bCanCraft, bAtCraftingStation, bNotMounted, bNotBusy = CraftUtil:CanCraft()
glog:debug("CanCraft: %s (%s, %s, %s)", tostring(bCanCraft), tostring(bAtCraftingStation), tostring(bNotMounted), tostring(bNotBusy))
if not bCanCraft then
if not bAtCraftingStation then
glog:warn(Apollo.GetString("CBCrafting_NoStation"))
end
if not bNotMounted then
glog:warn("Player mounted")
end
if not bNotBusy then
glog:warn(Apollo.GetString("GenericError_PlayerBusy"))
end
self:GetQueue():Stop()
return
end
local tSchematicInfo = self:GetSchematicInfo()
if tSchematicInfo.nParentSchematicId and tSchematicInfo.nParentSchematicId ~= 0 and tSchematicInfo.nSchematicId ~= tSchematicInfo.nParentSchematicId then
glog:warn("Cannot create variant items (yet) - stopping")
self:GetQueue():Stop()
return
end
local nAmount = self:GetAmount()
if not nAmount or nAmount <= 0 then
glog:warn("Nothing to craft...")
return
end
--[[
available keys:
- nSchematicId
- strName
- itemOutput
- bIsAutoCraft
- nCraftAtOnceMax
- nParentSchematicId
]]
local bIsAutoCraft = tSchematicInfo.bIsAutoCraft or false
local nCraftAtOnceMax = bIsAutoCraft and tSchematicInfo.nCraftAtOnceMax or 1
local tItemOutput = tSchematicInfo.itemOutput
local nRoomForOutputItems = 0
local unitPlayer = GameLib.GetPlayerUnit()
local nCraftCount = math.max(tSchematicInfo.nCreateCount or 1, tSchematicInfo.nCritCount or 1) -- calculate defensively, in case there are ever crit crafts with more output
-- *some* recipes use the same material for input as they produce - correctly reduce the output amount by this
local nOutputDifference = nCraftCount
for idx, tMaterial in ipairs(tSchematicInfo.tMaterials) do
if tItemOutput:GetItemId() == tMaterial.itemMaterial:GetItemId() then
nOutputDifference = nOutputDifference - tMaterial.nAmount
break
end
end
-- make sure we have enough space in inventory
local nInventoryCount, nFirstPartialStackCountAvailable = CraftUtil:GetInventoryCountForItem(tItemOutput)
local nMaxCraftCountsStashableInInventory
if nFirstPartialStackCountAvailable then
glog:debug("Partial stack room remaining: %.f", nFirstPartialStackCountAvailable)
--[[ HACK: Workaround/damage mitigation for Carbine bug sometimes not returning full number of output items if crafting would start a new stack
Sequence:
- Try crafting only so many items we just do *not* start new stack
math.floor(nFirstPartialStackCountAvailable / nOutputDifference)
- Next try above number will be '0', so craft just '1' item
math.max(1, ....)
]]
nMaxCraftCountsStashableInInventory = math.max(1, math.floor(nFirstPartialStackCountAvailable / nOutputDifference))
else
nMaxCraftCountsStashableInInventory = math.floor(nInventoryCount / nOutputDifference)
end
local nMaxCraftable = self:GetMaxCraftable() or 0
local nCount = math.min(nAmount, nCraftAtOnceMax, nMaxCraftable, nMaxCraftCountsStashableInInventory)
glog:debug("Amount: %.f, MaxAtOnce: %.f, MaxMaterialsAvailable: %.f, MaxCraftsStashable: %.f => Final Count: %.f", nAmount, nCraftAtOnceMax, nMaxCraftable, nMaxCraftCountsStashableInInventory, nCount)
if not nCount then
return
else
if nCount == 0 then
if nMaxCraftCountsStashableInInventory == 0 then
glog:warn(Apollo.GetString("ItemSetInventory_InventoryFull"))
self:GetQueue():Stop()
return
elseif nMaxCraftable == 0 then
glog:warn(Apollo.GetString("GenericError_Craft_MissingMaterials"))
self:GetQueue():Stop()
return
end
end
end
self:SetCurrentCraftAmount(nCount)
if bIsAutoCraft then
glog:debug("CraftingLib.CraftItem(%s, nil, %s)", tostring(tSchematicInfo.nSchematicId), tostring(nCount))
CraftingLib.CraftItem(tSchematicInfo.nSchematicId, nil, nCount)
else
glog:debug("CraftingLib.CraftItem(%s)", tostring(tSchematicInfo.nSchematicId))
CraftingLib.CraftItem(tSchematicInfo.nSchematicId, nil)
-- TODO: make some moves (later)
glog:debug("CraftingLib.CompleteCraft()")
CraftingLib.CompleteCraft()
end
-- GOTCHA: we dont have a dependency on CraftQueue (intentionally!), so we got to get the eventname in a roundabout way ;)
local queue = self:GetQueue()
local CraftQueue = ooModelCraftQueue.classof(queue)
queue:FireCollectionChangedEvent(CraftQueue.CollectionChanges.Refreshed, self)
end
Apollo.RegisterPackage(
CraftQueueItem,
MAJOR,
MINOR,
{
"Gemini:Logging-1.2",
"DoctorVanGogh:Lib:Loop:Base", -- for self
"DoctorVanGogh:Lib:Loop:Multiple", -- for craftqueue
"DoctorVanGogh:Hephaestus:CraftUtil"
}
) |
function createPacket(data, length)
local start = 1
local i = 1
local packet = {}
while true do
packet[i] = string.sub(data, start, start + (length - 1)
start = start + length
end
return packet
end
for i = 1, text in pairs(createPacket("qwertyuiopasdfghjklzxcvbnm", 2)) do
print(text)
end
|
local text = require("text")
local vt100 = {}
-- runs patterns on ansi until failure
-- returns valid:boolean, completed_index:nil|number
function vt100.validate(ansi, patterns)
local last_index = 0
local captures = {}
for _,pattern in ipairs(patterns) do
if last_index >= #ansi then
return true
end
local si, ei, capture = ansi:find("^(" .. pattern .. ")", last_index + 1)
if not si then -- failed to match
return
end
captures[#captures + 1] = capture
last_index = ei
end
return true, last_index, captures
end
local rules = {}
-- colors
-- [%d+;%d+;..%d+m
rules[{"%[", "[%d;]*", "m"}] = function(_, _, number_text)
local numbers = {}
-- prefix and suffix ; act as reset
-- e.g. \27[41;m is actually 41 followed by a reset
number_text = ";" .. number_text:gsub("^;$","") .. ";"
local parts = text.split(number_text, {";"})
local last_was_break
for _,part in ipairs(parts) do
local num = tonumber(part)
if not num then
num = last_was_break and 0
last_was_break = true
else
last_was_break = false
end
if num == 0 then
numbers[#numbers + 1] = 40
numbers[#numbers + 1] = 37
elseif num then
numbers[#numbers + 1] = num
end
end
return numbers
end
-- [?7[hl] wrap mode
rules[{"%[", "%?", "7", "[hl]"}] = function(window, _, _, _, nowrap)
window.nowrap = nowrap == "l"
end
-- helper scroll function
local function set_cursor(window, x, y)
window.x = math.min(math.max(x, 1), window.width)
window.y = math.min(math.max(y, 1), window.height)
end
-- -- These DO NOT SCROLL
-- [(%d+)A move cursor up n lines
-- [(%d+)B move cursor down n lines
-- [(%d+)C move cursor right n lines
-- [(%d+)D move cursor left n lines
rules[{"%[", "%d+", "[ABCD]"}] = function(window, _, n, dir)
local dx, dy = 0, 0
n = tonumber(n)
if dir == "A" then
dy = -n
elseif dir == "B" then
dy = n
elseif dir == "C" then
dx = n
else -- D
dx = -n
end
set_cursor(window, window.x + dx, window.y + dy)
end
-- [Line;ColumnH Move cursor to screen location v,h
-- [Line;Columnf ^ same
rules[{"%[", "%d+", ";", "%d+", "[Hf]"}] = function(window, _, y, _, x)
set_cursor(window, tonumber(x), tonumber(y))
end
-- [K clear line from cursor right
-- [0K ^ same
-- [1K clear line from cursor left
-- [2K clear entire line
local function clear_line(window, _, n)
n = tonumber(n) or 0
local x = n == 0 and window.x or 1
local rep = n == 1 and window.x or window.width
window.gpu.set(x, window.y, (" "):rep(rep))
end
rules[{"%[", "[012]?", "K"}] = clear_line
-- [J clear screen from cursor down
-- [0J ^ same
-- [1J clear screen from cursor up
-- [2J clear entire screen
rules[{"%[", "[012]?", "J"}] = function(window, _, n)
clear_line(window, _, n)
n = tonumber(n) or 0
local y = n == 0 and (window.y + 1) or 1
local rep = n == 1 and (window.y - 1) or window.height
window.gpu.fill(1, y, window.width, rep, " ")
end
-- [H move cursor to upper left corner
-- [;H ^ same
-- [f ^ same
-- [;f ^ same
rules[{"%[;?", "[Hf]"}] = function(window)
set_cursor(window, 1, 1)
end
-- [6n get the cursor position [ EscLine;ColumnR Response: cursor is at v,h ]
rules[{"%[", "6", "n"}] = function(window)
-- this solution puts the response on stdin, but it isn't echo'd
-- I'm personally fine with the lack of echo
io.stdin.bufferRead = string.format("%s%s%d;%dR", io.stdin.bufferRead, string.char(0x1b), window.y, window.x)
end
-- D scroll up one line -- moves cursor down
-- E move to next line (acts the same ^, but x=1)
-- M scroll down one line -- moves cursor up
rules[{"[DEM]"}] = function(window, dir)
if dir == "D" then
window.y = window.y + 1
elseif dir == "E" then
window.y = window.y + 1
window.x = 1
else -- M
window.y = window.y - 1
end
end
local function save_attributes(window, save)
if save then
local data = window.saved or {1, 1, {0x0}, {0xffffff}}
window.x = data[1]
window.y = data[2]
window.gpu.setBackground(table.unpack(data[3]))
window.gpu.setForeground(table.unpack(data[4]))
else
window.saved = {window.x, window.y, {window.gpu.getBackground()}, {window.gpu.getForeground()}}
end
end
-- 7 save cursor position and attributes
-- 8 restore cursor position and attributes
rules[{"[78]"}] = function(window, restore)
save_attributes(window, restore == "8")
end
-- s save cursor position
-- u restore cursor position
rules[{"%[", "[su]"}] = function(window, _, restore)
save_attributes(window, restore == "u")
end
function vt100.parse(window)
local ansi = window.ansi_escape
window.ansi_escape = nil
local any_valid
for rule,action in pairs(rules) do
local ok, completed, captures = vt100.validate(ansi, rule)
if completed then
return action(window, table.unpack(captures)) or {}, "", ansi:sub(completed + 1)
elseif ok then
any_valid = true
end
end
if not any_valid then
-- malformed
return {}, string.char(0x1b), ansi
end
-- else, still consuming
window.ansi_escape = ansi
return {}, "", ""
end
return vt100
|
for _,v in pairs(game.Workspace.Mine:GetChildren()) do
if string.match(v.Name, "Ill") or string.match(v.Name, "Az") or string.match(v.Name, "Dia") then
v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame+Vector3.new(math.random(0,50),0,math.random(0,50))
end
end |
local generate = function ()
local colors = {
cNone = 'NONE',
cFront = '#D4D4D4',
cBack = '#1E1E1E',
cTabCurrent = '#1E1E1E',
cTabOther = '#2D2D2D',
cTabOutside = '#252526',
cLeftDark = '#252526',
cLeftMid = '#373737',
cLeftLight = '#636369',
cPopupFront = '#BBBBBB',
cPopupBack = '#2D2D30',
cPopupHighlightBlue = '#073655',
cPopupHighlightGray = '#3D3D40',
cSplitLight = '#898989',
cSplitDark = '#444444',
cSplitThumb = '#424242',
cCursorDarkDark = '#222222',
cCursorDark = '#51504F',
cCursorLight = '#AEAFAD',
cSelection = '#264F78',
cLineNumber = '#5A5A5A',
cDiffRedDark = '#4B1818',
cDiffRedLight = '#6F1313',
cDiffRedLightLight = '#FB0101',
cDiffGreenDark = '#373D29',
cDiffGreenLight = '#4B5632',
cSearchCurrent = '#4B5632',
cSearch = '#264F78',
cGray = '#808080',
cViolet = '#9a5cce',
cPictonBlue = '#569CD6',
cCurlyWillow = '#b3a589',
cJapaneseLaurel = '#358A43',
cOlive = '#79740e',
cLightGreen = '#B5CEA8',
cThunderbird = '#CC241D',
cLightRed = '#D16969',
cYellowOrange = '#D7BA7D',
cYellow = '#DCDCAA',
cTapestry = '#b16286',
cUiBlue = '#0451A5',
cTenne = '#D65D0E',
cMediumOrchid = '#BA55D3'
}
return colors
end
return {generate = generate}
|
class "BoneTrack"
function BoneTrack:__getvar(name)
if name == "position" then
local retVal = Polycode.BoneTrack_get_position(self.__ptr)
if retVal == nil then return nil end
local __c = _G["Vector3"]("__skip_ptr__")
__c.__ptr = retVal
return __c
elseif name == "scale" then
local retVal = Polycode.BoneTrack_get_scale(self.__ptr)
if retVal == nil then return nil end
local __c = _G["Vector3"]("__skip_ptr__")
__c.__ptr = retVal
return __c
elseif name == "boneQuat" then
local retVal = Polycode.BoneTrack_get_boneQuat(self.__ptr)
if retVal == nil then return nil end
local __c = _G["Quaternion"]("__skip_ptr__")
__c.__ptr = retVal
return __c
elseif name == "weight" then
return Polycode.BoneTrack_get_weight(self.__ptr)
end
end
function BoneTrack:__setvar(name,value)
if name == "position" then
Polycode.BoneTrack_set_position(self.__ptr, value.__ptr)
return true
elseif name == "scale" then
Polycode.BoneTrack_set_scale(self.__ptr, value.__ptr)
return true
elseif name == "boneQuat" then
Polycode.BoneTrack_set_boneQuat(self.__ptr, value.__ptr)
return true
elseif name == "weight" then
Polycode.BoneTrack_set_weight(self.__ptr, value)
return true
end
return false
end
function BoneTrack:BoneTrack(...)
local arg = {...}
for k,v in pairs(arg) do
if type(v) == "table" then
if v.__ptr ~= nil then
arg[k] = v.__ptr
end
end
end
if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
self.__ptr = Polycode.BoneTrack(unpack(arg))
end
end
function BoneTrack:Play(once)
local retVal = Polycode.BoneTrack_Play(self.__ptr, once)
end
function BoneTrack:Stop()
local retVal = Polycode.BoneTrack_Stop(self.__ptr)
end
function BoneTrack:Update(elapsed)
local retVal = Polycode.BoneTrack_Update(self.__ptr, elapsed)
end
function BoneTrack:Reset()
local retVal = Polycode.BoneTrack_Reset(self.__ptr)
end
function BoneTrack:setSpeed(speed)
local retVal = Polycode.BoneTrack_setSpeed(self.__ptr, speed)
end
function BoneTrack:__delete()
if self then Polycode.delete_BoneTrack(self.__ptr) end
end
|
_package_("gate")
component("Gate")
implement('IHttpHandler')
function main()
print('Gate.main')
end
function Awake(self)
for k, v in pairs(__INTERFACE) do
print(k, v)
end
print('Gate.Awake', __INTERFACE[1])
end
function Update(self, now)
--print('Gate.Update', now)
end
--implement('IHttpHandler.RecvHttpRequest')
function RecvHttpRequest(self, request, response)
print("ccccccc", request, request.headerLen, request.contentLength)
-- print(request.headers[1].field.buf)
print(request.url)
print(request.method)
print(request.body)
print(request.sessionId)
print(request:GetHeader('Connection'))
--request:SendString("hello")
response:SendString("hello")
--print(request.bb.aa)
end |
currentVersion = "1.0" |
local Inventory = require("api.Inventory")
local ILocation = require("api.ILocation")
local Log = require("api.Log")
--- Interface for character inventory. Allows characters to store map
--- objects.
local ICharaInventory = class.interface("ICharaInventory", {}, {ILocation})
ICharaInventory:delegate("inv",
{
"is_positional",
"can_take_object",
"is_in_bounds",
"objects_at_pos"
})
function ICharaInventory:iter()
-- HACK for purposes of IOwned:get_location() (see #149)
return fun.chain(self:iter_items(), self:iter_shop_inventory())
end
--- Iterates both the character's inventory and equipment.
---
--- @treturn Iterator(IItem)
function ICharaInventory:iter_items()
return fun.chain(self:iter_inventory(), self:iter_equipment())
end
-- HACK see #149
function ICharaInventory:iter_shop_inventory()
if self.shop_inventory == nil then
return fun.iter({})
end
return self.shop_inventory:iter()
end
function ICharaInventory:get_object(uid)
local obj = self.inv:get_object(uid)
if not obj then
obj = self.equip:get_object(uid)
end
-- HACK see #149
if not obj and self.shop_inventory then
obj = self.shop_inventory:get_object(uid)
end
return obj
end
function ICharaInventory:move_object(obj, x, y)
if self.inv:has_object(obj) then
return self.inv:move_object(obj, x, y)
elseif self.equip:has_object(obj) then
return self.equip:move_object(obj, x, y)
-- HACK see #149
elseif self.shop_inventory and self.shop_inventory:has_object(obj) then
return self.shop_inventory:move_object(obj, x, y)
end
return nil
end
function ICharaInventory:remove_object(obj)
if self.inv:has_object(obj) then
return self.inv:remove_object(obj)
elseif self.equip:has_object(obj) then
return self.equip:remove_object(obj)
-- HACK see #149
elseif self.shop_inventory and self.shop_inventory:has_object(obj) then
return self.shop_inventory:remove_object(obj)
end
return nil
end
function ICharaInventory:has_object(obj)
if self.inv:has_object(obj) then
return true
elseif self.equip:has_object(obj) then
return true
-- HACK see #149
elseif self.shop_inventory and self.shop_inventory:has_object(obj) then
return true
end
return false
end
function ICharaInventory:init()
self.inv = Inventory:new(200, "base.item", self)
end
function ICharaInventory:take_object(obj)
if not self:can_take_object(obj) then
return nil
end
if not self.inv:take_object(obj) then
return nil
end
self:refresh_weight()
return obj
end
function ICharaInventory:drop_item(item, amount)
if not self:has_item_in_inventory(item) then
Log.warn("Character %d tried dropping item, but it was not in their inventory. %d", self.uid, item.uid)
return nil
end
local map = self:current_map()
if not map then
Log.warn("Character tried dropping item, but was not in map. %d", self.uid)
return nil
end
return item:move_some(amount, map, self.x, self.y)
end
function ICharaInventory:has_item_in_inventory(item)
return self.inv:has_object(item)
end
function ICharaInventory:take_item(item, amount)
return item:move_some(amount, self)
end
function ICharaInventory:find_items(_id)
return self:iter_inventory():filter(function(i) return i.amount > 0 and i._id == _id end)
end
function ICharaInventory:find_item(_id)
return self:find_items(_id):nth(1)
end
--- Iterates the items in the character's inventory (excluding
--- equipment).
---
--- @treturn iterator(IItem)
function ICharaInventory:iter_inventory()
return self.inv:iter()
end
function ICharaInventory:free_inventory_slots()
return self.inv:free_slots()
end
function ICharaInventory:is_inventory_full()
return self.inv:is_full()
end
return ICharaInventory
|
local E, C, L = select(2, ...):unpack()
----------------------------------------------------------------------------------------
-- Core Fader Methods (modified from rLib)
----------------------------------------------------------------------------------------
local defaultFadeIn = { time = 0.4, alpha = 1 }
local defaultFadeOut = { time = 0.3, alpha = 0 }
local frameFadeManager = CreateFrame("FRAME")
-- Generic fade function
local function UIFrameFade(frame, fadeInfo)
if not frame then return end
if not fadeInfo.mode then fadeInfo.mode = "IN" end
local alpha
if fadeInfo.mode == "IN" then
if not fadeInfo.startAlpha then fadeInfo.startAlpha = 0 end
if not fadeInfo.endAlpha then fadeInfo.endAlpha = 1.0 end
alpha = 0
elseif fadeInfo.mode == "OUT" then
if not fadeInfo.startAlpha then fadeInfo.startAlpha = 1.0 end
if not fadeInfo.endAlpha then fadeInfo.endAlpha = 0 end
alpha = 1.0
end
frame:SetAlpha(fadeInfo.startAlpha)
frame.fadeInfo = fadeInfo
local index = 1
while FADEFRAMES[index] do
-- If frame is already set to fade then return
if (FADEFRAMES[index] == frame) then return end
index = index + 1
end
tinsert(FADEFRAMES, frame)
frameFadeManager:SetScript("OnUpdate", UIFrameFade_OnUpdate)
end
-- Convenience function to do a simple fade in
function E:UIFrameFadeIn(frame, timeToFade, startAlpha, endAlpha)
local fadeInfo = {}
fadeInfo.mode = "IN"
fadeInfo.timeToFade = timeToFade
fadeInfo.startAlpha = startAlpha
fadeInfo.endAlpha = endAlpha
UIFrameFade(frame, fadeInfo)
end
-- Convenience function to do a simple fade out
function E:UIFrameFadeOut(frame, timeToFade, startAlpha, endAlpha)
local fadeInfo = {}
fadeInfo.mode = "OUT"
fadeInfo.timeToFade = timeToFade
fadeInfo.startAlpha = startAlpha
fadeInfo.endAlpha = endAlpha
UIFrameFade(frame, fadeInfo)
end
--ButtonBarFader func
function E:ButtonBarFader(frame, buttonList, fadeIn, fadeOut)
if not frame or not buttonList then return end
if not fadeIn then fadeIn = defaultFadeIn end
if not fadeOut then fadeOut = defaultFadeOut end
frame:EnableMouse(true)
frame:HookScript("OnEnter", function() E:UIFrameFadeIn(frame, fadeIn.time, frame:GetAlpha(), fadeIn.alpha) end)
frame:HookScript("OnLeave", function() E:UIFrameFadeOut(frame, fadeOut.time, frame:GetAlpha(), fadeOut.alpha) end)
E:UIFrameFadeOut(frame, fadeOut.time, frame:GetAlpha(), fadeOut.alpha)
for _, button in pairs(buttonList) do
if button then
button:HookScript("OnEnter", function() E:UIFrameFadeIn(frame, fadeIn.time, frame:GetAlpha(), fadeIn.alpha) end)
button:HookScript("OnLeave", function() E:UIFrameFadeOut(frame, fadeOut.time, frame:GetAlpha(), fadeOut.alpha) end)
end
end
end
--SpellFlyoutFader func
--the flyout is special, when hovering the flyout the parented bar must not fade out
function E:SpellFlyoutFader(frame, buttonList, fadeIn, fadeOut)
if not frame or not buttonList then return end
if not fadeIn then fadeIn = defaultFadeIn end
if not fadeOut then fadeOut = defaultFadeOut end
SpellFlyout:HookScript("OnEnter", function() E:UIFrameFadeIn(frame, fadeIn.time, frame:GetAlpha(), fadeIn.alpha) end)
SpellFlyout:HookScript("OnLeave", function() E:UIFrameFadeOut(frame, fadeOut.time, frame:GetAlpha(), fadeOut.alpha) end)
for _, button in pairs(buttonList) do
if button then
button:HookScript("OnEnter", function() E:UIFrameFadeIn(frame, fadeIn.time, frame:GetAlpha(), fadeIn.alpha) end)
button:HookScript("OnLeave", function() E:UIFrameFadeOut(frame, fadeOut.time, frame:GetAlpha(), fadeOut.alpha) end)
end
end
end
--FrameFader func
function E:FrameFader(frame, fadeIn, fadeOut)
if not frame then return end
if not fadeIn then fadeIn = defaultFadeIn end
if not fadeOut then fadeOut = defaultFadeOut end
frame:EnableMouse(true)
frame:HookScript("OnEnter", function() E:UIFrameFadeIn(frame, fadeIn.time, frame:GetAlpha(), fadeIn.alpha) end)
frame:HookScript("OnLeave", function() E:UIFrameFadeOut(frame, fadeOut.time, frame:GetAlpha(), fadeOut.alpha) end)
E:UIFrameFadeOut(frame, fadeOut.time, frame:GetAlpha(), fadeOut.alpha)
end
--CombatFrameFader func
function E:CombatFrameFader(frame, fadeIn, fadeOut)
if not frame then return end
if not fadeIn then fadeIn = defaultFadeIn end
if not fadeOut then fadeOut = defaultFadeOut end
frame:RegisterEvent("PLAYER_REGEN_ENABLED")
frame:RegisterEvent("PLAYER_REGEN_DISABLED")
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:HookScript("OnEvent", function(_, event, ...)
if event == "PLAYER_REGEN_DISABLED" then
E:UIFrameFadeIn(frame, fadeIn.time, frame:GetAlpha(), fadeIn.alpha)
elseif event == "PLAYER_REGEN_ENABLED" or event == "PLAYER_ENTERING_WORLD" then
E:UIFrameFadeOut(frame, fadeOut.time, frame:GetAlpha(), fadeOut.alpha)
end
end)
end
|
if page < maxPage then
page = page + 1
selected_machine_index = 1
Storage.clear()
end |
object_tangible_dungeon_hoth_ice_block = object_tangible_dungeon_hoth_shared_ice_block:new {
}
ObjectTemplates:addTemplate(object_tangible_dungeon_hoth_ice_block, "object/tangible/dungeon/hoth/ice_block.iff")
|
local class = require 'middleclass'
-- クラス:種族
local Race = class 'Race'
-- クラス
local Statistics = require 'valueobjects.Statistics'
local SavingThrow = require 'valueobjects.SavingThrow'
-- 初期化
function Race:initialize(t)
t = t or {}
-- 名前
self.name = t.name or ''
-- 初期能力値
self.statistics = Statistics(t.statistics)
-- セービングスロー
self.savingthrow = SavingThrow(t.savingthrow)
end
return Race
|
Config = Config or {}
-- Discord Logs Config
Config.LogsImage = "https://cdn.discordapp.com/attachments/926465631770005514/966038265130008576/CloudDevv.png"
Config.WebHook = "YOUR WEBHOOK"
Config.FuelSystem = "LegacyFuel" -- Put here your fuel system LegacyFuel by default
Config.UsePreviewMenuSync = false -- Sync for the preview menu when player is inside the preview menu other players cant get inside (can prevent bugs but not have to use)
Config.UseMarkerInsteadOfMenu = true -- Want to use the marker to return the vehice? if false you can do that by opening the menu
Config.SetVehicleTransparency = 'low' -- Want to make the vehicle more transparent? you have a lot of options to choose from: low, medium, high, none
Config.Job = 'police' --The job needed to open the menu
--You Can Add As Many As You Like
--DO NOT add vehicles that are not in your shared ! otherwise the qb-garages wont work
Config.Vehicles = {
[1] = {
['vehiclename'] = "Bati", --Name
['vehicle'] = "bati", --Model
['price'] = 5000, --Price
},
[2] = {
['vehiclename'] = "Test", --Name
['vehicle'] = "t20", --Model
['price'] = 18000, --Price
},
[3] = {
['vehiclename'] = "Police2", --Name
['vehicle'] = "sultan", --Model
['price'] = 10000, --Price
},
[4] = {
['vehiclename'] = "SultanRS", --Name
['vehicle'] = "sultanrs", --Model
['price'] = 52000, --Price
},
}
Config.RepairLocations = {
--MRPD
[1] = {
['coords'] = vector3(439.94305, -1021.742, 28.604888),
['distance'] = 32.0
},
} |
-- Tabs changing
keys['ctrl+pgdn'] = function () view.goto_buffer(_G.view, 1) end
keys['ctrl+pgup'] = function () view.goto_buffer(_G.view, -1) end
-- Readonly buffer
-- NOTE: Changes tab label!
--local ORIGINAL_TAB_LABELS = {}
--
--local SERVICE_BUFFERS = {
-- ['[Message Buffer]'] = '[Message Buffer]',
-- ['Untitled'] = 'Untitled'
--}
--
--local READONLY_MARKER = '[%] '
--
--local function remember_tab_label()
-- ORIGINAL_TAB_LABELS[buffer] = buffer.tab_label
--end
--
--local function update_tab_label()
-- FIX: Make this not hardcoded
-- if SERVICE_BUFFERS[buffer.filename] then return end
--
-- local filename = buffer.filename and buffer.filename:match("([^/]+)$") or 'Untitled'
--
-- if buffer.read_only then
-- if buffer.modify then
-- buffer.tab_label = READONLY_MARKER .. filename .. '*'
-- else
-- buffer.tab_label = READONLY_MARKER .. filename
-- end
-- else
-- if buffer.modify then
-- buffer.tab_label = filename .. '*'
-- else
-- buffer.tab_label = filename
-- end
-- end
--end
local function toggle_buffer_readonly()
--if SERVICE_BUFFERS[buffer.filename] then return end
buffer.read_only = not buffer.read_only
--update_tab_label()
end
--events.connect(events.BUFFER_NEW, remember_tab_label)
--events.connect(events.BUFFER_AFTER_SWITCH, update_tab_label)
--events.connect(events.FILE_AFTER_SAVE, update_tab_label)
keys['ctrl+%'] = toggle_buffer_readonly
-- Reopen just closed buffer
local OPENED_BUFFERS = {} -- order of opening indexed by filenames
local CLOSED_BUFFERS = {} -- order of closing indexed by filenames
local function remove_from_dict(dict, index)
local new_dict = {}
for k, v in ipairs(dict) do
if k < index then
new_dict[k] = dict[k]
new_dict[dict[k]] = k
else
if k > index then
new_dict[k-1] = dict[k]
new_dict[dict[k]] = k-1
end
end
end
return new_dict
end
local function record_all_opened_filenames()
for k, v in pairs(_G._BUFFERS) do
if type(v) == 'ta_buffer' and v.filename then
record_opened_filename(v.filename)
end
end
end
local function record_opened_filename(filename)
if not filename then
filename = buffer.filename
end
local new_opened_index = #OPENED_BUFFERS + 1
OPENED_BUFFERS[filename] = new_opened_index
OPENED_BUFFERS[new_opened_index] = filename
-- remove last ordered buffer from closed if we reopened it
if CLOSED_BUFFERS[filename] then
local last_closed_index = #CLOSED_BUFFERS
CLOSED_BUFFERS[filename] = nil
CLOSED_BUFFERS[last_closed_index] = nil
end
end
local function record_closed_filename(filename)
local opened_index = OPENED_BUFFERS[filename]
OPENED_BUFFERS = remove_from_dict(OPENED_BUFFERS, opened_index)
local new_closed_index = #CLOSED_BUFFERS + 1
CLOSED_BUFFERS[filename] = new_closed_index
CLOSED_BUFFERS[new_closed_index] = filename
end
local function handle_closed_buffer()
-- get current opened buffers (without just closed buffer)
local current_buffers = {}
for k, v in ipairs(_G._BUFFERS) do
if v.filename then
current_buffers[v.filename] = v.filename
end
end
-- move missing filename from opened to closed
local found_filename = ''
for k, v in ipairs(OPENED_BUFFERS) do
if not current_buffers[v] then
found_filename = v
break
end
end
if found_filename ~= '' then
record_closed_filename(found_filename)
end
end
local function reopen_closed_file()
if #CLOSED_BUFFERS < 1 then return true end
local last_closed_index = #CLOSED_BUFFERS
io.open_file(CLOSED_BUFFERS[last_closed_index])
record_opened_filename(CLOSED_BUFFERS[last_closed_index])
end
events.connect(events.INITIALIZED, record_all_opened_filenames)
events.connect(events.FILE_OPENED, record_opened_filename)
events.connect(events.BUFFER_DELETED, handle_closed_buffer)
keys['ctrl+T'] = reopen_closed_file
|
local Pubutils = require "pubutils"
local Skynet = require "skynet"
-------时间相关--------
function GetCSecond()
return Skynet.now()
end
function GetMSecond()
return Skynet.now()*10
end
-------定时器相关--------
-- ti: 执行间隔,单位百分之一秒(10ms)
-- count:0表示无限次数, >0 有限次
-- handle : 自定义(int,string等常量key)或系统分配
local timer_no = 0
local timer_list = {}
local timer_default_hdl = 0
function AddTimer(ti, func, handle, count)
assert(ti >= 0)
count = count or 0
count = (count>0) and count or true
if handle == nil then
handle = timer_default_hdl
timer_default_hdl = timer_default_hdl + 1
end
local tno = timer_no
timer_no = timer_no + 1
timer_list[handle] = {tno, count}
local f
f = function ()
if not timer_list[handle] then
return
end
if timer_list[handle][1] ~= tno then
return
end
if timer_list[handle][2] == true then
Skynet.timeout(ti, f)
else
timer_list[handle][2] = timer_list[handle][2] - 1
if timer_list[handle][2] > 0 then
Skynet.timeout(ti, f)
else
timer_list[handle] = nil
end
end
func()
end
Skynet.timeout(ti, f)
return handle
end
function RemoveTimer(handle)
timer_list[handle] = nil
end
function RemoveAllTimers()
timer_list = {}
end
function FindTimer(handle)
return timer_list[handle]
end
-------其他相关--------
local UniqIDList = {}
function NewServiceUniqID(sType)
if not UniqIDList[sType] then
UniqIDList[sType] = 0
end
UniqIDList[sType] = UniqIDList[sType] + 1
return UniqIDList[sType]
end
function SkynetCall(service, cmd, ...)
return Skynet.call(service, "lua", cmd, ...)
end
function SkynetSend(service, cmd, ...)
Skynet.send(service, "lua", cmd, ...)
end
local M = {}
for k,v in pairs(Pubutils) do
M[k] = v
end
return M |
local premake = require('premake')
local vstudio = require('vstudio')
local vcxproj = vstudio.vcxproj
local VcVcxFiltersTests = test.declare('VcVcxFiltersTests', 'vcxproj', 'vstudio')
function VcVcxFiltersTests.setup()
vstudio.setTargetVersion(2015)
end
local function _execute(fn)
workspace('MyWorkspace', function ()
project('MyProject', function ()
fn()
end)
end)
local prj = vcxproj.prepare(vstudio.fetch(2015).workspaces['MyWorkspace'].projects['MyProject'])
vcxproj.filters.filters(prj)
end
---
-- Files at the root of the project, with no path information, should not specify any filter.
---
function VcVcxFiltersTests.filters_onNoPath()
_execute(function ()
files { 'hello.h' }
end)
test.capture [[
<ItemGroup>
<ClInclude Include="hello.h" />
</ItemGroup>
]]
end
---
-- Files located in a subfolder should specify the parent folder as the filter.
---
function VcVcxFiltersTests.filters_onNestedFolders()
_execute(function ()
files { 'src/greetings/hello.h' }
end)
test.capture [[
<ItemGroup>
<ClInclude Include="src\greetings\hello.h">
<Filter>src\greetings</Filter>
</ClInclude>
</ItemGroup>
]]
end
|
--[[
Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved
@file Rule.lua
@author sunnnychan@gmail.com
@date 2016/03/12 11:27:24
@brief rule judge
]]--
local BDLOG = require('lua.bdlib.BdLogWrite')
local setmetatable = setmetatable
local type = type
local tonumber = tonumber
local tostring = tostring
local str_format = string.format
local TableUtil = require('lua.bdlib.Table')
local ExpDef = require('library.def.ExperDef')
local InputKey = ExpDef.ActionJudgeInputFields
local Rule = {}
function Rule:new(ruleId, ruleConf, input)
local instance = {
RULE_DIM_REQ_PARAMS = 9,
rule_dimension = {
-- ip
[1] = InputKey.client_ip,
-- passid
[2] = InputKey.pass_id,
-- userId
-- [3] = InputKey.pass_id,
-- cuid
[4] = InputKey.cuid,
-- os_type
[5] = InputKey.user_agent,
-- version
[6] = InputKey.user_agent,
-- uri
[7] = InputKey.req_uri,
-- random, not need input value
[8] = '',
-- post data, config in rule content
[9] = 'from_rule_content',
},
rule_type = {
-- proprotion
[1] = '',
-- string include (case sencitive)
[2] = '',
-- string include (case insencitive)
[3] = '',
-- new userid
[4] = '',
-- old userid
[5] = '',
-- IP CIDR
[6] = '',
-- white list
[7] = '',
-- preg match
[8] = '',
-- string equal (case sencitive)
[9] = '',
-- string equal (case insencitive)
[10] = '',
},
dimension_module = {
-- ip
[1] = 'IpJudge',
-- passid
[2] = 'PassidJudge',
-- userId
-- [3] = CInputKey.pass_id,
-- cuid
[4] = 'CuidJudge',
-- os_type
[5] = 'OstypeJudge',
-- version
[6] = 'VersionJudge',
-- uri
[7] = 'UriJudge',
-- random
[8] = 'RandomJudge',
-- post data
[9] = 'ReqParamsJudge'
},
}
instance.judgeClassPath = 'models.service.rule'
instance.rule_id = ruleId
instance.rule_conf = ruleConf
instance.input = input
setmetatable(instance, {__index = self})
return instance
end
function Rule:judge()
BDLOG.log_notice('Rule:judge, rule id : %s Rule Conf : %s', self.rule_id, TableUtil:serialize(self.rule_conf))
if self.rule_conf['rule_dimension'] == nil or self.rule_conf['rule_style'] == nil
or self.rule_conf['rule_content'] == nil then
BDLOG.log_fatal('rule conf error, some key not config.')
return false
end
local ruleContent = self.rule_conf['rule_content']
-- rule dimesion integer and string value
local strRuleDim = self.rule_conf['rule_dimension']
local intRuleDim = nil
if type(strRuleDim) == 'string' then
intRuleDim = tonumber(strRuleDim)
elseif type(strRuleDim) == 'number' then
intRuleDim = strRuleDim
strRuleDim = tostring(intRuleDim)
else
BDLOG.log_fatal('rule conf : rule_dimension invalid : %s', self.rule_conf['rule_dimension'])
return false
end
-- rule type integer and string value
local strRuleType = self.rule_conf['rule_style']
local intRuleType = nil
if type(strRuleType) == 'string' then
intRuleType = tonumber(strRuleType)
elseif type(strRuleType) == 'number' then
intRuleType = strRuleType
strRuleType = tostring(intRuleType)
else
BDLOG.log_fatal('rule conf : rule_style invalid : %s', self.rule_conf['rule_style'])
return false
end
-- check dimension value in conf
if self.rule_dimension[intRuleDim] == nil then
BDLOG.log_fatal('rule dimension unsupported. [rule_dimension] : %s', strRuleDim)
return false
end
-- check type value in conf
if self.rule_type[intRuleType] == nil then
BDLOG.log_fatal('rule type unsupported. [rule_type] : %s', strRuleType)
return false
end
BDLOG.log_debug("rule_dim : %s , rule_type : %s", strRuleDim, strRuleType)
BDLOG.log_debug("rule judge class path : %s %s", self.judgeClassPath, self.dimension_module[intRuleDim])
local judgeClass = require(self.judgeClassPath .. '.' .. self.dimension_module[intRuleDim])
local inputData = self:getInputDataJudgeBy(intRuleDim)
if not inputData then
BDLOG.log_warning('Rule:getInputDataJudgeBy failed.')
return false
end
local objJudge = judgeClass:new(inputData, intRuleType, ruleContent)
return objJudge:judge()
end
function Rule:getInputDataJudgeBy(intRuleDim)
-- 不需要输入数据来判定,如随机
if self.rule_dimension[intRuleDim] == '' then
return ''
end
local dimensionInputKey = self.rule_dimension[intRuleDim]
-- Request Params 维度获取判断值的key 从rule content中获取
if self.RULE_DIM_REQ_PARAMS == intRuleDim and self.rule_conf['req_params_key'] ~= nil then
dimensionInputKey = self.rule_conf['req_params_key']
end
BDLOG.log_debug('dimensionInputKey : %s', dimensionInputKey)
-- NULL value stand not need dimension input data
if dimensionInputKey ~= '' and self.input[dimensionInputKey] == nil then
BDLOG.log_warning('Not have dimension Input, dimension : %s', self.dimension_module[intRuleDim])
return false
end
if self.input[dimensionInputKey] == nil then
return false
end
return self.input[dimensionInputKey]
end
return Rule
|
--Menu de TDBD
--Almacenar imagen de las opciones
Menu = Image.load("Imagenes/Menu.png")
FrameMenu0 = Image.load("FramesMenu/Frame0.png")
FrameMenu1 = Image.load("FramesMenu/Frame1.png")
FrameMenu2 = Image.load("FramesMenu/Frame2.png")
FrameMenu3 = Image.load("FramesMenu/Frame3.png")
FrameMenu4 = Image.load("FramesMenu/Frame4.png")
FrameMenu5 = Image.load("FramesMenu/Frame5.png")
FrameMenu6 = Image.load("FramesMenu/Frame6.png")
FrameMenu7 = Image.load("FramesMenu/Frame7.png")
FrameMenu8 = Image.load("FramesMenu/Frame8.png")
FrameNada = Image.load("FrameNada/FrameNada.png")
oldpad = Controls.read()
opcion_actual = 1
--Empiezo
while true do
screen:clear()
pad = Controls.read()
screen:blit(0,0,Menu)
function cambiaopcion()
if opcion_actual == 1 then
Animacion1(true,6,25,0,0,FrameMenu0,FrameMenu1,FrameMenu2,FrameNada,FrameMenu2,FrameMenu1)
end
if opcion_actual == 2 then
Animacion2(true,6,25,0,0,FrameMenu3,FrameMenu4,FrameMenu5,FrameNada,FrameMenu5,FrameMenu4)
end
if opcion_actual == 3 then
Animacion3(true,6,25,0,0,FrameMenu6,FrameMenu7,FrameMenu8,FrameNada,FrameMenu8,FrameMenu7)
end
if pad:right() and not oldpad:right() then
opcion_actual = opcion_actual +1
end
if pad:left() and not oldpad:left() then
opcion_actual = opcion_actual -1
end
if pad:cross() and opcion_actual == 1 then
Menu = nil
FrameMenu0 = nil
FrameMenu1 = nil
FrameMenu2 = nil
FrameMenu3 = nil
FrameMenu4 = nil
FrameMenu5 = nil
FrameMenu6 = nil
FrameMenu7 = nil
FrameMenu8 = nil
FrameNada = nil
collectgarbage("collect")
System.memclean()
dofile("Tester.lua")
end
if pad:cross() and opcion_actual == 2 then
Menu = nil
FrameMenu0 = nil
FrameMenu1 = nil
FrameMenu2 = nil
FrameMenu3 = nil
FrameMenu4 = nil
FrameMenu5 = nil
FrameMenu6 = nil
FrameMenu7 = nil
FrameMenu8 = nil
FrameNada = nil
collectgarbage("collect")
System.memclean()
dofile("MenuDump.lua")
end
if pad:cross() and opcion_actual == 3 then
System.Quit()
end
if opcion_actual>=4 then
opcion_actual=1
elseif opcion_actual<=0 then
opcion_actual=3
end
end
cambiaopcion()
oldpad = pad
screen.flip()
screen.waitVblankStart()
end |
return require "lovesnow.cluster" |
ESX = nil
PlayerData = {}
Current = {
Action = nil,
Actionmsg = nil,
Spawn = {pos = nil, rot = nil},
Garage = nil,
CanTakeOut = nil,
isList = nil,
}
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
PlayerData = ESX.GetPlayerData()
end)
RegisterNetEvent('esx:playerLoaded')
AddEventHandler('esx:playerLoaded', function(xPlayer)
PlayerData = ESX.GetPlayerData()
end)
RegisterNetEvent('esx:setJob')
AddEventHandler('esx:setJob', function(job)
PlayerData.job = job
end)
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local plyped = PlayerPedId()
local coords = GetEntityCoords(plyped)
for k,v in pairs(Config.Locations) do
if (PlayerData.job and PlayerData.job.name == v.job and PlayerData.job.grade >= v.grade) or (v.job == false and v.grade == -1) then
local distance = GetDistanceBetweenCoords(coords, v.coords, true)
if distance <= 100 then
DrawMarker(v.markerType, v.coords, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, v.markerSize, v.markerColor, v.markerDensity, false, true, 2, true, false, false, false)
end
if distance < 2 then
Current.Action = 'confiscation'
Current.Actionmsg = 'Press ~INPUT_PICKUP~ to open the impound'
Current.Spawn.pos = v.spawnCoords
Current.Spawn.rot = v.spawnRotation
Current.Garage = v.garagePool
Current.CanTakeOut = v.canTakeOut
Current.isList = v.isList
ESX.ShowHelpNotification(Current.Actionmsg)
if IsControlJustPressed(0, 38) then
if Current.Action == 'confiscation' then
OpenConfiscateMenu()
end
end
end
end
end
end
end)
function ConfiscateVehicle()
local plyped = PlayerPedId()
local plycoords = GetEntityCoords(plyped)
local vehicle = ESX.Game.GetClosestVehicle(plycoords)
local vehicleData = ESX.Game.GetVehicleProperties(vehicle)
local plate = vehicleData.plate
local year, month, day, hour, minute, second = Citizen.InvokeNative(0x50C7A99057A69748, Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt())
local time = day.."."..month.."."..year.." "..hour..":"..minute..":"..second
if not ESX.UI.Menu.IsOpen('dialog', GetCurrentResourceName(), 'confiscatemenu1') then
ESX.UI.Menu.Open('dialog', GetCurrentResourceName(), 'confiscatemenu1', {
title = 'Available garages: '..table.concat(Config.GaragePools, ", ")
}, function(data, menu)
for k,v in pairs(Config.GaragePools) do
print(v)
if data.value == nil then
data.value = 'police'
end
if v == data.value then
menu.close()
TaskStartScenarioInPlace(plyped, 'CODE_HUMAN_MEDIC_TEND_TO_DEAD', 0, true)
ImpoundVehicle(vehicle)
ESX.TriggerServerCallback('GetVehOwner', function(owner)
TriggerServerEvent('InsertConfiscation', plate, owner, time, data.value)
end, plate)
end
end
end, function(data, menu)
menu.close()
end)
end
end
function OpenConfiscateMenu()
Citizen.Wait(1000)
if not ESX.UI.Menu.IsOpen('default', GetCurrentResourceName(), 'confiscatemenu2a') and not ESX.UI.Menu.IsOpen('default', GetCurrentResourceName(), 'confiscatemenu2b') then
if Current.isList then
ESX.TriggerServerCallback('RetrieveAllConfiscatedVehicles', function(confiscatedvehicles)
local elements = {}
for k,v in pairs(confiscatedvehicles) do
table.insert(elements, {label = "Owner: "..v.owner.." | ".."Officer: "..v.officer.." | ".."Plate: "..v.plate.." | ".."Date: "..v.originaldate.." | ".."Garage: "..v.garage, plate = v.plate})
end
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'confiscatemenu2a', {
title = "Confiscated Vehicles",
align = 'bottom-right',
elements = elements,
}, function (data, menu)
if Current.CanTakeOut then
menu.close()
TriggerServerEvent('DeleteConfiscation', data.current.plate)
ESX.ShowNotification("Vehicle with plate: "..data.current.plate.." released")
SpawnVehicle(data.current.plate)
OpenConfiscateMenu()
else
ESX.ShowNotification("This is not a garage")
end
end, function (data, menu)
menu.close()
end)
end)
else
ESX.TriggerServerCallback('RetrieveConfiscatedVehicles', function(confiscatedvehicles)
local elements = {}
for k,v in pairs(confiscatedvehicles) do
table.insert(elements, {label = "Owner: "..v.owner.." | ".."Officer: "..v.officer.." | ".."Plate: "..v.plate.." | ".."Date: "..v.originaldate, plate = v.plate})
end
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'confiscatemenu2b', {
title = "Confiscated Vehicles",
align = 'bottom-right',
elements = elements,
}, function (data, menu)
if Current.CanTakeOut then
menu.close()
TriggerServerEvent('DeleteConfiscation', data.current.plate)
ESX.ShowNotification("Vehicle with plate: "..data.current.plate.." released")
SpawnVehicle(data.current.plate)
OpenConfiscateMenu()
else
ESX.ShowNotification("This is not a garage")
end
end, function (data, menu)
menu.close()
end)
end, Current.Garage)
end
end
end
function ImpoundVehicle(vehicle)
Citizen.Wait(10000)
ClearPedTasks(PlayerPedId())
ESX.Game.DeleteVehicle(vehicle)
ESX.ShowNotification("Fahrzeug beschlagnahmt")
end
function SpawnVehicle(plate)
ESX.TriggerServerCallback('GetVehData', function(vehdata)
vehdata.vehicle = json.decode(vehdata[1].vehicle)
ESX.Game.SpawnVehicle(vehdata.vehicle.model, Current.Spawn.pos, Current.Spawn.rot, function(spawnedvehicle)
ESX.Game.SetVehicleProperties(spawnedvehicle, vehdata.vehicle)
end)
end, plate)
end
RegisterCommand('confiscate', function()
if (PlayerData.job and PlayerData.job.name == 'police') or (PlayerData.job and PlayerData.job.name == 'fib') then
ConfiscateVehicle()
else
ESX.ShowNotification('You are not an officer')
end
end, false) |
--file concerning loading of stuff
require("nonplayer")
function loadLevel(name, level)
--NO SPACES
--first line is: player1Start,player2Start,player1End,player2End,
--second line is: wallPosition1,wallPosition2,...
--third line is: start+type,start+type,...
--with type being the enemy type and start being their location
local player = 0
local player2 = 0
local end1 = 0
local end2 = 0
local foes = {}
local walls = {}
local current = 0
for line in love.filesystem.lines(name) do
if current >= level * 3 and current < (level + 1) * 3 then
local split = mysplit(line,",")
if current % 3 == 0 then
--player stuff
player = tonumber(split[1])
player2 = tonumber(split[2])
end1 = tonumber(split[3])
end2 = tonumber(split[4])
elseif current % 3 == 1 then
--walls
for i, str in ipairs(split) do
table.insert(walls, tonumber(str))
end
else
--baddy stuff
for i, str in ipairs(split) do
local subtable = mysplit(str, "+")
table.insert(foes, makeFoe(tonumber(subtable[1]), tonumber(subtable[2])))
end
end
end
current = current + 1
end
return player, player2, end1, end2, foes, walls, math.floor(current / 3)
end
--https://stackoverflow.com/a/7615129
function mysplit(inputstr, sep)
if sep == nil then
sep = "%s"
end
local t={}
for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
table.insert(t, str)
end
return t
end |
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2017 Matthias Schiffer <mschiffer@universe-factory.net>
-- Licensed to the public under the Apache License 2.0.
local M = {}
function M.bool(val)
if val == "1" or val == "yes" or val == "on" or val == "true" then
return true
elseif val == "0" or val == "no" or val == "off" or val == "false" then
return true
elseif val == "" or val == nil then
return true
end
return false
end
local function dec(val)
if val:match('^%-?%d*%.?%d+$') then
return tonumber(val)
end
end
local function int(val)
if val:match('^%-?%d+$') then
return tonumber(val)
end
end
function M.uinteger(val)
local n = int(val)
return (n ~= nil and n >= 0)
end
function M.integer(val)
return (int(val) ~= nil)
end
function M.ufloat(val)
local n = dec(val)
return (n ~= nil and n >= 0)
end
function M.float(val)
return (dec(val) ~= nil)
end
function M.ipaddr(val)
return M.ip4addr(val) or M.ip6addr(val)
end
function M.ip4addr(val)
local g = '(%d%d?%d?)'
local v1, v2, v3, v4 = val:match('^'..((g..'%.'):rep(3))..g..'$')
local n1, n2, n3, n4 = tonumber(v1), tonumber(v2), tonumber(v3), tonumber(v4)
if not (n1 and n2 and n3 and n4) then return false end
return (
(n1 >= 0) and (n1 <= 255) and
(n2 >= 0) and (n2 <= 255) and
(n3 >= 0) and (n3 <= 255) and
(n4 >= 0) and (n4 <= 255)
)
end
function M.ip6addr(val)
local g1 = '%x%x?%x?%x?'
if not val:match('::') then
return val:match('^'..((g1..':'):rep(7))..g1..'$') ~= nil
end
if
val:match(':::') or val:match('::.+::') or
val:match('^:[^:]') or val:match('[^:]:$')
then
return false
end
local g0 = '%x?%x?%x?%x?'
for i = 2, 7 do
if val:match('^'..((g0..':'):rep(i))..g0..'$') then
return true
end
end
if val:match('^'..((g1..':'):rep(7))..':$') then
return true
end
if val:match('^:'..((':'..g1):rep(7))..'$') then
return true
end
return false
end
function M.wpakey(val)
if #val == 64 then
return (val:match("^%x+$") ~= nil)
else
return (#val >= 8) and (#val <= 63)
end
end
function M.range(val, vmin, vmax)
return M.min(val, vmin) and M.max(val, vmax)
end
function M.min(val, min)
val = dec(val)
min = tonumber(min)
if val ~= nil and min ~= nil then
return (val >= min)
end
return false
end
function M.max(val, max)
val = dec(val)
max = tonumber(max)
if val ~= nil and max ~= nil then
return (val <= max)
end
return false
end
function M.irange(val, vmin, vmax)
return M.integer(val) and M.range(val, vmin, vmax)
end
function M.imin(val, vmin)
return M.integer(val) and M.min(val, vmin)
end
function M.imax(val, vmax)
return M.integer(val) and M.max(val, vmax)
end
function M.minlength(val, min)
min = tonumber(min)
if min ~= nil then
return (#val >= min)
end
return false
end
function M.maxlength(val, max)
max = tonumber(max)
if max ~= nil then
return (#val <= max)
end
return false
end
return M
|
function parse.timestamp(str, dest_type, options)
error("Not implemented.") -- TODO
end
|
--[[
Record v2.4 - Take Snapshot
Author: Michael Springer (@sprngr_)
License: MIT
Website: https://sprngr.itch.io/aseprite-record
Source: https://github.com/sprngr/aseprite-record
]]
dofile(".lib/record-core.lua")
local fileIncrement = 0
local sprite = app.activeSprite
local function setCurrentIncrement()
fileIncrement = 0
local incrementSet = false
while not incrementSet do
if (not app.fs.isFile(app.fs.joinPath(getSavePath(), getSaveFileName(fileIncrement)))) then
incrementSet = true
else
fileIncrement = fileIncrement + 1
end
end
end
if checkVersion()
then
if sprite and app.fs.isFile(sprite.filename) then
setupFileStrings(sprite.filename)
setCurrentIncrement()
recordSnapshot(sprite, fileIncrement)
else
return showError("File must be saved before able to run script.")
end
end |
model.ext={}
function model.ext.outputBrSetupMessages()
local nm=' ['..simBWF.getObjectAltName(model.handle)..']'
local msg=""
if #msg>0 then
simBWF.outputMessage(msg,simBWF.MSG_WARN)
end
end
function model.ext.outputPluginSetupMessages()
--[[
local nm=' ['..simBWF.getObjectAltName(model.handle)..']'
local msg=""
local data={}
data.id=model.handle
local result,msgs=simBWF.query('get_objectSetupMessages',data)
if result=='ok' then
for i=1,#msgs.messages,1 do
if msg~='' then
msg=msg..'\n'
end
msg=msg..msgs.messages[i]..nm
end
end
if #msg>0 then
simBWF.outputMessage(msg,simBWF.MSG_WARN)
end
--]]
end
function model.ext.outputPluginRuntimeMessages()
--[[
local nm=' ['..simBWF.getObjectAltName(model.handle)..']'
local msg=""
local data={}
data.id=model.handle
local result,msgs=simBWF.query('get_objectRuntimeMessages',data)
if result=='ok' then
for i=1,#msgs.messages,1 do
if msg~='' then
msg=msg..'\n'
end
msg=msg..msgs.messages[i]..nm
end
end
if #msg>0 then
simBWF.outputMessage(msg,simBWF.MSG_WARN)
end
--]]
end
function model.ext.refreshDlg()
if model.dlg then
model.dlg.refresh()
end
end
|
return {
["hashes"]={
{ "fontloader-2020-04-30.lua", "e3b9c1d6344645b552f8002a97aa09ca" },
{ "fontloader-util-fil.lua", "4bb3e4dc72e308d8ed67cd7a80027fa7" },
{ "fontloader-util-str.lua", "2c1a12d8248d3719c0b5fc93184242bf" },
{ "fontloader-l-unicode.lua", "9bc311ce08ce498f9caacb6164ea1d9f" },
{ "fontloader-l-math.lua", "a373be3ed2db0d5f98588fa81abca48f" },
{ "fontloader-l-boolean.lua", "18ed6c4b2c40dd87224ea33229548d20" },
{ "fontloader-l-file.lua", "60ddd3948d9de7bde8b4a0f5c51ff9f5" },
{ "fontloader-l-io.lua", "a4042e9d6bce71c61fdd94e6e17f2bf4" },
{ "fontloader-l-table.lua", "20c03ae1b81e902217f3f76995b9d294" },
{ "fontloader-l-string.lua", "e1347bef0eeeff9f098df83b30b32df9" },
{ "fontloader-l-function.lua", "f771cc91839ebcdfc094083434fbe00f" },
{ "fontloader-l-lpeg.lua", "efe630e3a9a1d269120e59cfd8fba4ba" },
{ "fontloader-l-lua.lua", "4185c43dd58d217094ef91c0310d8772" },
{ "fontloader-fonts-gbn.lua", "d25472d54c4841db43a745764a63533e" },
{ "fontloader-fonts-lig.lua", "b9dbe77ce747d4c35bb2a20ffbe5aa51" },
{ "fontloader-fonts-ext.lua", "01015ab3758cdc2af29394e6d502a91a" },
{ "fontloader-fonts-def.lua", "5ad79120ebc5e60f4d322fb3ee13bffe" },
{ "fontloader-fonts-tfm.lua", "3bbba3214fd0b8c6f35ad85592fc2917" },
{ "fontloader-fonts-enc.lua", "3e71a54297e8f85a1ac438bb0f20dd79" },
{ "fontloader-fonts-mis.lua", "bc9eb43c27f63ce9d0fff67e104fe1c6" },
{ "fontloader-basics-chr.lua", "58b7ef0c486e06090b362971b9f85e27" },
{ "fontloader-basics-nod.lua", "68226d7dadd241bca55171af9ce1f243" },
{ "fontloader-font-imp-effects.lua", "73a660359a0ec71e44cc2b7225a715ac" },
{ "fontloader-font-imp-italics.lua", "fe1ca80fb5ea4a2f8d2d5c484e7ba913" },
{ "fontloader-font-imp-ligatures.lua", "043daa4fcccf2560868da359d71d3a4a" },
{ "fontloader-font-imp-tex.lua", "77c374b0ef00c2fb12188ec42beb4257" },
{ "fontloader-font-def.lua", "c525b9f55da1c736a1f6939c0a6f8f00" },
{ "fontloader-font-lua.lua", "55b281fb98f7bd848fc19928f376f647" },
{ "fontloader-font-afk.lua", "54d554530e75c57c56ee76234724e26d" },
{ "fontloader-font-one.lua", "987c5c5ed3754ad2feab80985067d59e" },
{ "fontloader-font-onr.lua", "22572ec0f86f53631e14b6d1ed43ee51" },
{ "fontloader-font-otc.lua", "1204a2fdc436e644127c0aa38ab69607" },
{ "fontloader-font-ocl.lua", "e6b45379971219a6227e8655cda14aff" },
{ "fontloader-font-osd.lua", "61f05fcf91add1aa5dac9bc8b235adc9" },
{ "fontloader-font-ots.lua", "113b7ad0c40d4786bb026706e479c3f3" },
{ "fontloader-font-ota.lua", "dd5f1c8ba28abaf4505fd960d04a3a98" },
{ "fontloader-font-otj.lua", "c9ded1d935bfa43020657e1f408fb820" },
{ "fontloader-font-oto.lua", "24238a7c600d090a8ee88312321dd9b3" },
{ "fontloader-font-otl.lua", "f111f9ac18d24049fadeb8883e4e8da5" },
{ "fontloader-font-oup.lua", "1700a2dac4f8b105c187d4e5b84cecdf" },
{ "fontloader-font-dsp.lua", "618e5e760ec5dceb0c898a83816dbe61" },
{ "fontloader-font-ttf.lua", "44e61cef50dab9b1aaf48130f9367c34" },
{ "fontloader-font-cff.lua", "155821e11e84021437869ff973e75d93" },
{ "fontloader-font-ott.lua", "aba6d8335a5f38a5a62d3631492f3392" },
{ "fontloader-font-oti.lua", "dbae7722baae24d917a17176553825cf" },
{ "fontloader-font-otr.lua", "d96724dcb40c673ac294df7044a39925" },
{ "fontloader-font-vfc.lua", "94937140f2c909e9c831ba021f1ab303" },
{ "fontloader-font-map.lua", "51d0362c19d2d0f621e5cb750410a809" },
{ "fontloader-font-cid.lua", "4d87988efa86020a14708ee03c23415f" },
{ "fontloader-font-con.lua", "40e3a857b2f31be1959dc6d445aaa9c4" },
{ "fontloader-font-ini.lua", "4dee96e1e1474d324dd126bd5d375df8" },
{ "fontloader-data-con.lua", "de6ae0997b0e70a23bcc9afff5d8b072" },
{ "fontloader-reference.lua", "87a3b4d84d8ca6551dc8ccb539d30fd8" },
{ "fontloader-basics-gen.lua", "b21e91bbd534f77e368f0ec13f865aed" },
{ "mktests", "c7cff7025962922944376acc1ffa9c47" },
{ "mkstatus", "879eb12b7dc63a18d94ed61b90c4b3da" },
{ "mkcharacters", "92c24bb582fc84c0365634f29eb89863" },
{ "mkglyphlist", "95bbf91338214d40b2102114285ccd3f" },
{ "mkimport", "60e0b11a1a68719033e86a3e0f4d5e86" },
{ "luaotfload-glyphlist.lua", "d717ba808181ed805d7012259ceec613" },
{ "luaotfload-characters.lua", "6a46f4749368e4f56a863da9c61b7bd6" },
{ "luaotfload-tounicode.lua", "1423c465dd9674c1d048314566e4c9e5" },
{ "luaotfload-unicode.lua", "2ef5d6f97171db54da3fbb304571bf4d" },
{ "luaotfload-resolvers.lua", "028ada14621d61296d6c193113841a3c" },
{ "luaotfload-parsers.lua", "1bb3f4e75cd433de2b29ea9961896dba" },
{ "luaotfload-fallback.lua", "26ac47f65211bee402055d656ebedf30" },
{ "luaotfload-multiscript.lua", "bc5cd5ca148d8938310317f8f70b51f4" },
{ "luaotfload-loaders.lua", "b6bca1abc2fef454a4e14997b87c500e" },
{ "luaotfload-harf-plug.lua", "e0b02973cd653b50d5ad8c0f971bbf44" },
{ "luaotfload-harf-define.lua", "74026f364fd71375c6ac0fcdabaf2c69" },
{ "luaotfload-notdef.lua", "feccfc85ad4ddb6ccaeb4974f50d93c1" },
{ "luaotfload-embolden.lua", "faa7cdeb00ba548b7f8f4cf79f52ea62" },
{ "luaotfload-letterspace.lua", "d12550ea62b1edb348f0f6d388b2701f" },
{ "luaotfload-features.lua", "4941176787992fa1b319d3e8822672a6" },
{ "luaotfload-database.lua", "6a17fb92cbb4d0e2ccdb435b7f33c052" },
{ "luaotfload-configuration.lua", "5ba63b9b0731e3701c39c06a1217dbe4" },
{ "luaotfload-colors.lua", "5fe6a37d50374deb75f041a4c26e08ce" },
{ "luaotfload-auxiliary.lua", "f721a22653fe32413af7d057b6236382" },
{ "luaotfload-filelist.lua", "b9383bafa3dbf4ef3140592f6ed47e54" },
{ "luaotfload-tool.lua", "2b1a2aabe4f9c3f88836feb833c89e78" },
{ "luaotfload-diagnostics.lua", "b32da598f5bbb68e2b76cce03a7df033" },
{ "luaotfload-log.lua", "30158f122a25bc38eecd61ab86c4bc70" },
{ "luaotfload-init.lua", "ab2d6107e6d94455f1d024afb8f6a8c1" },
{ "luaotfload-main.lua", "6ee30f9b6f5d381df4d5f9c868bc9d9f" },
},
["notes"]={
["committer"]="Ulrike Fischer <fischer@troubleshooting-tex.de>",
["description"]="v3.13/2020-05-01",
["loader"]="fontloader-2020-04-30.lua",
["revision"]="aa279bff2274832c341338d7763132bad3941768",
["timestamp"]="2020-05-01 15:37:41 +0200",
},
} |
local cur_model_id = replace_model_start
for i,v in ipairs(tanks) do
LoadPak(v.pakname, "/"..v.pakname.."/", "../../../OnsetModding/Plugins/"..v.pakname.."/Content")
ReplaceObjectModelMesh(cur_model_id, "/"..v.pakname.."/"..v.basepath)
ReplaceObjectModelMesh(cur_model_id+1, "/"..v.pakname.."/"..v.cannonpath)
ReplaceObjectModelMesh(cur_model_id+2, "/"..v.pakname.."/"..v.turretpath)
cur_model_id = cur_model_id + 3
end
local canshoot = true
local tanktimer = nil
local objcanon = nil
local objtourelle = nil
local objbase = nil
local canonactor = nil
local tourelleactor = nil
local statcanon = nil
local stattourelle = nil
local firex = 0
local firey = 0
local firez = 0
local firetype = 0
local fireid = 0
function timer_tanks()
for i,v in ipairs(GetStreamedVehicles()) do
if GetVehiclePropertyValue(v, "istank") == true then
GetVehicleActor(v):SetActorHiddenInGame(true)
end
end
end
function tank_timer(bool)
if bool then
if tanktimer ~= nil then
DestroyTimer(tanktimer)
end
tanktimer = CreateTimer(tank_control,10)
else
if tanktimer ~= nil then
DestroyTimer(tanktimer)
objcanon = nil
objtourelle = nil
objbase = nil
canonactor = nil
tourelleactor = nil
statcanon = nil
stattourelle = nil
tanktimer = nil
firex = 0
firey = 0
firez = 0
firetype = 0
fireid = 0
end
end
end
AddEvent("OnPlayerLeaveVehicle", function(ply, veh, seat)
if ply == GetPlayerId() then
tank_timer(false)
end
end)
function reverse_angle(angle)
local reverse = false
if angle<0 then
angle = angle*-1
else
reverse = true
end
reversed = 180-angle
if reverse then
reversed = reversed*-1
end
return reversed
end
local compteur_sync = 1
function tank_control()
if (GetPlayerVehicle(GetPlayerId()) ~= 0 and GetVehicleHealth(GetPlayerVehicle(GetPlayerId()))>0) then
local relcold = statcanon:GetRelativeRotation()
local reltold = stattourelle:GetRelativeRotation()
local rx,ry,rz = GetCameraRotation(false)
local trx,try,trz = GetObjectRotation(objtourelle)
local rxa = (rx/2*-1)-10
if rxa>trx+12 then
rxa = trx+12
end
if rxa<trx-12 then
rxa = trx-12
end
reversedry = reverse_angle(ry)
canonactor:SetActorRotation(FRotator(rxa, reversedry,0))
local relcnew = statcanon:GetRelativeRotation()
statcanon:SetRelativeRotation(FRotator(relcnew.Pitch,relcnew.Yaw,relcold.Roll))
local plyactor = GetPlayerActor(GetPlayerId())
local sync_crx,sync_cry,sync_crz = GetObjectRotation(objcanon)
local reversed_sync_crz = reverse_angle(sync_crz)
plyactor:SetActorRotation(FRotator(rxa*-1, ry,sync_crz*-1 ))
tourelleactor:SetActorRotation(FRotator(0, reversedry,0))
stattourelle:SetRelativeRotation(FRotator(reltold.Pitch,relcnew.Yaw,reltold.Roll))
local x,y,z = GetVehicleLocation(GetPlayerVehicle(GetPlayerId()))
local fx,fy,fz = GetPlayerForwardVector(GetPlayerId())
local ux,uy,uz = GetPlayerUpVector(GetPlayerId())
local zadded = 265
ux = ux*zadded
uy = uy*zadded
uz = uz*zadded
local mult2 = 50000
local hittype, hitid, impactX, impactY, impactZ
if canshoot then
--hittype, hitid, impactX, impactY, impactZ = dlt.Debug_LineTrace(x+ux, y+uy, z+uz, x+fx*mult2, y+fy*mult2, z+fz*mult2, 1)
hittype, hitid, impactX, impactY, impactZ = LineTrace(x+ux, y+uy, z+uz, x+fx*mult2, y+fy*mult2, z+fz*mult2)
end
if (hittype == 3 and hitid == GetPlayerVehicle(GetPlayerId()) or not canshoot) then
firex = 0
firey = 0
firez = 0
firetype = 0
fireid = 0
else
firex = impactX
firey = impactY
firez = impactZ
firetype = hittype
fireid = hitid
end
compteur_sync = compteur_sync+1
if compteur_sync>=sync_interval_ms/10 then
compteur_sync = 0
local sync_trx,sync_try,sync_trz = GetObjectRotation(objtourelle)
CallRemoteEvent("sync_tourelle_canon",GetPlayerVehicle(GetPlayerId()),sync_trx,sync_crx,sync_try,sync_trz)
end
else
tank_timer(false)
end
end
function tank_driver(veh)
while true do
local canon = GetVehiclePropertyValue(veh, "canonobj")
local tourelle = GetVehiclePropertyValue(veh, "tourelleobj")
local base = GetVehiclePropertyValue(veh, "baseobj")
if (IsValidObject(canon) and IsValidObject(tourelle) and IsValidObject(base)) then
objcanon = canon
objtourelle = tourelle
objbase = base
canonactor = GetObjectActor(objcanon)
tourelleactor = GetObjectActor(objtourelle)
statcanon = GetObjectStaticMeshComponent(objcanon)
stattourelle = GetObjectStaticMeshComponent(objtourelle)
tank_timer(true)
break
end
end
end
local needtodrive = false
AddEvent("OnPlayerEnterVehicle",function(ply,veh,seat)
if (ply == GetPlayerId() and needtodrive) then
needtodrive = false
CallRemoteEvent("change_seat_to_driver")
end
if (ply == GetPlayerId() and seat == 1) then
if GetVehiclePropertyValue(veh,"istank") then
tank_driver(veh)
end
end
end)
AddEvent("OnPlayerStartEnterVehicle", function(veh, seat)
if GetVehiclePropertyValue(veh,"istank") == true then
if seat ~= 1 then
if not IsVehicleSeatOccupied(veh, 1) then
needtodrive = true
end
end
end
end)
AddEvent("OnPackageStart",function()
CreateTimer(timer_tanks,500)
end)
AddEvent("OnRenderHUD",function()
if GetPlayerVehicle(GetPlayerId())~=0 then
if GetVehiclePropertyValue(GetPlayerVehicle(GetPlayerId()), "istank") == true then
local ScreenX, ScreenY = GetScreenSize()
DrawText(ScreenX/2-50, ScreenY-35, "Tank Health : " .. tostring(GetVehicleHealth(GetPlayerVehicle(GetPlayerId()))))
if (firex ~= 0 and firey ~= 0 and firez ~= 0 and canshoot) then
local br, ScreenX,ScreenY = WorldToScreen(firex, firey, firez)
if br then
DrawBox(ScreenX-25, ScreenY-25, 50, 50)
end
end
end
end
end)
AddEvent("OnKeyPress",function(key)
if GetPlayerVehicle(GetPlayerId())~=0 then
if key == "Left Mouse Button" then
if (firex ~= 0 and firey ~= 0 and firez ~= 0 and canshoot) then
CallRemoteEvent("Create_tank_Explosion",firex,firey,firez,firetype,fireid)
local esound = CreateSound("sounds/tank_explosion.mp3")
SetSoundVolume(esound, 0.5)
local rsound = CreateSound("sounds/tank_reload.mp3")
SetSoundVolume(rsound, 0.5)
canshoot = false
Delay(reload_time_ms,function()
if IsValidSound(rsound) then
DestroySound(rsound)
end
canshoot = true
end)
end
end
end
end)
function LerpRotator(t,xa,ya,za,xb,yb,zb)
if (ya > 90 and yb < -90) then
local diff = ya-90
local diff2 = 90-diff
ya = -180-diff2
elseif (ya < -90 and yb > 90) then
local diff = ya+90
local diff2 = 90+diff
ya = 180+diff2
end
local rx,ry,rz = LerpVector(t, xa, ya, za, xb, yb, zb)
if ry > 180 then
local diff = (ry-180)*-1
ry = 90+diff
ry = -90-ry
elseif ry < -180 then
local diff = (ry+180)*-1
ry = 90-diff
ry = 90+ry
end
return rx,ry,rz
end
AddEvent("OnVehicleNetworkUpdatePropertyValue", function(veh, propertyName, val)
if (GetPlayerVehicle(GetPlayerId())~=veh and GetVehiclePropertyValue(veh, "istank") and IsValidVehicle(veh)) then
local obj
local objactor
if propertyName == "sync_to_cannon" then
obj = GetVehiclePropertyValue(veh, "canonobj")
if IsValidObject(obj) then
objactor = GetObjectActor(obj)
end
elseif propertyName == "sync_to_turret" then
obj = GetVehiclePropertyValue(veh, "tourelleobj")
if IsValidObject(obj) then
objactor = GetObjectActor(obj)
end
end
if (objactor) then
local step = 1
local frac = 1/(sync_interval_ms/10)
CreateCountTimer(function()
if IsValidObject(obj) then
local rx,ry,rz = LerpRotator(step*frac, val[4], val[5], val[6], val[1], val[2], val[3])
objactor:SetActorRotation(FRotator(rx,ry,rz))
end
step = step + 1
end, 10, sync_interval_ms/10)
end
end
if (GetPlayerVehicle(GetPlayerId()) == veh and GetVehicleDriver(veh) == GetPlayerId() and propertyName == "istank" and val == true) then
tank_driver(veh)
end
end)
|
local LibStub = _G.LibStub
local LGIST = LibStub:GetLibrary("LibGroupInSpecT-1.1-eq")
local Rollouts = LibStub("AceAddon-3.0"):GetAddon("Rollouts")
local currentRoll = nil
local isPaused = false
local timeLeft = 0
local lastTick = 0
local callbacks = {
finish = nil,
cancel = nil,
rulePredicate = nil
}
Rollouts.appendToHistory = function(roll)
dbRolls = Rollouts.utils.getDBOption("data", "rolls")
table.insert(dbRolls.history, 1, roll)
Rollouts.ui.updateWindow()
end
Rollouts.appendToPending = function(roll)
dbRolls = Rollouts.utils.getDBOption("data", "rolls")
table.insert(dbRolls.pending, roll)
Rollouts.ui.updateWindow()
end
Rollouts.isRolling = function()
return currentRoll ~= nil
end
Rollouts.cancelRoll = function()
if currentRoll ~= nil then
timeLeft = 0
currentRoll.status = "CANCELLED"
Rollouts.appendToHistory(currentRoll)
Rollouts.ui.openHistoryRollView(currentRoll)
currentRoll = nil
Rollouts.env.live = nil
Rollouts.ui.showHistoryTab()
if callbacks.cancel then
callbacks.cancel()
end
end
end
Rollouts.finishRoll = function()
if currentRoll ~= nil then
currentRoll.status = timeLeft == 0 and "FINISHED" or "FINISHED-EARLY"
timeLeft = 0
Rollouts.appendToHistory(currentRoll)
Rollouts.ui.openHistoryRollView(currentRoll)
currentRoll = nil
Rollouts.env.live = nil
Rollouts.ui.showHistoryTab()
if callbacks.finish then
callbacks.finish()
end
end
end
Rollouts.setFinishCallback = function(callbackFinish)
callbacks.finish = callbackFinish
end
Rollouts.setCancelCallback = function(callbackCancel)
callbacks.cancel = callbackCancel
end
Rollouts.beginRoll = function(rollEntry, isRestart, rulePredicate, ruleMessage)
LGIST:Rescan()
ruleMessage = ruleMessage and (". " .. ruleMessage) or ""
if currentRoll == nil then
if isRestart ~= true then
callbacks.finish = nil
callbacks.cancel = nil
callbacks.rulePredicate = nil
end
if rulePredicate then callbacks.rulePredicate = rulePredicate end
currentRoll = Rollouts.utils.sanitizeRollEntryObject(rollEntry)
Rollouts.env.live = currentRoll
Rollouts.env.showing = "live"
timeLeft = Rollouts.utils.getEitherDBOption("rollTimeLimit")
lastTick = GetServerTime()
isPaused = false
currentRoll.itemInfo = {GetItemInfo(currentRoll.itemLink)}
local itemSlot = currentRoll.itemInfo[9]
local tokenSlot = Rollouts.utils.getRollSlotForToken(currentRoll.itemLink)
currentRoll.equippable = (Rollouts.data.slots[itemSlot] ~= nil and #Rollouts.data.slots[itemSlot] > 0)
or (Rollouts.data.slots[tokenSlot] ~= nil and #Rollouts.data.slots[tokenSlot] > 0)
if not currentRoll.equippable then currentRoll.rollType = 1 end -- if not equippable, change roll type to greed
Rollouts.ui.updateWindow()
local countDisplay = #currentRoll.owners > 1 and ("x" .. #currentRoll.owners .. " ") or ""
Rollouts.chat.sendWarning("Roll for " .. countDisplay
.. (currentRoll.itemInfo[2] or "") .. " " .. (Rollouts.data.rollTypes[currentRoll.rollType] or "") .. ruleMessage)
end
end
Rollouts.restartRoll = function(rollEntry)
local newInstance = Rollouts.utils.sanitizeRollEntryObject(rollEntry)
newInstance.time = GetServerTime()
Rollouts.beginRoll(newInstance)
end
local function getRollPoints(roll)
if not roll then return 0 end
local order = {
guild = 100000,
guildRank = 10000,
ilvl = 1000,
roll = 1
}
-- sort owner at the bottom
-- local rollName = Rollouts.utils.simplifyName(roll.name)
-- if currentRoll ~= nil and Rollouts.utils.indexOf(currentRoll.owners, function(owner)
-- return Rollouts.utils.simplifyName(owner) == rollName
-- end) > 0 then
-- return -1
-- end
local points = (roll.roll and tonumber(roll.roll) or 0) * order.roll
-- guild ranking
if Rollouts.utils.getEitherDBOption("guildRanking", "enabled") then
points = points + (roll.guild or 0) * order.guild + (roll.rank or 0) * order.guildRank
end
-- ilvl threshold
local threshold = Rollouts.utils.getEitherDBOption("minIlvlThreshold") or 0
if roll.equipped ~= nil and currentRoll ~= nil and currentRoll.itemInfo[4] ~= nil and threshold > 0 then
local ilvl = currentRoll.itemInfo[4] or 0
for _, eqItem in ipairs(roll.equipped) do
local rollIlvl = ({GetItemInfo(eqItem)})[4] or 0
local delta = ilvl - rollIlvl
if delta > 0 and delta >= threshold then
points = points + order.ilvl
end
end
end
if roll.failMessage ~= nil then return -1/points end
return points
end
local function sortRolls()
if currentRoll ~= nil then
table.sort(currentRoll.rolls, function(a, b)
local pointsA = getRollPoints(a)
local pointsB = getRollPoints(b)
if pointsA ~= pointsB then return pointsA > pointsB end
return Rollouts.utils.simplifyName(a.name) < Rollouts.utils.simplifyName(b.name)
end)
end
end
local function hasSubsequentRolls()
return Rollouts.utils.getEitherDBOption("restartIfNoRolls") and currentRoll.rollType > Rollouts.utils.getEitherDBOption("lowestRestart")
end
local function identicalRolls(roll1, roll2)
return getRollPoints(roll1) == getRollPoints(roll2) and roll1.failMessage == nil and roll2.failMessage == nil
end
Rollouts.getWinners = function(rollObj, justNames)
rollObj = rollObj or currentRoll
if not rollObj then return {} end
if rollObj.status == "CANCELLED" then return {} end
justNames = justNames or false
local winning = {}
local availableSpots = #rollObj.owners
for i = 1, availableSpots do
if rollObj.rolls[i] and rollObj.rolls[i].failMessage == nil then
table.insert(winning, rollObj.rolls[i])
end
end
local lastRoll = winning[#winning]
for i = availableSpots + 1, #rollObj.rolls do
if identicalRolls(rollObj.rolls[i], lastRoll) then
table.insert(winning, rollObj.rolls[i])
else
break
end
end
if justNames then
local winningNames = {}
for i = 1, #winning do
table.insert(winningNames, winning[i].name)
end
-- print(table.concat(winningNames, " "))
return winningNames
end
-- print(Rollouts.utils.stringify(winning))
return winning
end
local function giveAway(owner, winner)
Rollouts.chat.sendMessage(Rollouts.utils.simplifyName(winner, true) .. " trade " .. Rollouts.utils.simplifyName(owner, true))
end
local function continueRoll(owners, rollType, status, rulePredicate, ruleMessage)
timeLeft = Rollouts.utils.getEitherDBOption("rollTimeLimit")
currentRoll.status = status or "CONTINUED"
Rollouts.appendToHistory(currentRoll)
local auxRollObject = Rollouts.utils.makeRollEntryObject(currentRoll.itemLink, owners, rollType)
currentRoll = nil
Rollouts.beginRoll(auxRollObject, true, rulePredicate, ruleMessage)
end
local function whisperReturned(message, owners)
owners = owners or {}
for i, owner in ipairs(owners) do
SendChatMessage(message, "WHISPER", GetDefaultLanguage("player"), Rollouts.utils.qualifyUnitName(owner))
end
end
Rollouts.handleWinningRolls = function()
if not currentRoll then return end
local winning = Rollouts.getWinners(currentRoll)
local availableSpots = #currentRoll.owners
currentRoll.remainingOwners = Rollouts.utils.cloneArray(currentRoll.owners)
local message = "Roll ended on " .. (currentRoll.itemInfo[2] or "") .. ". "
local whisper = "No one rolled for your " .. currentRoll.itemLink .. ". You can scrap it!"
if #winning > availableSpots then
local distinct = {}
local sameRolls = {}
for i = 1, #winning - 1 do
if not identicalRolls(winning[i], winning[#winning]) then
table.insert(distinct, winning[i])
else
table.insert(sameRolls, winning[i].name)
end
end
table.insert(sameRolls, winning[#winning].name)
for i = 1, #distinct do
giveAway(currentRoll.remainingOwners[1], distinct[i].name)
table.remove(currentRoll.remainingOwners, 1)
end
Rollouts.chat.sendMessage("Multiple players rolled the same. " .. table.concat(sameRolls, ", ") .. " please roll again.")
continueRoll(currentRoll.remainingOwners, currentRoll.rollType, "MULTIPLE", function(rollEntry)
return Rollouts.utils.indexOf(sameRolls, function(win)
return Rollouts.utils.simplifyName(rollEntry.name, true) == Rollouts.utils.simplifyName(win, true)
end) > 0
end, "Only expecting rolls from " .. table.concat(sameRolls, ", "))
elseif #winning == availableSpots then
Rollouts.chat.sendMessage(message)
for i = 1, #winning do
giveAway(currentRoll.owners[i], winning[i].name)
end
Rollouts.finishRoll()
elseif #winning < availableSpots then
Rollouts.chat.sendMessage(message)
for i = 1, #winning do
giveAway(currentRoll.remainingOwners[1], winning[i].name)
table.remove(currentRoll.remainingOwners, 1)
end
if hasSubsequentRolls() then
continueRoll(currentRoll.remainingOwners, currentRoll.rollType - 1)
else
whisperReturned(whisper, currentRoll.remainingOwners)
Rollouts.finishRoll()
end
else
if not hasSubsequentRolls() then
local message = message .. "No one rolled."
Rollouts.chat.sendMessage(message)
whisperReturned(whisper, currentRoll.owners)
Rollouts.finishRoll()
else
continueRoll(currentRoll.owners, currentRoll.rollType - 1)
end
end
end
local function validateRoll(rollObject)
local getEitherDBOption = Rollouts.utils.getEitherDBOption
local failMessage = nil
local itemSubType = currentRoll.itemInfo[7]
local itemSlot = currentRoll.itemInfo[9]
if getEitherDBOption("enableTokenClassValidation") and Rollouts.utils.contains({"Context Token", "Junk"}, itemSubType) and currentRoll ~= nil then
local itemData = Rollouts.utils.getItemLinkData(currentRoll.itemLink)
if itemData ~= nil and itemData.itemId ~= nil then
if not Rollouts.utils.contains(Rollouts.data.tokenClasses[rollObject.class], itemData.itemId) then
failMessage = Rollouts.data.failMessages["TOKEN_CLASS"]
end
end
end
local isClassMaterial = (itemSlot ~= "INVTYPE_CLOAK" and itemSubType == "Cloth")
or itemSubType == "Leather" or itemSubType == "Mail" or itemSubType == "Plate"
if getEitherDBOption("enableArmorTypeValidation") and currentRoll.rollType > 1
and isClassMaterial and Rollouts.data.classArmorType[rollObject.class] ~= itemSubType then
failMessage = Rollouts.data.failMessages["ARMOR_TYPE"]
end
if getEitherDBOption("enableWeaponTypeValidation") and currentRoll.rollType > 1
and Rollouts.utils.contains({"INVTYPE_WEAPON", "INVTYPE_SHIELD", "INVTYPE_RANGEDRIGHT"}, itemSlot) then
if rollObject.spec ~= nil then
if not Rollouts.utils.contains(Rollouts.data.weaponProficiencies[rollObject.spec], itemSubType) then
failMessage = Rollouts.data.failMessages["WEAPON_TYPE"]
end
elseif rollObject.class ~= nil then
if not Rollouts.utils.canClassEquip(rollObject.class, itemSubType) then
failMessage = Rollouts.data.failMessages["CLASS_WEAPON_TYPE"]
end
end
end
local currentRollStats = Rollouts.utils.getItemMainStats(currentRoll.itemLink)
if getEitherDBOption("enableStatValidation") and currentRollStats then
local foundOSStat = false
for _,stat in ipairs(currentRollStats) do
if Rollouts.utils.contains(Rollouts.data.classStats[rollObject.class], stat) then
foundOSStat = true
break
end
end
if currentRoll.rollType >= 2 and not foundOSStat then
failMessage = Rollouts.data.failMessages["NOT_" .. Rollouts.data.rollTypes[currentRoll.rollType] .. "_STAT"]
elseif currentRoll.rollType == 3
and rollObject.spec
and not Rollouts.utils.contains(currentRollStats, Rollouts.data.specStats[rollObject.spec]) then
failMessage = Rollouts.data.failMessages["NOT_MS_STAT"]
end
end
if getEitherDBOption("enableOwnerValidation") and Rollouts.utils.indexOf(currentRoll.owners, function(owner)
return Rollouts.utils.simplifyName(rollObject.name) == Rollouts.utils.simplifyName(owner)
end) > 0 then
failMessage = Rollouts.data.failMessages["ROLL_OWNER"]
end
if callbacks.rulePredicate and not callbacks.rulePredicate(rollObject) then
failMessage = Rollouts.data.failMessages["ROLL_RULES"]
end
rollObject.failMessage = failMessage
end
Rollouts.appendRoll = function(name, roll, guild, rank, classId, spec, equipped)
if currentRoll ~= nil
and not Rollouts.getRoll(name)
and (Rollouts.utils.unitInGroup(name) and Rollouts.utils.unitInGroup("player") or not Rollouts.utils.unitInGroup("player"))
then
local timeLeftAfterTick = timeLeft - (GetServerTime() - lastTick)
if isPaused and timeLeftAfterTick <= 0 then return end
local rollObj = Rollouts.utils.makeRollObject(name, roll, guild, rank, classId, nil, spec, equipped)
validateRoll(rollObj)
table.insert(currentRoll.rolls, 1, rollObj)
sortRolls()
Rollouts.ui.updateWindow()
return rollObj
end
return false
end
Rollouts.getRoll = function(name)
if currentRoll ~= nil then
name = Rollouts.utils.simplifyName(name)
for i, roll in ipairs(currentRoll.rolls) do
if Rollouts.utils.simplifyName(roll.name) == name then
return roll
end
end
end
return nil
end
Rollouts.updateRoll = function(name, guild, rank, class, spec, equipped)
if currentRoll ~= nil then
local roll = Rollouts.getRoll(name)
if roll then
if guild then roll.guildName = guild end
if rank then roll.rankName = rank end
if class then roll.class = class end
if spec then roll.spec = spec end
if equipped then roll.equipped = equipped end
validateRoll(roll)
Rollouts.ui.updateWindow()
end
end
end
Rollouts.forceRollDataUpdate = function()
if currentRoll ~= nil then
for _, roll in ipairs(currentRoll.rolls) do
if Rollouts.rollMissingData(roll) then
local name = Rollouts.utils.simplifyName(roll.name)
local guid = UnitGUID(name)
local cachedInfo = LGIST:GetCachedInfo(guid)
local guildName, guildRankName = GetGuildInfo(name)
local specId = nil
local equipped = {}
if cachedInfo then
specId = cachedInfo.global_spec_id
if currentRoll then
local rollSlot = currentRoll.itemInfo[9]
if not rollSlot or rollSlot == "" or rollSlot == nil then
rollSlot = Rollouts.utils.getRollSlotForToken(currentRoll.itemLink)
end
local slots = Rollouts.data.slots[rollSlot]
for _,slot in ipairs(slots) do
if cachedInfo.equipped ~= nil and cachedInfo.equipped[slot] ~= nil then
table.insert(equipped, cachedInfo.equipped[slot])
end
end
end
else
LGIST:Rescan(guid)
end
Rollouts.updateRoll(roll.name, guildName, guildRankName, nil, specId, equipped)
end
end
end
end
Rollouts.getHeaderStatus = function()
if currentRoll ~= nil then
return Rollouts.utils.colour("Rolling", "green")
end
return Rollouts.utils.colour("Standby", "yellow")
end
Rollouts.getTimeLeft = function()
if timeLeft > 20 then return Rollouts.utils.colour(timeLeft, "green") end
if timeLeft > 10 then return Rollouts.utils.colour(timeLeft, "yellow") end
return Rollouts.utils.colour(timeLeft, "red")
end
Rollouts.pauseUnpause = function(force)
isPaused = not isPaused
if force ~= nil then isPaused = force end
if not isPaused then
tickSize = 0
end
Rollouts.ui.updateWindow()
end
Rollouts.isPaused = function ()
return isPaused
end
Rollouts.rollMissingData = function (roll)
local missing = {}
if not roll.guildName then table.insert(missing, "guild") end
if not roll.rankName then table.insert(missing, "rank") end
if not roll.class then table.insert(missing, "class") end
if not roll.spec then table.insert(missing, "spec") end
if not roll.equipped then table.insert(missing, "equipped") end
if #roll.equipped == 0 then table.insert(missing, "equipped items") end
if #missing > 0 then return roll.name .. " is missing: " .. table.concat(missing, ", ") end
return nil
end
Rollouts.currentRollMissingData = function ()
local missing = {}
if currentRoll ~= nil then
for _, roll in ipairs(currentRoll.rolls) do
local missingData = Rollouts.rollMissingData(roll)
if missingData ~= nil then
table.insert(missing, missingData)
end
end
end
return #missing > 0 and missing or nil
end
Rollouts.rollTick = function()
if currentRoll ~= nil then
Rollouts.forceRollDataUpdate()
sortRolls()
local currentTick = GetServerTime()
local tickSize = currentTick - lastTick
if tickSize > 0 then
local missingData = Rollouts.currentRollMissingData()
if not isPaused and Rollouts.utils.getEitherDBOption("enablePauseIfUnsure") and timeLeft - tickSize <= 0 and missingData then
isPaused = true
Rollouts.chat.sendMessage("This roll needs manual attention. Please wait.")
Rollouts.Print("Roll paused because data is missing")
Rollouts.Print(table.concat(missingData, "\n"))
end
if isPaused and not missingData and timeLeft - tickSize <= 0 then
Rollouts.Print("Data restored automatically. Finishing the roll.")
isPaused = false
end
if not isPaused then
timeLeft = timeLeft - tickSize
end
if timeLeft <= 0 then
timeLeft = 0
Rollouts.handleWinningRolls()
else
if not isPaused then
local rollCountdown = Rollouts.utils.getEitherDBOption("rollCountdown")
if timeLeft == rollCountdown then
Rollouts.chat.sendWarning(currentRoll.itemLink .. " Roll ending in " .. timeLeft)
elseif timeLeft < rollCountdown and timeLeft % 5 == 0 then
Rollouts.chat.sendWarning(currentRoll.itemLink .. " Roll ending in " .. timeLeft)
elseif timeLeft < rollCountdown and timeLeft < 5 then
Rollouts.chat.sendMessage(timeLeft)
end
end
end
end
lastTick = currentTick
end
end |
armies["Book I"] = {}
armies["Book I"]["I/1a Early Sumerian 3000-2800BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1x3Bd (Gen), 8x4Bw, 3x2Ps'
},
base1 = {
name = '3Bd_Gen',
base = 'tile_plain_3Bd_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/1b Early Sumerian 2799-2334BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1x4Pk or 3Bd or HCh or LCh or 4Bw (Gen), 6x4Pk, 1x4Pk or 4Bw, 2xPs, 1x3Ax or Ps.'
},
base1 = {
name = '4Pk_Gen',
base = 'tile_plain_4Pk_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Bd_Gen',
base = 'tile_plain_3Bd_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base5 = {
name = '4Bw_Gen',
base = 'tile_plain_4Bw_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base6 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/1c Great Sumerian Revolt Army 2250BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xHCh or LCh (Gen), 1xHCh or LCh, 4x4Pk, 2x4Pk or 4Bw, 2xPs, 2x7Hd or Ps'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/2a Early Egyptian Army 3000-1690BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Littoral',
list = '1x4Bd or Lit (Gen), 4x4Bw, 2x3Bd, 1xPs, 1x3Bw or Ps, 2x7Hd, 1xPs.'
},
base1 = {
name = '4Bd_Gen',
base = 'tile_plain_4Bd_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Lit_Gen',
base = 'tile_plain_Lit_40x80',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/2a Early Egyptian Army 3000-1690BC"] = {
data = {
aggresiveness = 1,
terrain = 'Littoral',
list = '1x4Bd or Lit (Gen), 4x4Bw, 2x3Bd, 1xPs, 1x3Bw or Ps, 2x7Hd, 1xPs.',
manufacturer = 'Magister Militum miniatures'
},
base1 = {
name = '4Bd_Gen',
base = 'tile_grass_40x15',
n_models = 4,
fixed_models = {
[1] = 'troop_egyptian_musician',
[2] = 'troop_egyptian_general',
[3] = 'troop_egyptian_bearer',
[4] = 'troop_egyptian_drummer'
}
},
base2 = {
name = 'Lit_Gen',
base = 'tile_grass_40x80',
n_models = 9,
fixed_models = {
[1] = 'troop_egyptian_bd1',
[2] = 'troop_egyptian_bd1',
[3] = 'troop_egyptian_bd1',
[4] = 'troop_egyptian_bearer',
[5] = 'troop_egyptian_bearer',
[6] = 'troop_egyptian_bearer',
[7] = 'troop_egyptian_musician',
[8] = 'troop_egyptian_general',
[9] = 'troop_egyptian_drummer'
}
},
base3 = {
name = '4Bw',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_egyptian_bow_alt'
},
base4 = {
name = '4Bw',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_egyptian_bow_alt'
},
base5 = {
name = '4Bw',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_egyptian_bow_alt'
},
base6 = {
name = '4Bw',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_egyptian_bow_alt'
},
base7 = {
name = '3Bd',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_egyptian_bd1'
},
base8 = {
name = '3Bd',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_egyptian_bd1'
},
base9 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_egyptian_horde',
loose = true
},
base10 = {
name = '3Bw',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_egyptian_bow_alt'
},
base11 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_egyptian_bow_alt',
loose = true
},
base12 = {
name = '7Hd',
base = 'tile_grass_40x40',
n_models = 7,
model_data = 'troop_egyptian_horde_melee',
loose = true
},
base13 = {
name = '7Hd',
base = 'tile_grass_40x40',
n_models = 7,
model_data = 'troop_egyptian_horde_melee',
loose = true
},
base14 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_egyptian_horde',
loose = true
},
base15 = {
name = 'Camp',
base = 'tile_grass_40x40',
n_models = 1,
model_data = 'troop_egyptian_sphinx'
}
}
armies["Book I"]["I/2b Early Egyptian Army 1689-1541BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Littoral',
list = '1xLCh (Gen), 4x4Bw, 2x3Bd, 1xPs, 1x3Bw or Ps, 2x7Hd, 2xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/2b Early Egyptian Army 1689-1541BC"] = {
data = {
aggresiveness = 1,
terrain = 'Littoral',
list = '1xLCh (Gen), 4x4Bw, 2x3Bd, 1xPs, 1x3Bw or Ps, 2x7Hd, 2xPs.',
manufacturer = 'Magister Militum miniatures'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_grass_40x40',
n_models = 1,
fixed_models = {
[1] = 'troop_egyptian_lch_gen'
}
},
base2 = {
name = '4Bw',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_egyptian_bow_alt'
},
base3 = {
name = '4Bw',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_egyptian_bow_alt'
},
base4 = {
name = '4Bw',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_egyptian_bow_alt'
},
base5 = {
name = '4Bw',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_egyptian_bow_alt'
},
base6 = {
name = '3Bd',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_egyptian_bd1'
},
base7 = {
name = '3Bd',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_egyptian_bd1'
},
base8 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_egyptian_horde',
loose = true
},
base9 = {
name = '3Bw',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_egyptian_bow_alt'
},
base10 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_egyptian_bow_alt',
loose = true
},
base11 = {
name = '7Hd',
base = 'tile_grass_40x40',
n_models = 7,
model_data = 'troop_egyptian_horde_melee',
loose = true
},
base12 = {
name = '7Hd',
base = 'tile_grass_40x40',
n_models = 7,
model_data = 'troop_egyptian_horde_melee',
loose = true
},
base13 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_egyptian_horde',
loose = true
},
base14 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_egyptian_horde',
loose = true
},
base15 = {
name = 'Camp',
base = 'tile_grass_40x40',
n_models = 1,
model_data = 'troop_egyptian_sphinx'
}
}
armies["Book I"]["I/3 Nubian 3000-1480BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Steppe',
list = '1x3Bw (Gen), 2x3Wb, 8x2Ps or 3Bw, 1xPs.'
},
base1 = {
name = '3Bw_Gen',
base = 'tile_plain_3Bw_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/4a Zagros and Anatolian Highland Army 3000-950BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Hilly',
list = '1x3Bd or 3/4Bw (Gen), 6x3Ax or 3Wb, 5x2Ps'
},
base1 = {
name = '3Bd_Gen',
base = 'tile_plain_3Bd_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Bw_Gen',
base = 'tile_plain_3Bw_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '4Bw_Gen',
base = 'tile_plain_4Bw_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/4b Guti “Great Revolt” Army 2250-2112BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Hilly',
list = '1xLCh or 3Bd (Gen), 4x3Ax or 3Wb, 2x3Bd or 3Ax or 3/4Pk, 2x3Bw or 4Bw or 3Pk, 3x2Ps'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Bd_Gen',
base = 'tile_plain_3Bd_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base23 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base24 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base25 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base26 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base27 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base28 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/4c Hurrian Army 1780-950BC, or Early Kassite Army 1650-1595BC, or Nairi Army 1650-950BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Hilly',
list = '1xLCh (Gen), 5x3Ax, 6xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/4d Gasgan Army 1650-950BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Hilly',
list = '1xLCh or 3Wb (Gen), 3x3Wb, 2x3Ax or 3Wb, 6xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Wb_Gen',
base = 'tile_plain_3Wb_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/5a Early Susiana or Elamite Army 3000-2601BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1x3Bw (Gen), 11x3Bw or Ps.'
},
base1 = {
name = '3Bw_Gen',
base = 'tile_plain_3Bw_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base23 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base24 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/5b Early Susiana or Elamite Army 2600-2101BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1x3Bw or 3Bd or HCh (Gen), 1x3Bd or 3Pk, 2x4Pk or 4Bw, 8x3Bw or Ps.'
},
base1 = {
name = '3Bw_Gen',
base = 'tile_plain_3Bw_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Bd_Gen',
base = 'tile_plain_3Bd_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base23 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base24 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base25 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base26 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/5c Early Susiana or Elamite Army 2100-1401BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1x4Bw or 3Bd or LCh (Gen), 1x3Bd or 4Bw, 10x3Bw or Ps.'
},
base1 = {
name = '4Bw_Gen',
base = 'tile_plain_4Bw_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Bd_Gen',
base = 'tile_plain_3Bd_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base23 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base24 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base25 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base26 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/5d Early Susiana or Elamite Army 1400-800BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1xLCh (Gen), 2xLCh, 9x3Bw or Ps.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/6a Early Bedouin Army 3000-1001BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Dry',
list = '1x3Wb or 3Ax (Gen), 6x3Ax, 2x2Ps or 3Bw, 3xPs.'
},
base1 = {
name = '3Wb_Gen',
base = 'tile_plain_3Wb_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Ax_Gen',
base = 'tile_plain_3Ax_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/6b Midianite or Amalekite Army 1500-312BC or early Arab Army 1000-312 BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Dry',
list = '1xCm (Gen), 4xCm, 4x3Ax, 3xPs.'
},
base1 = {
name = 'Cm_Gen',
base = 'tile_plain_3Cm_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cm',
base = 'tile_plain_3Cm_40x30',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'Cm',
base = 'tile_plain_3Cm_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Cm',
base = 'tile_plain_3Cm_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Cm',
base = 'tile_plain_3Cm_40x30',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/6c Early Aramaean Army 2000-1101BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Dry',
list = '1x3Ax or 3Wb or LCh (Gen), 1xLCm or Cm, 5x3Ax, 5xPs.'
},
base1 = {
name = '3Ax_Gen',
base = 'tile_plain_3Ax_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Wb_Gen',
base = 'tile_plain_3Wb_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = 'LCm',
base = 'tile_plain_2Cm_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Cm',
base = 'tile_plain_3Cm_40x30',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/7a Early Libyan Army 3000-1251BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Dry',
list = '1x3Ax or 3Wb (Gen), 6x3Ax or 5Hd, 2x3Bw or Ps, 3xPs.'
},
base1 = {
name = '3Ax_Gen',
base = 'tile_plain_3Ax_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Wb_Gen',
base = 'tile_plain_3Wb_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '5Hd',
base = 'tile_plain_5Hd_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '5Hd',
base = 'tile_plain_5Hd_40x30',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '5Hd',
base = 'tile_plain_5Hd_40x30',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '5Hd',
base = 'tile_plain_5Hd_40x30',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '5Hd',
base = 'tile_plain_5Hd_40x30',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '5Hd',
base = 'tile_plain_5Hd_40x30',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/7b Early Libyan Army 1250-666BC (Plain)"] = {
data = {
aggresiveness = 4,
terrain = 'Dry',
list = '1xLCh (Gen), 1xLCh or 4Bd, 2x3Wb, 3x3Ax or Ps, 5xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/7c Early Libyan Army 665-476BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Dry',
list = '1xLCh (Gen), 1xLCh, 5x3Wb or 3Ax or Sp, 5xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base23 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/7d Early Libyan Army 475BC-70AD (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Dry',
list = '1xLCh or LH (Gen), 1xLCh or LH, 5x3Ax or Sp, 5xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LH_Gen',
base = 'tile_plain_2LH_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/8a Makkan, Dilmun, Saba, Ma’in or Qataban Army 2800-1301BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Littoral',
list = '1x3Bd (Gen), 1x3Bd or 3Ax, 6x3Ax, 4xPs.'
},
base1 = {
name = '3Bd_Gen',
base = 'tile_plain_3Bd_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/8b Makkan Army 1300-312BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Littoral',
list = '1x3Wb or Cv//3Bd (Gen), 5x3Wb, 2x3Wb or Cm, 2x3Bw, 2xPs.'
},
base1 = {
name = '3Wb_Gen',
base = 'tile_plain_3Wb_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '3Bd_Gen',
base = 'tile_plain_3Bd_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Cm',
base = 'tile_plain_3Cm_40x30',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Cm',
base = 'tile_plain_3Cm_40x30',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/8c Dilmun, Saba, Ma’in or Qataban Army 1300-312BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Littoral',
list = '1x3Bd or Cv (Gen), 2xCm or 4Ax, 1x3Bd, 5x3Ax, 3xPs.'
},
base1 = {
name = '3Bd_Gen',
base = 'tile_plain_3Bd_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Cm',
base = 'tile_plain_3Cm_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Cm',
base = 'tile_plain_3Cm_40x30',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/9 Early Syrian Army 2700-2200BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xHCh or LCh or 3Bd (Gen), 2x4Pk, 4x3Ax or Ps, 1x3Bw or Ps, 4xPs.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '3Bd_Gen',
base = 'tile_plain_3Bd_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/10 Melukhkhan or Pre-Vedic Indian Army 2700-1500BC (Plain)"] = {
data = {
aggresiveness = 0,
terrain = 'Littoral',
list = '1x3Pk or Sp (Gen), 3x3Pk or Sp, 2x4Bw, 2x4Bw or 3Ax or Ps.'
},
base1 = {
name = '3Pk_Gen',
base = 'tile_plain_3Pk_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Sp_Gen',
base = 'tile_plain_4Sp_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/11a Akkadian Army 2334-2193BC (Plain)"] = {
data = {
aggresiveness = 4,
terrain = 'Arable',
list = '1xHCh or LCh or 3Bd(Gen), 6x3/4Pk, 1x4Bw, 3xPs, 1x7Hd or 3Ax.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '3Bd_Gen',
base = 'tile_plain_3Bd_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/11b Army of the Third Dynasty of Ur 2112-2004BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xLCh or 3Bd(Gen), 6xSp or 3/4Pk, 2xSp, 3xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Bd_Gen',
base = 'tile_plain_3Bd_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base23 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base24 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base25 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base26 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/12 Sumerian Successor Army 2028-1460 BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xLCh or 4Bw or 3Bd(Gen), 2x3/4Pk, 4x4Pk, 1x3Bw,1x3Ax or 3Bw, 3xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Bw_Gen',
base = 'tile_plain_4Bw_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '3Bd_Gen',
base = 'tile_plain_3Bd_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/13a Hsia and Shang Chinese Army 2000-1300BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1x4Bw or 3Bd (Gen), 5x4Bd, 2x3Ax, 4x3Bw or Ps.'
},
base1 = {
name = '4Bw_Gen',
base = 'tile_plain_4Bw_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Bd_Gen',
base = 'tile_plain_3Bd_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/13b Shang Chinese Army 1299-1017BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1xHCh or LCh (Gen), 3x4Bd, 2x4Bd or 3/4Ax, 1x3Ax or 5Hd or Ps, 5x3/4Bw or Ps.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '5Hd',
base = 'tile_plain_5Hd_40x30',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base23 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base24 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base25 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base26 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base27 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base28 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base29 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base30 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/14a European Bronze Age Army 2000-1401BC (Plain)"] = {
data = {
aggresiveness = 0,
terrain = 'Arable',
list = '1x3Bd (Gen), 9x4Bw, 2xPs.'
},
base1 = {
name = '3Bd_Gen',
base = 'tile_plain_3Bd_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/14b European Bronze Age Army 1400-701BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1xHCh or 4Bd (Gen), 2x4Bd, 1xCv or 4Bd, 6x3/4Ax, 2xPs.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Bd_Gen',
base = 'tile_plain_4Bd_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/14c European Iron Age Army 700-315BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1xLCh or 4Wb (Gen), 1xLCh, 1xCv or 3Wb, 8x3Wb, 1xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Wb_Gen',
base = 'tile_plain_4Wb_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/14d Chinese Border-tribes Army 2000-401BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1x3Wb or 4Wb or LCh or HCh (Gen), 8x3Wb, 3xPs.'
},
base1 = {
name = '3Wb_Gen',
base = 'tile_plain_3Wb_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Wb_Gen',
base = 'tile_plain_4Wb_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base5 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/14e Jung or Ch’iang Army 400-315BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1xCv or LH or 4Wb (Gen), 2xLH or 4Wb, 6x3Wb, 3xPs.'
},
base1 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LH_Gen',
base = 'tile_plain_2LH_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '4Wb_Gen',
base = 'tile_plain_4Wb_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Wb',
base = 'tile_plain_4Wb_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Wb',
base = 'tile_plain_4Wb_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/14f Red Ti Army 788-588BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1x4Wb (Gen), 4x4Wb, 4x3Bw, 3xPs.'
},
base1 = {
name = '4Wb_Gen',
base = 'tile_plain_4Wb_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Wb',
base = 'tile_plain_4Wb_40x15',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '4Wb',
base = 'tile_plain_4Wb_40x15',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Wb',
base = 'tile_plain_4Wb_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Wb',
base = 'tile_plain_4Wb_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/14g I Army 2000-315BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1x3/4Wb (Gen), 4x3Wb, 4x3Bw, 3xPs.'
},
base1 = {
name = '3Wb_Gen',
base = 'tile_plain_3Wb_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Wb_Gen',
base = 'tile_plain_4Wb_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/15 Later Amorite Army 1894-1595BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1xLCh or 4Bw (Gen), 5x3Bd, 2x3/4Ax, 2xPs, 2x7Hd or 3Ax or Ps.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Bw_Gen',
base = 'tile_plain_4Bw_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/16 Old & Middle Kingdom Hittite Army 1680-1380BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1xLCh (Gen), 1xLCh or 3Ax, 4x3Pk or 4Ax, 3x3Ax, 2xPs, 1x7Hd or Ps.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/17a Early Hyksos Army 1645-1591BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Littoral',
list = '1xLCh (Gen), 4x3Bd, 1x4Ax, 3x3Ax or Ps, 2xPs, 1x7Hd or Ps.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/17a Early Hyksos Army 1645-1591BC"] = {
data = {
aggresiveness = 2,
terrain = 'Littoral',
list = '1xLCh (Gen), 4x3Bd, 1x4Ax, 3x3Ax or Ps, 2xPs, 1x7Hd or Ps.',
manufacturer = 'Magister Militum miniatures'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_grass_40x40',
n_models = 1,
fixed_models = {
[1] = 'troop_hyksos_lch_gen'
}
},
base2 = {
name = '3Bd',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_hyksos_bd1'
},
base3 = {
name = '3Bd',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_hyksos_bd1'
},
base4 = {
name = '3Bd',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_hyksos_bd1'
},
base5 = {
name = '3Bd',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_hyksos_bd1'
},
base6 = {
name = '4Ax',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_egyptian_horde'
},
base7 = {
name = '3Ax',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_egyptian_bd2',
loose = true
},
base8 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_egyptian_lybian_wb',
loose = true
},
base9 = {
name = '3Ax',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_egyptian_bd2',
loose = true
},
base10 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_egyptian_lybian_wb',
loose = true
},
base11 = {
name = '3Ax',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_egyptian_bd2',
loose = true
},
base12 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_egyptian_lybian_wb',
loose = true
},
base13 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_egyptian_horde',
loose = true
},
base14 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_egyptian_horde',
loose = true
},
base15 = {
name = '7Hd',
base = 'tile_grass_40x40',
n_models = 7,
model_data = 'troop_egyptian_horde_melee',
loose = true
},
base16 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_egyptian_horde',
loose = true
},
base17 = {
name = 'Camp',
base = 'tile_grass_40x40',
n_models = 1,
model_data = 'troop_egyptian_sphinx'
}
}
armies["Book I"]["I/17b Later Hyksos Army 1590-1537BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Littoral',
list = '1xLCh (Gen), 2xLCh, 3x3Bd, 3x3Ax, 2xPs, 1x2Ps or 7Hd.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/17b Later Hyksos Army 1590-1537BC"] = {
data = {
aggresiveness = 2,
terrain = 'Littoral',
list = '1xLCh (Gen), 2xLCh, 3x3Bd, 3x3Ax, 2xPs, 1x2Ps or 7Hd.',
manufacturer = 'Magister Militum miniatures'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_grass_40x40',
n_models = 1,
fixed_models = {
[1] = 'troop_hyksos_lch_gen'
}
},
base2 = {
name = 'LCh',
base = 'tile_grass_40x40',
n_models = 1,
fixed_models = {
[1] = 'troop_hyksos_lch'
}
},
base3 = {
name = 'LCh',
base = 'tile_grass_40x40',
n_models = 1,
fixed_models = {
[1] = 'troop_hyksos_lch'
}
},
base4 = {
name = '3Bd',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_hyksos_bd1'
},
base5 = {
name = '3Bd',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_hyksos_bd1'
},
base6 = {
name = '3Bd',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_hyksos_bd1'
},
base7 = {
name = '3Ax',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_egyptian_bd2'
},
base8 = {
name = '3Ax',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_egyptian_bd2'
},
base9 = {
name = '3Ax',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_egyptian_lybian_wb'
},
base10 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_egyptian_bow',
loose = true
},
base11 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_egyptian_bow',
loose = true
},
base12 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_egyptian_bow',
loose = true
},
base13 = {
name = '7Hd',
base = 'tile_grass_40x40',
n_models = 7,
model_data = 'troop_egyptian_horde_melee',
loose = true
},
base14 = {
name = 'Camp',
base = 'tile_grass_40x40',
n_models = 1,
model_data = 'troop_egyptian_sphinx'
}
}
armies["Book I"]["I/18 Minoan or Early Mycenaean Army 1600-1250BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Littoral',
list = '1xHCh (Gen), 3xHCh or LCh, 4x4Pk, 2x4Pk or 4Ax, 2xPs.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/19 Mitanni Army 1595-1274BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1xLCh (Gen), 5xLCh, 2x3/4Ax, 3xPs, 1x7Hd.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/20a Ugarit Army 1274-1176BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Littoral',
list = '1xHCh (Gen), 3xHCh or LCh, 1x4Bd, 2x3Ax, 2x3Ax or 7Hd, 3xPs.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/20b Other Syro-Canaanite Armies 1595-1100BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xLCh (Gen), 3xLCh, 1x4Bw or 3Bd, 2x3Ax, 2x3Ax or 7Hd, 3xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/21a Kassite Babylonian Army 1595-890BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Arable',
list = '1xLCh (Gen), 3xLCh, 3x3Ax, 3xPs, 2x2Ps or 3Ax.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/21b Later Babylonian Army 889-747BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Arable',
list = '1xHCh (Gen), 1xHCh, 2xLCh, 1xCv, 3x3Ax, 3xPs, 1x2Ps or 3Ax.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/22a New-Kingdom Egyptian Army 1543-1200BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Littoral',
list = '1xLCh (Gen), 3xLCh, 3x3Bd, 3x4Bw, 1x4Bw or 4Bd, 1xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/22a New-Kingdom Egyptian Army 1543-1200BC"] = {
data = {
aggresiveness = 2,
terrain = 'Littoral',
list = '1xLCh (Gen), 3xLCh, 3x3Bd, 3x4Bw, 1x4Bw or 4Bd, 1xPs.',
manufacturer = 'Magister Militum and Essex miniatures'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_grass_40x40',
n_models = 1,
fixed_models = {
[1] = 'troop_egyptian_lch_gen'
}
},
base2 = {
name = 'LCh',
base = 'tile_grass_40x40',
n_models = 1,
fixed_models = {
[1] = 'troop_egyptian_lch'
}
},
base3 = {
name = 'LCh',
base = 'tile_grass_40x40',
n_models = 1,
fixed_models = {
[1] = 'troop_egyptian_lch'
}
},
base4 = {
name = 'LCh',
base = 'tile_grass_40x40',
n_models = 1,
fixed_models = {
[1] = 'troop_egyptian_lch'
}
},
base5 = {
name = '3Bd',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_egyptian_bd1'
},
base6 = {
name = '3Bd',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_egyptian_bd1'
},
base7 = {
name = '3Bd',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_egyptian_bd1'
},
base8 = {
name = '4Bw',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_egyptian_bow'
},
base9 = {
name = '4Bw',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_egyptian_bow'
},
base10 = {
name = '4Bw',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_egyptian_bow'
},
base11 = {
name = '4Bw',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_egyptian_bow'
},
base12 = {
name = '4Bd',
base = 'tile_grass_40x15',
n_models = 4,
model_data = 'troop_egyptian_bd2'
},
base13 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_egyptian_horde',
loose = true
},
base14 = {
name = 'Camp',
base = 'tile_grass_40x40',
n_models = 1,
model_data = 'troop_egyptian_sphinx'
}
}
armies["Book I"]["I/22b New Kingdom Egyptian Army 1199-1069BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Littoral',
list = '1xLCh (Gen), 3xLCh, 3x4Bd, 2x4Bw, 1x3Bd or 4Bd, 1x3Wb, 1xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/22b New Kingdom Egyptian Army 1199-1069BC"] = {
data = {
aggresiveness = 2,
terrain = 'Littoral',
list = '1xLCh (Gen), 3xLCh, 3x4Bd, 2x4Bw, 1x3Bd or 4Bd, 1x3Wb, 1xPs.',
manufacturer = 'Magister Militum and Essex miniatures'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_grass_40x40',
n_models = 1,
fixed_models = {
[1] = 'troop_egyptian_lch_gen'
}
},
base2 = {
name = 'LCh',
base = 'tile_grass_40x40',
n_models = 1,
fixed_models = {
[1] = 'troop_egyptian_lch'
}
},
base3 = {
name = 'LCh',
base = 'tile_grass_40x40',
n_models = 1,
fixed_models = {
[1] = 'troop_egyptian_lch'
}
},
base4 = {
name = 'LCh',
base = 'tile_grass_40x40',
n_models = 1,
fixed_models = {
[1] = 'troop_egyptian_lch'
}
},
base5 = {
name = '4Bd',
base = 'tile_grass_40x15',
n_models = 4,
model_data = 'troop_egyptian_bd1'
},
base6 = {
name = '4Bd',
base = 'tile_grass_40x15',
n_models = 4,
model_data = 'troop_egyptian_bd1'
},
base7 = {
name = '4Bd',
base = 'tile_grass_40x15',
n_models = 4,
model_data = 'troop_egyptian_bd1'
},
base8 = {
name = '4Bw',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_egyptian_bow'
},
base9 = {
name = '4Bw',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_egyptian_bow'
},
base10 = {
name = '3Bd',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_egyptian_bd3'
},
base11 = {
name = '4Bd',
base = 'tile_grass_40x15',
n_models = 4,
model_data = 'troop_egyptian_bd3'
},
base12 = {
name = '3Wb',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_egyptian_lybian_wb',
loose = true
},
base13 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_egyptian_horde',
loose = true
},
base14 = {
name = 'Camp',
base = 'tile_grass_40x40',
n_models = 1,
model_data = 'troop_egyptian_sphinx'
}
}
armies["Book I"]["I/23a Early Vedic Indian Army 1500-900BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Tropical',
list = '1xLCh (Gen), 4xLCh, 5x3Bw, 2x7Hd.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/23b Later Vedic Indian Army 899-501BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Tropical',
list = '1xLCh or HCh (Gen), 1xEl or LCh, 4xLCh, 5x3Bw, 1x7Hd.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'El',
base = 'tile_plain_El_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/24a Early Hittite Imperial Army 1380-1275BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xLCh (Gen), 3xLCh, 4x3Pk, 2x3Ax, 1xPs, 1x7Hd or Ps.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/24b Later Hittite Imperial Army 1274-1180BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xHCh (Gen), 1xHCh, 2xLCh, 4x3Pk, 2x3Ax, 1xPs, 1x7Hd or Ps.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/25a Middle Assyrian Army 1365-883BC (Plain)"] = {
data = {
aggresiveness = 4,
terrain = 'Arable',
list = '1xLCh (Gen), 3xLCh, 2x3Bd, 4x3/4Ax, 2xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/25b Early Neo-Assyrian Army 882-745BC (Plain)"] = {
data = {
aggresiveness = 4,
terrain = 'Arable',
list = '1xHCh (Gen), 1xHCh, 1xLCh, 1xLCh or LH, 2x3Bd, 4x3/4Ax, 1xPs, 1x7Hd.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/26a Achaian Army 1250-1190BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Littoral',
list = '1xLCh//4Bd (Gen), 3xLCh//4Bd, 4xSp, 2xSp or 4Pk, 1x4Wb or Ps, 1xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Bd_Gen',
base = 'tile_plain_4Bd_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '4Wb',
base = 'tile_plain_4Wb_40x15',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/26b Trojan Army 1250-1190BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Littoral',
list = '1xLCh//4Bd (Gen), 3xLCh//4Bd, 4xSp, 1xSp or 3Bd, 1x3Bw or Ps, 2xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Bd_Gen',
base = 'tile_plain_4Bd_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/27 Early Hebrew Army circa1250-1000BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Hilly',
list = '1x3/4Ax (Gen), 2x3Wb, 1x3Bw or Ps, 2xPs, 5x3Ax, 1x4Ax or 3Ax or Ps.'
},
base1 = {
name = '3Ax_Gen',
base = 'tile_plain_3Ax_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Ax_Gen',
base = 'tile_plain_4Ax_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/28 Sea Peoples 1208-1176BC (Plain)"] = {
data = {
aggresiveness = 4,
terrain = 'Littoral',
list = '1xLCh or HCh or 4Bd (Gen), 2x4Bd, 6x3Bd, 3x3Ax or Ps.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '4Bd_Gen',
base = 'tile_plain_4Bd_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/28 Sea Peoples 1208-1176BC"] = {
data = {
aggresiveness = 4,
terrain = 'Littoral',
list = '1xLCh or HCh or 4Bd (Gen), 2x4Bd, 6x3Bd, 3x3Ax or Ps.',
manufacturer = 'Essex and Chariot miniatures'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_grass_40x40',
n_models = 1,
fixed_models = {
[1] = 'troop_seapeople_lch_general',
}
},
base2 = {
name = 'HCh_Gen',
base = 'tile_grass_40x40',
n_models = 1,
fixed_models = {
[1] = 'troop_seapeople_hch_general',
}
},
base3 = {
name = '4Bd_Gen',
base = 'tile_grass_40x15',
n_models = 4,
model_data = 'troop_seapeople_bd_general'
},
base4 = {
name = '4Bd',
base = 'tile_grass_40x15',
n_models = 4,
model_data = 'troop_egyptian_bd3'
},
base5 = {
name = '4Bd',
base = 'tile_grass_40x15',
n_models = 4,
model_data = 'troop_egyptian_bd3'
},
base6 = {
name = '3Bd',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_seapeople_bd'
},
base7 = {
name = '3Bd',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_seapeople_bd'
},
base8 = {
name = '3Bd',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_seapeople_bd'
},
base9 = {
name = '3Bd',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_seapeople_bd'
},
base10 = {
name = '3Bd',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_seapeople_bd'
},
base11 = {
name = '3Bd',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_seapeople_bd'
},
base12 = {
name = '3Ax',
base = 'tile_grass_40x20',
n_models = 3,
loose = true,
model_data = 'troop_seapeople_ax'
},
base13 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
loose = true,
model_data = 'troop_seapeople_ps'
},
base14 = {
name = '3Ax',
base = 'tile_grass_40x20',
n_models = 3,
loose = true,
model_data = 'troop_seapeople_ax'
},
base15 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
loose = true,
model_data = 'troop_seapeople_ps'
},
base16 = {
name = '3Ax',
base = 'tile_grass_40x20',
n_models = 3,
loose = true,
model_data = 'troop_seapeople_ax'
},
base17 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
loose = true,
model_data = 'troop_seapeople_ps'
},
base18 = {
name = 'Camp',
base = 'tile_grass_40x40',
n_models = 1,
model_data = 'troop_carthaginian_camp'
}
}
armies["Book I"]["I/29a Early Philistine Army 1166-1100BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1xLCh or 4Bd (Gen), 1xLCh, 6x3Bd, 2x3Ax, 2xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Bd_Gen',
base = 'tile_plain_4Bd_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/29b Later Philistine Army 1099-600BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1xLCh or Sp (Gen), 3xLCh, 4xSp, 2x3Ax, 2xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Sp_Gen',
base = 'tile_plain_4Sp_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/30a Dark-Age & Geometric Greek Army 1160-901BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xLCh//3Bd (Gen), 1xCv, 4x3Bd, 4x3Ax, 2xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Bd_Gen',
base = 'tile_plain_3Bd_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/30b Dark-Age and Geometric Greek Army 900-725BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xLCh or Cv (Gen), 1xCv, 7x3Ax, 3xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/30c Dark-Age and Geometric Greek Army 724-650BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xCv (Gen), 1xCv, 7x3/4Ax, 3xPs.'
},
base1 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/31a Neo-Hittite or Later Aramaean Army 1100-901BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xLCh or 4Bw (Gen), 5x3Ax, 6xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Bw_Gen',
base = 'tile_plain_4Bw_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/31b Neo-Hittite or Later Aramaean Army 900-710BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xLCh or HCh (Gen), 1xLCh, 1x4Ax or Sp, 4x3Ax, 5xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/32a Western Chou Army 1100-701BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1xHCh (Gen), 1xHCh, 1x3Bd or 4Bd, 3x4Bd, 2x3Ax, 3x3Bw, 1xPs.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/32b Wu or Yueh Chinese Army 584-480BC (Plain)"] = {
data = {
aggresiveness = 0,
terrain = 'Littoral',
list = '1xHCh (Gen), 1xHCh, 1x3Bd, 4x3Pk or 3/4Bd, 2x3Wb, 2x3/4Bw, 1x2Ps or 7Hd.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base23 = {
name = '5Hd',
base = 'tile_plain_5Hd_40x30',
n_models = 0,
ignore_terrain = true
},
base24 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/32c Other Chinese Armies 700-480BC (Plain)"] = {
data = {
aggresiveness = 0,
terrain = 'Arable',
list = '1xHCh (Gen), 3xHCh, 1x3Bd, 4x3Pk or 3/4Bd, 2x3/4Bw, 1xPs.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Pk',
base = 'tile_plain_3Pk_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base23 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/33a Early Villanovan Italian Army 1000-801BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Arable',
list = '1xCv or LCh (Gen), 11x3Wb.'
},
base1 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/33b Later Villanovan Italian Army 800-650BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Arable',
list = '1xCv or LCh (Gen), 1xCv, 5x4Wb, 4x3Ax, 1xPs.'
},
base1 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Wb',
base = 'tile_plain_4Wb_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Wb',
base = 'tile_plain_4Wb_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Wb',
base = 'tile_plain_4Wb_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Wb',
base = 'tile_plain_4Wb_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Wb',
base = 'tile_plain_4Wb_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/34a Later Hebrew 1000-969BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Hilly',
list = '1xLCh (Gen), 1x4Ax, 1x3Ax or Sp, 6x3Ax, 3xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/34b Later Hebrew Army 968-800BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Hilly',
list = '1xLCh (Gen), 1xLCh, 1xLCh or 4Ax, 7x3Ax, 2xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/34c Later Hebrew Army 799-586BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Hilly',
list = '1xHCh (Gen), 1xHCh, 1x4Ax, 7x3Ax, 2xPs.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/35a Cypriot & Phoenician Army 1000-901BC (Plain)"] = {
data = {
aggresiveness = 0,
terrain = 'Littoral',
list = '1xLCh (Gen), 1xLCh, 6x4Ax, 4xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/35b Cypriot & Phoenician Army 900-680BC (Plain)"] = {
data = {
aggresiveness = 0,
terrain = 'Littoral',
list = '1xHCh (Gen), 1xHCh, 1xCv, 6x4Ax, 3xPs.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/35c Cypriot & Phoenician Army 679-490BC (Plain)"] = {
data = {
aggresiveness = 0,
terrain = 'Littoral',
list = '1xHCh or Sp (Gen), 1xHCh, 1xCv, 6xSp, 3xPs.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Sp_Gen',
base = 'tile_plain_4Sp_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/35d Cypriot or Phoenician Army 489-332BC (Plain)"] = {
data = {
aggresiveness = 0,
terrain = 'Littoral',
list = '1xCv or Sp (Gen), 1xCv, 7xSp or 4Ax, 2xPs, 1xArt or Sp.'
},
base1 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Sp_Gen',
base = 'tile_plain_4Sp_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = 'Art',
base = 'tile_plain_Art_40x40',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/36a Samnite, Umbrian, Hernician or Ligurian Armies 1000-124BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Hilly',
list = '1x3/4Ax or Cv (Gen), 10x3Ax, 1xPs.'
},
base1 = {
name = '3Ax_Gen',
base = 'tile_plain_3Ax_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Ax_Gen',
base = 'tile_plain_4Ax_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/36b Sardinian Army 700-124BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Hilly',
list = '1x3/4Ax or LCh (Gen), 8x3Ax, 3x3Bw or Ps.'
},
base1 = {
name = '3Ax_Gen',
base = 'tile_plain_3Ax_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Ax_Gen',
base = 'tile_plain_4Ax_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/36c Sicel Army 480-380BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Hilly',
list = '1x3/4Ax or Sp or Cv (Gen), 5x3Ax or Sp, 5x3Ax, 1xPs.'
},
base1 = {
name = '3Ax_Gen',
base = 'tile_plain_3Ax_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Ax_Gen',
base = 'tile_plain_4Ax_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Sp_Gen',
base = 'tile_plain_4Sp_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/36d Armies of other Italian Hill Tribes 1000-124BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Hilly',
list = '1x3/4Ax or Cv (Gen), 10x3Ax or 10x3Wb, 1xPs.'
},
base1 = {
name = '3Ax_Gen',
base = 'tile_plain_3Ax_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Ax_Gen',
base = 'tile_plain_4Ax_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base23 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base24 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base25 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/37a Taurus or Zagros Highland Army 950-750BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Hilly',
list = '1xLCh (Gen), 2xCv, 5x3Ax, 4xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/37b Taurus or Zagros Highland Army 749-610BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Hilly',
list = '1xHCh (Gen), 1xCv, 1xLH or Cv, 5x3Ax, 4x2Ps or 3Bw.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/38 Libyan Egyptian Army 946-712BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Littoral',
list = '1xLCh or Cv (Gen), 2xLCh, 1x4Bd or Sp or Cv, 3x4Wb, 1x4Ax, 1x4Bw, 3xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Wb',
base = 'tile_plain_4Wb_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Wb',
base = 'tile_plain_4Wb_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Wb',
base = 'tile_plain_4Wb_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/39a Urartian Army 880-765BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Hilly',
list = '1xLCh (Gen), 1xCv, 5x3Ax, 4x3Ax or Ps, 1x7Hd.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/39b Urartian Army 764-585BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Hilly',
list = '1xHCh (Gen), 1xCv, 1xCv or LH, 3x4Ax, 5x3Ax or Ps, 1x7Hd.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/40 Phrygian Army 851-676BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Arable',
list = '1xLCh (Gen), 1xLCh, 1xLH or Cv, 7x3Ax, 2xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/41a Medes, Zikirtu, Andia or Parsua Army 835-621BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xLCh or Cv (Gen), 4xCv, 4x3Ax, 3xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/41b Median Army 620-550BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xLCh or Cv (Gen), 3xCv, 1xLH, 3xSp, 2x3Bw, 1xSp or 3Bw or 4Bw, 1xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/42 Neo-Elamite Army 800-639BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Hilly',
list = '1xHCh or Mtd-3Bw (Gen), 2xMtd-3Bw, 1xLH, 7x3Bw, 1x3Ax or 3Bw or Ps.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Mtd-3Bw_Gen',
base = 'tile_plain_Mtd_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Mtd-3Bw',
base = 'tile_plain_Mtd_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Mtd-3Bw',
base = 'tile_plain_Mtd_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/43a Kimmerian or Skythian Army 750-301BC (Plain)"] = {
data = {
aggresiveness = 4,
terrain = 'Steppe',
list = '1xCv or LH (Gen), 8xLH, 3xLH or Ps or 7Hd or 3Ax.'
},
base1 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LH_Gen',
base = 'tile_plain_2LH_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base23 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/43b Skythian Army 300 BC-19 BC and early Hu Army 400BC-70AD (Plain)"] = {
data = {
aggresiveness = 4,
terrain = 'Steppe',
list = '1x3Kn or Cv, 1xLH or 3Kn or Cv, 8xLH, 2xLH or Ps or 7Hd or 3Ax.'
},
base1 = {
name = '3Kn',
base = 'tile_plain_3Kn_40x30',
n_models = 0,
ignore_terrain = true
},
base2 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Kn',
base = 'tile_plain_3Kn_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/43c Massagetae Army 550-150BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Steppe',
list = '1xCv, 1xCv, 7xLH, 2x3Bw or Ps, 1x3Ax or 7Hd.'
},
base1 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base2 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/44a Early Neo-Babylonian Army 746-605BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Arable',
list = '1xHCh (Gen), 1xHCh, 2xCv, 1x4Ax, 7x3Bw or Ps.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/44b Later Neo-Babylonian Army 604-589BC and 522-482BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Arable',
list = '1xHCh (Gen), 1xHCh, 2xCv, 4x8Bw, 1xSp or 3Bw or 4Bw, 1x3Ax or Ps, 2x7Hd or Ps.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '8Bw',
base = 'tile_plain_8Bw_40x40',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '8Bw',
base = 'tile_plain_8Bw_40x40',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '8Bw',
base = 'tile_plain_8Bw_40x40',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '8Bw',
base = 'tile_plain_8Bw_40x40',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/45 Neo-Assyrian Imperial Army 745-681BC (Plain)"] = {
data = {
aggresiveness = 4,
terrain = 'Arable',
list = '1xHCh (Gen), 3xHCh, 2xCv, 1x3Bd or 4Ax or (from 704BC) Sp, 2x4Ax, 1x3Ax, 2x7Hd or Ps.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/46a Early Kushite Army 745-728BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Steppe',
list = '1xLCh (Gen), 1xLCh, 2xCv, 2x3Ax, 4x2Ps or 3Bw, 2xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'LCh',
base = 'tile_plain_LCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/46b Kushite Egyptian Army 727-664BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Littoral',
list = '1xHCh (Gen), 1xHCh, 2xCv, 1x3Ax, 2x2Ps or 3Bw, 2xSp, 1x3Ax or Ps, 1x4Ax, 1x4Bw.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/46c Later Kushite Army 663-593BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Steppe',
list = '1xHCh (Gen), 1xHCh, 2xCv, 2x3Ax, 4x2Ps or 3Bw, 2xPs.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/47 Illyrian Army 700BC-10AD (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Hilly',
list = '1xLH or 4Ax (Gen), 9x3A/4Ax, 2xPs.'
},
base1 = {
name = 'LH_Gen',
base = 'tile_plain_2LH_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Ax_Gen',
base = 'tile_plain_4Ax_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base23 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/48 Thracian Army 700BC-46AD (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Hilly',
list = '1xCv or 3Kn or 4Ax (Gen), 3xLH or 3Ax, 6x2Ps or 3/4Ax, 2xPs.'
},
base1 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Kn_Gen',
base = 'tile_plain_3Kn_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '4Ax_Gen',
base = 'tile_plain_4Ax_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base23 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base24 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base25 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base26 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base27 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base28 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base29 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base30 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/48 Thracian Army 700BC-46AD"] = {
data = {
aggresiveness = 1,
terrain = 'Hilly',
list = '1xCv or 3Kn or 4Ax (Gen), 3xLH or 3Ax, 6x2Ps or 3/4Ax, 2xPs.',
manufacturer = 'Xyston and Essex miniatures'
},
base1 = {
name = 'Cv_Gen',
base = 'tile_grass_40x30',
n_models = 3,
fixed_models = {
[1] = 'troop_thracian_cv',
[2] = 'troop_thracian_cv_gen',
[3] = 'troop_thracian_cv'
}
},
base2 = {
name = '3Kn_Gen',
base = 'tile_grass_40x30',
n_models = 3,
fixed_models = {
[1] = 'troop_thracian_cv_gen',
[2] = 'troop_thracian_cv_gen',
[3] = 'troop_thracian_cv_gen'
}
},
base3 = {
name = '4Ax_Gen',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_thracian_axgen'
},
base4 = {
name = 'LH',
base = 'tile_grass_40x30',
n_models = 2,
loose = true,
model_data = 'troop_thracian_lh'
},
base5 = {
name = '3Ax',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_thracian_ax1'
},
base6 = {
name = 'LH',
base = 'tile_grass_40x30',
n_models = 2,
loose = true,
model_data = 'troop_thracian_lh'
},
base7 = {
name = '3Ax',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_thracian_ax1'
},
base8 = {
name = 'LH',
base = 'tile_grass_40x30',
n_models = 2,
loose = true,
model_data = 'troop_thracian_lh'
},
base9 = {
name = '3Ax',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_thracian_ax1'
},
base10 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
loose = true,
model_data = 'troop_thracian_ps'
},
base11 = {
name = '3Ax',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_thracian_ax1'
},
base12 = {
name = '4Ax',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_thracian_ax2'
},
base13 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
loose = true,
model_data = 'troop_thracian_ps'
},
base14 = {
name = '3Ax',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_thracian_ax1'
},
base15 = {
name = '4Ax',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_thracian_ax2'
},
base16 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
loose = true,
model_data = 'troop_thracian_ps'
},
base17 = {
name = '3Ax',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_thracian_ax1'
},
base18 = {
name = '4Ax',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_thracian_ax2'
},
base19 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
loose = true,
model_data = 'troop_thracian_ps'
},
base20 = {
name = '3Ax',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_thracian_ax1'
},
base21 = {
name = '4Ax',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_thracian_ax2'
},
base22 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
loose = true,
model_data = 'troop_thracian_ps'
},
base23 = {
name = '3Ax',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_thracian_ax1'
},
base24 = {
name = '4Ax',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_thracian_ax2'
},
base25 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
loose = true,
model_data = 'troop_thracian_ps'
},
base26 = {
name = '3Ax',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_thracian_ax1'
},
base27 = {
name = '4Ax',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_thracian_ax2'
},
base28 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
loose = true,
model_data = 'troop_thracian_ps'
},
base29 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
loose = true,
model_data = 'troop_thracian_ps'
},
base30 = {
name = 'Camp',
base = 'tile_grass_40x40',
n_models = 1,
model_data = 'troop_ancient_spanish_camp'
}
}
armies["Book I"]["I/49a Van-lang or Au Lac Vietnamese Army 700-207BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Tropical',
list = '1x3Wb (Gen), 4x3Wb, 3x3Bw or 3Cb or Ps, 1x3Ax, 3xPs.'
},
base1 = {
name = '3Wb_Gen',
base = 'tile_plain_3Wb_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Cb',
base = 'tile_plain_3Cb_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Cb',
base = 'tile_plain_3Cb_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Cb',
base = 'tile_plain_3Cb_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/49b Nan-Yueh Army 206-111BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Tropical',
list = '1xHCh (Gen), 1x4Ax, 1x4Bd, 2x4Cb, 3x3Wb, 2x3Bw or 3Cb or Ps, 2xPs.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Cb',
base = 'tile_plain_4Cb_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Cb',
base = 'tile_plain_4Cb_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Cb',
base = 'tile_plain_3Cb_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Cb',
base = 'tile_plain_3Cb_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/49c Early Vietnamese Army 110BC-247AD (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Tropical',
list = '1xCv (Gen), 2x4Ax or 4Bd, 2x4Cb or Ps, 3x3Wb, 2x3Bw or 3Cb or Ps, 2xPs.'
},
base1 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Cb',
base = 'tile_plain_4Cb_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Cb',
base = 'tile_plain_4Cb_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Cb',
base = 'tile_plain_3Cb_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '3Cb',
base = 'tile_plain_3Cb_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/49d Early Vietnamese Army 248-938AD (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Tropical',
list = '1xEl or Cv or 4Bd (Gen), 2x4Ax or 4Bd, 2x4Cb or Ps, 3x3Wb, 2x3Bw or 3Cb or Ps, 2xPs.'
},
base1 = {
name = 'El_Gen',
base = 'tile_plain_El_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '4Bd_Gen',
base = 'tile_plain_4Bd_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Cb',
base = 'tile_plain_4Cb_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Cb',
base = 'tile_plain_4Cb_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Wb',
base = 'tile_plain_3Wb_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '3Cb',
base = 'tile_plain_3Cb_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = '3Cb',
base = 'tile_plain_3Cb_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base23 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/50 Lydian Army 687-540BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Hilly',
list = '1xLCh or 3Kn (Gen), 2x3Kn, 2xLH, 4xSp or 4Ax, 3xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Kn_Gen',
base = 'tile_plain_3Kn_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '3Kn',
base = 'tile_plain_3Kn_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Kn',
base = 'tile_plain_3Kn_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/51 Later Sargonid Assyrian Army 680-609BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xHCh (Gen), 1xHCh, 2xCv, 3xSp, 2x4Bw or Ps, 2x4Ax, 1x7Hd or Ps.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/52a Argive Hoplite Army 669-449BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xSp (Gen), 9xSp, 2xPs.'
},
base1 = {
name = 'Sp_Gen',
base = 'tile_plain_4Sp_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/52b Spartan Hoplite Army 668-449BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xSp (Gen), 10xSp, 1xSp or 7Hd.'
},
base1 = {
name = 'Sp_Gen',
base = 'tile_plain_4Sp_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/52c Thessalian Hoplite Army 668-449BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xCv or Sp (Gen), 3xLH, 4xSp, 4xPs.'
},
base1 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Sp_Gen',
base = 'tile_plain_4Sp_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/52d Theban Hoplite Army 668-449BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xSp (Gen), 1xCv, 9xSp, 1xPs.'
},
base1 = {
name = 'Sp_Gen',
base = 'tile_plain_4Sp_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/52e Early Athenian Hoplite Army 668-541BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xSp (Gen), 9xSp, 2xPs.'
},
base1 = {
name = 'Sp_Gen',
base = 'tile_plain_4Sp_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/52f Later Athenian Hoplite Army 540-449BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Littoral',
list = '1xSp (Gen), 7xSp, 1xCv or LH or Sp, 1x2Ps or Sp, 1x2Ps or 3Bw, 1xPs.'
},
base1 = {
name = 'Sp_Gen',
base = 'tile_plain_4Sp_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/52g Asiatic Greek Hoplite Army 668-449BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Littoral',
list = '1xCv (Gen), 1xCv, 9xSp, 1xPs.'
},
base1 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/52h Early Hoplite Greek Phocian & Aitolian 668-449BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Hilly',
list = '1xSp (Gen), 3xSp, 8xPs.'
},
base1 = {
name = 'Sp_Gen',
base = 'tile_plain_4Sp_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/52i Italiot or Siciliot Hoplite Army 668-449BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Littoral',
list = '1xCv (Gen), 1xCv or LH, 4xSp, 4x4Ax, 2xPs.'
},
base1 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/52j Any Other Hoplite Army 669-449BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable, Hilly or Littoral',
list = '1xCv or Sp, 9xSp, 2xSp or Ps.'
},
base1 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base2 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/53 Saitic Egyptian Army 664-335BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Littoral',
list = '1xHCh or Cv (Gen), 1xLH, 6xSp, 2x4Bw, 1x4Ax or Ps, 1xPs.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/54 Early Macedonian Army 650-355BC (Plain)"] = {
data = {
aggresiveness = 0,
terrain = 'Arable',
list = '1x3Kn (Gen), 1x3Kn, 2xSp or 3/4Ax, 6x3Ax, 2x2Ps'
},
base1 = {
name = '3Kn_Gen',
base = 'tile_plain_3Kn_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Kn',
base = 'tile_plain_3Kn_40x30',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/55a Etruscan Army 650-600BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xLCh or Cv (Gen), 2xCv, 6xSp, 1x4Bd or Sp, 2xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/55b Roman Army 650-578BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xLCh or Cv (Gen), 2xCv, 8xSp, 2xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/55c Latin Army 650-400BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xLCh or Cv (Gen), 1xCv, 7xSp, 1xSp or Ps, 2xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/55d Latin Army 399-338BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xCv (Gen), 1xCv, 2x4Bd, 4xSp, 4xPs.'
},
base1 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/55e Umbrian Army 650-290BC (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Arable',
list = '1xLCh or Cv (Gen), 1xCv, 2xSp, 6x3Ax, 2xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/56a Early Kyrenean Greek Army 630-314BC (Plain)"] = {
data = {
aggresiveness = 0,
terrain = 'Littoral',
list = '1xHCh//4Sp or Cv or Sp (Gen), 3xHCh//Sp. 5xSp, 3xPs.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Sp_Gen',
base = 'tile_plain_4Sp_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = 'Sp_Gen',
base = 'tile_plain_4Sp_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base5 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/56b Later Kyrenean Greek Army 313-74BC (Plain)"] = {
data = {
aggresiveness = 0,
terrain = 'Littoral',
list = '1x3Kn or Cv or Sp(Gen), 2x4Pk or 4Ax or Sp, 6xSp, 3xPs.'
},
base1 = {
name = '3Kn_Gen',
base = 'tile_plain_3Kn_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Sp_Gen',
base = 'tile_plain_4Sp_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/57a Etruscan League Army 600-400BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1xLCh or Cv (Gen), 1xCv, 1x4Bd or Sp, 7xSp, 1xPs, 1x7Hd or Ps.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/57b Etruscan League Army 399-280BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1xCv (Gen), 1xCv, 4x4Bd or Sp, 4xSp, 1xPs, 1x7Hd or Ps.'
},
base1 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/58 Meroitic Kushite Army 592BC-350AD (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Arable',
list = '1xCv or 3Bw or 4Bw or El (Gen), 2x3Bw or 4Bw, 5xSp, 2x4Bd, 1xPs.'
},
base1 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Bw_Gen',
base = 'tile_plain_3Bw_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '4Bw_Gen',
base = 'tile_plain_4Bw_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = 'El_Gen',
base = 'tile_plain_El_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base5 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/59 Tullian Roman Army 578-400BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1xCv or Sp (Gen), 1xCv, 7xSp, 1x4Ax, 2xPs.'
},
base1 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Sp_Gen',
base = 'tile_plain_4Sp_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/60a Achaemenid Army 550-547BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1xLCh or Cv (Gen), 1xCv, 1xCv or LH, 4x8Bw, 1x3Bw, 1x3Ax, 1x2Ps or 3Bw, 2x7Hd.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '8Bw',
base = 'tile_plain_8Bw_40x40',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '8Bw',
base = 'tile_plain_8Bw_40x40',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '8Bw',
base = 'tile_plain_8Bw_40x40',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '8Bw',
base = 'tile_plain_8Bw_40x40',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/60b Cyrus’ Army according to the Cyropaedia 546-540BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1xCv (Gen), 1xCv, 1xSCh, 1xWWg, 1xCm, 5x8Bw, 1x3Ax, 1xPs.'
},
base1 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = 'SCh',
base = 'tile_plain_SCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'WWg',
base = 'tile_plain_WWg_40x80',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Cm',
base = 'tile_plain_3Cm_40x30',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '8Bw',
base = 'tile_plain_8Bw_40x40',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '8Bw',
base = 'tile_plain_8Bw_40x40',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '8Bw',
base = 'tile_plain_8Bw_40x40',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '8Bw',
base = 'tile_plain_8Bw_40x40',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '8Bw',
base = 'tile_plain_8Bw_40x40',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/60c Achaemenid Army 539-420BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Arable',
list = '1xLCh or Cv (Gen), 1xCv, 1xCv or LH, 1x8Bw or 4Bw, 3x8Bw or 3Bw or 4Bw, 1x3Ax, 1xSp, 3x7Hd or Ps.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '8Bw',
base = 'tile_plain_8Bw_40x40',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '8Bw',
base = 'tile_plain_8Bw_40x40',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '8Bw',
base = 'tile_plain_8Bw_40x40',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '8Bw',
base = 'tile_plain_8Bw_40x40',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base23 = {
name = '7Hd',
base = 'tile_plain_7Hd_40x40',
n_models = 0,
ignore_terrain = true
},
base24 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base25 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/61a Early Carthaginian Army 550-341BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Littoral',
list = '1xSp or Cv or HCh (Gen), 1xHCh, 1xCv, 4xSp, 2xSp or 4Ax, 1x4Wb or 3Ax, 2xPs.'
},
base1 = {
name = 'Sp_Gen',
base = 'tile_plain_4Sp_40x15',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '4Wb',
base = 'tile_plain_4Wb_40x15',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/61a Early Carthaginian Army 550-341BC"] = {
data = {
aggresiveness = 3,
terrain = 'Littoral',
list = '1xSp or Cv or HCh (Gen), 1xHCh, 1xCv, 4xSp, 2xSp or 4Ax, 1x4Wb or 3Ax, 2xPs.',
manufacturer = 'Essex miniatures'
},
base1 = {
name = 'Sp_Gen',
base = 'tile_grass_40x15',
n_models = 4,
fixed_models = {
[1] = 'troop_carthaginian_soldier',
[2] = 'troop_carthaginian_soldier',
[3] = 'troop_carthaginian_cavalry_gen',
[4] = 'troop_carthaginian_soldier',
}
},
base2 = {
name = 'Cv_Gen',
base = 'tile_grass_40x30',
n_models = 3,
fixed_models = {
[1] = 'troop_carthaginian_cavalry',
[2] = 'troop_carthaginian_cavalry_gen',
[3] = 'troop_carthaginian_cavalry'
}
},
base3 = {
name = 'HCh_Gen',
base = 'tile_grass_40x40',
n_models = 1,
model_data = 'troop_carthaginian_chariot_gen'
},
base4 = {
name = 'HCh',
base = 'tile_grass_40x40',
n_models = 1,
model_data = 'troop_carthaginian_chariot'
},
base5 = {
name = 'Cv',
base = 'tile_grass_40x30',
n_models = 3,
model_data = 'troop_carthaginian_cavalry'
},
base6 = {
name = 'Sp',
base = 'tile_grass_40x15',
n_models = 4,
model_data = 'troop_carthaginian_soldier'
},
base7 = {
name = 'Sp',
base = 'tile_grass_40x15',
n_models = 4,
model_data = 'troop_carthaginian_soldier'
},
base8 = {
name = 'Sp',
base = 'tile_grass_40x15',
n_models = 4,
model_data = 'troop_carthaginian_soldier'
},
base9 = {
name = 'Sp',
base = 'tile_grass_40x15',
n_models = 4,
model_data = 'troop_carthaginian_soldier'
},
base10 = {
name = 'Sp',
base = 'tile_grass_40x15',
n_models = 4,
model_data = 'troop_carthaginian_soldier'
},
base11 = {
name = '4Ax',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_carthaginian_psiloi',
loose = true
},
base12 = {
name = 'Sp',
base = 'tile_grass_40x15',
n_models = 4,
model_data = 'troop_carthaginian_soldier'
},
base13 = {
name = '4Ax',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_carthaginian_psiloi',
loose = true
},
base14 = {
name = '4Wb',
base = 'tile_grass_40x15',
n_models = 4,
model_data = 'troop_carthaginian_warband'
},
base15 = {
name = '3Ax',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_carthaginian_soldier',
loose = true
},
base16 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_carthaginian_psiloi',
loose = true
},
base17 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_carthaginian_psiloi',
loose = true
},
base18 = {
name = 'Camp',
base = 'tile_grass_40x40',
n_models = 1,
model_data = 'troop_carthaginian_camp'
}
}
armies["Book I"]["I/61b Early Carthaginian Army 340-275BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Littoral',
list = '1xHCh or Cv (Gen), 1xHCh, 1xCv, 1xLH or 3Ax, 4xSp, 1x3Ax, 1x4Wb, 2xPs.'
},
base1 = {
name = 'HCh_Gen',
base = 'tile_plain_HCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = 'HCh',
base = 'tile_plain_HCh_40x40',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '4Wb',
base = 'tile_plain_4Wb_40x15',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/61b Early Carthaginian Army 340-275BC"] = {
data = {
aggresiveness = 3,
terrain = 'Littoral',
list = '1xSp or Cv or HCh (Gen), 1xHCh, 1xCv, 1xLH or 4Ax, 4xSp, 1xSp or 4Ax, 1x4Wb or 3Ax, 2xPs.',
manufacturer = 'Essex miniatures'
},
base1 = {
name = 'Sp_Gen',
base = 'tile_grass_40x15',
n_models = 4,
fixed_models = {
[1] = 'troop_carthaginian_soldier',
[2] = 'troop_carthaginian_soldier',
[3] = 'troop_carthaginian_cavalry_gen',
[4] = 'troop_carthaginian_soldier',
}
},
base2 = {
name = 'Cv_Gen',
base = 'tile_grass_40x30',
n_models = 3,
fixed_models = {
[1] = 'troop_carthaginian_cavalry',
[2] = 'troop_carthaginian_cavalry_gen',
[3] = 'troop_carthaginian_cavalry'
}
},
base3 = {
name = 'HCh_Gen',
base = 'tile_grass_40x40',
n_models = 1,
model_data = 'troop_carthaginian_chariot_gen'
},
base4 = {
name = 'HCh',
base = 'tile_grass_40x40',
n_models = 1,
model_data = 'troop_carthaginian_chariot'
},
base5 = {
name = 'Cv',
base = 'tile_grass_40x30',
n_models = 3,
model_data = 'troop_carthaginian_cavalry'
},
base6 = {
name = 'LH',
base = 'tile_grass_40x30',
n_models = 2,
model_data = 'troop_carthaginian_lightcav',
loose = true
},
base7 = {
name = '4Ax',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_carthaginian_psiloi',
loose = true
},
base8 = {
name = 'Sp',
base = 'tile_grass_40x15',
n_models = 4,
model_data = 'troop_carthaginian_soldier'
},
base9 = {
name = 'Sp',
base = 'tile_grass_40x15',
n_models = 4,
model_data = 'troop_carthaginian_soldier'
},
base10 = {
name = 'Sp',
base = 'tile_grass_40x15',
n_models = 4,
model_data = 'troop_carthaginian_soldier'
},
base11 = {
name = 'Sp',
base = 'tile_grass_40x15',
n_models = 4,
model_data = 'troop_carthaginian_soldier'
},
base12 = {
name = 'Sp',
base = 'tile_grass_40x15',
n_models = 4,
model_data = 'troop_carthaginian_soldier'
},
base13 = {
name = '4Ax',
base = 'tile_grass_40x20',
n_models = 4,
model_data = 'troop_carthaginian_psiloi',
loose = true
},
base14 = {
name = '4Wb',
base = 'tile_grass_40x15',
n_models = 4,
model_data = 'troop_carthaginian_warband'
},
base15 = {
name = '3Ax',
base = 'tile_grass_40x20',
n_models = 3,
model_data = 'troop_carthaginian_soldier',
loose = true
},
base16 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_carthaginian_psiloi',
loose = true
},
base17 = {
name = 'Ps',
base = 'tile_grass_40x20',
n_models = 2,
model_data = 'troop_carthaginian_psiloi',
loose = true
},
base18 = {
name = 'Camp',
base = 'tile_grass_40x40',
n_models = 1,
model_data = 'troop_carthaginian_camp'
}
}
armies["Book I"]["I/62 Lykian Army 546-300BC (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Hilly',
list = '1xLCh or Cv (Gen), 4x3Ax or 4Ax, 4x3Ax or 4Ax or Sp, 1x3Bd, 2xPs.'
},
base1 = {
name = 'LCh_Gen',
base = 'tile_plain_LCh_40x40',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = 'Cv_Gen',
base = 'tile_plain_3Cv_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base23 = {
name = '3Bd',
base = 'tile_plain_3Bd_40x20',
n_models = 0,
ignore_terrain = true
},
base24 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base25 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base26 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/63 Paionian Army 512-284BC (Plain)"] = {
data = {
aggresiveness = 3,
terrain = 'Hilly',
list = '1xLH or 3Ax or 4Ax (Gen), 1xLH, 1x3Ax or 4Ax, 7x2Ps or 3Ax, 2xPs.'
},
base1 = {
name = 'LH_Gen',
base = 'tile_plain_2LH_40x30',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base2 = {
name = '3Ax_Gen',
base = 'tile_plain_3Ax_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base3 = {
name = '4Ax_Gen',
base = 'tile_plain_4Ax_40x20',
n_models = 1,
model_data = 'troop_general_plain',
ignore_terrain = true
},
base4 = {
name = 'LH',
base = 'tile_plain_2LH_40x30',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = '3Ax',
base = 'tile_plain_3Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base22 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base23 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/64a Yayoi culture Japanese Army 500BC-274AD (Plain)"] = {
data = {
aggresiveness = 1,
terrain = 'Hilly',
list = '1x3Bw or 4Bw or 4Bd or 4Ax, 3x4Bd, 3x4Ax, 5x3Bw or Ps.'
},
base1 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base2 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '4Bd',
base = 'tile_plain_4Bd_40x15',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Ax',
base = 'tile_plain_4Ax_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/64b Kofun culture Japanese Army 275-407AD (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Hilly',
list = '1x4Bw, 3x4Bw, 4x3Bw or 4Bw, 2x3Bw, 2xSp or 4Pk.'
},
base1 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base2 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
armies["Book I"]["I/64c Kofun culture 408-500AD (Plain)"] = {
data = {
aggresiveness = 2,
terrain = 'Hilly',
list = '1x4Bw or Cv, 2x4Bw, 4x3Bw or 4Bw, 2x3Bw, 2xSp or 4Pk, 1xCv or Ps.'
},
base1 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base2 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base3 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base4 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base5 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base6 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base7 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base8 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base9 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base10 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base11 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base12 = {
name = '4Bw',
base = 'tile_plain_4Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base13 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base14 = {
name = '3Bw',
base = 'tile_plain_3Bw_40x20',
n_models = 0,
ignore_terrain = true
},
base15 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base16 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base17 = {
name = 'Sp',
base = 'tile_plain_4Sp_40x15',
n_models = 0,
ignore_terrain = true
},
base18 = {
name = '4Pk',
base = 'tile_plain_4Pk_40x15',
n_models = 0,
ignore_terrain = true
},
base19 = {
name = 'Cv',
base = 'tile_plain_3Cv_40x30',
n_models = 0,
ignore_terrain = true
},
base20 = {
name = 'Ps',
base = 'tile_plain_2Ps_40x20',
n_models = 0,
ignore_terrain = true
},
base21 = {
name = 'Camp',
base = 'tile_plain_Camp_40x40',
n_models = 0,
ignore_terrain = true
}
}
|
--
-- Notion main configuration file
--
-- This file only includes some settings that are rather frequently altered.
-- The rest of the settings are in cfg_notioncore.lua and individual modules'
-- configuration files (cfg_modulename.lua).
--
-- When any binding and other customisations that you want are minor, it is
-- recommended that you include them in a copy of this file in ~/.notion/.
-- Simply create or copy the relevant settings at the end of this file (from
-- the other files), recalling that a key can be unbound by passing 'nil'
-- (without the quotes) as the callback. For more information, please see
-- the Notion configuration manual available from the Notion Web page.
--
-- Set default modifiers. Alt should usually be mapped to Mod1 on
-- XFree86-based systems. The flying window keys are probably Mod3
-- or Mod4; see the output of 'xmodmap'.
--META="Mod1+"
META="Mod3+" -- Left Alt key
ALTMETA=""
--ALTMETA=""
-- Terminal emulator
XTERM="urxvt"
--XTERM="xterm"
-- Some basic settings
ioncore.set{
-- Maximum delay between clicks in milliseconds to be considered a
-- double click.
--dblclick_delay=250,
-- For keyboard resize, time (in milliseconds) to wait after latest
-- key press before automatically leaving resize mode (and doing
-- the resize in case of non-opaque move).
--kbresize_delay=1500,
-- Opaque resize?
--opaque_resize=false,
-- Movement commands warp the pointer to frames instead of just
-- changing focus. Enabled by default.
--warp=true,
-- Switch frames to display newly mapped windows
--switchto=true,
-- Default index for windows in frames: one of 'last', 'next' (for
-- after current), or 'next-act' (for after current and anything with
-- activity right after it).
--frame_default_index='next',
-- Auto-unsqueeze transients/menus/queries.
--unsqueeze=true,
-- Display notification tooltips for activity on hidden workspace.
--screen_notify=true,
-- Automatically save layout on restart and exit.
--autosave_layout=true,
-- Mouse focus mode; set to "sloppy" if you want the focus to follow the
-- mouse, and to "disabled" otherwise.
--mousefocus="sloppy",
-- Controls Notion's reaction to stacking requests sent by clients. Set to
-- "ignore" to ignore these requests, and to "activate" to set the activity
-- flag on a window that requests to be stacked "Above".
--window_stacking_request="ignore",
}
-- Load default settings. The file cfg_defaults loads all the files
-- commented out below, except mod_dock. If you do not want to load
-- something, comment out this line, and uncomment the lines corresponding
-- the the modules or configuration files that you want, below.
-- The modules' configuration files correspond to the names of the
-- modules with 'mod' replaced by 'cfg'.
--dopath("cfg_defaults")
-- Load configuration of the Notion 'core'. Most bindings are here.
dopath("cfg_notioncore")
-- Load some kludges to make apps behave better.
dopath("cfg_kludges")
-- Define some layouts.
dopath("cfg_layouts")
-- Load some modules. Bindings and other configuration specific to modules
-- are in the files cfg_modulename.lua.
dopath("mod_query")
dopath("mod_menu")
dopath("mod_tiling")
dopath("mod_xrandr")
--dopath("mod_xinerama")
dopath("mod_statusbar")
--dopath("mod_dock")
--dopath("mod_sp")
dopath("mod_notionflux")
--
-- Common customisations
--
-- Uncommenting the following lines should get you plain-old-menus instead
-- of query-menus.
defbindings("WScreen", {
kpress(ALTMETA.."F12", "mod_menu.menu(_, _sub, 'mainmenu', {big=true})"),
})
defbindings("WMPlex.toplevel", {
kpress(META.."Shift+F12", "mod_menu.menu(_, _sub, 'ctxmenu')"),
})
-- Personal cfg_ioncore.lua overrides
--
-- I never use the Func keys after F3, and they're used by vim-latex
undo_func_keys = {
kpress(ALTMETA.."F4", nil),
kpress(ALTMETA.."F5", nil),
kpress(ALTMETA.."F6", nil),
kpress(ALTMETA.."F9", nil),
}
defbindings("WMPlex.toplevel",undo_func_keys)
-- By default meta-k is used for submaps. I use it for vi-like
-- movement so undo all the submaps first. Do the same for the others to be
-- safe.
undo_vi_keys = {
kpress(META.."H", nil),
kpress(META.."J", nil),
kpress(META.."K", nil),
kpress(META.."L", nil),
}
defbindings("WScreen", undo_vi_keys)
defbindings("WClientWin", undo_vi_keys)
defbindings("WGroupCW", undo_vi_keys)
defbindings("WMPlex", undo_vi_keys)
defbindings("WMPlex.toplevel", undo_vi_keys)
defbindings("WFrame", undo_vi_keys)
defbindings("WFrame.toplevel", undo_vi_keys)
defbindings("WFrame.floating", undo_vi_keys)
defbindings("WMoveresMode", undo_vi_keys)
-- Frames for transient windows ignore this bindmap
defbindings("WFrame.toplevel", {
bdoc("Tag current object within the frame."),
kpress(META.."T", "WRegion.set_tagged(_sub, 'toggle')", "_sub:non-nil"),
bdoc("Attach tagged objects to this frame."),
kpress(META.."A", "ioncore.tagged_attach(_)"),
bdoc("Switch to next/previous object within the frame."),
kpress(META.."N", "WFrame.switch_next(_)"),
kpress(META.."P", "WFrame.switch_prev(_)"),
bdoc("Move current object within the frame left/right."),
kpress(META.."Shift+P", "WFrame.dec_index(_, _sub)", "_sub:non-nil"),
kpress(META.."Shift+N", "WFrame.inc_index(_, _sub)", "_sub:non-nil"),
bdoc("Maximize the frame horizontally/vertically."),
kpress(META.."7", "WFrame.maximize_horiz(_)"),
kpress(META.."6", "WFrame.maximize_vert(_)"),
})
--
-- Personal cfg_tiling.lua overrides
--
defbindings("WTiling", {
bdoc("Split current frame vertically."),
kpress(META.."V", "WTiling.split_at(_, _sub, 'right', true)"),
bdoc("Split current frame horizontally."),
kpress(META.."S", "WTiling.split_at(_, _sub, 'bottom', true)"),
-- replace the defaults with vi-like movement
kpress(META.."P", nil),
kpress(META.."N", nil),
kpress(META.."Tab", nil),
bdoc("Go to frame above/below/right/left of current frame."),
kpress(META.."K", "ioncore.goto_next(_sub, 'up', {no_ascend=_})"),
kpress(META.."J", "ioncore.goto_next(_sub, 'down', {no_ascend=_})"),
kpress(META.."L", "ioncore.goto_next(_sub, 'right')"),
kpress(META.."H", "ioncore.goto_next(_sub, 'left')"),
submap(META.."I", {
bdoc("Destroy current frame."),
kpress("X", "WTiling.unsplit_at(_, _sub)"),
}),
})
-- restart on screen layout updates: to trigger mod_xinerama
-- take these changes into account.
function screenlayoutupdated()
ioncore.restart()
end
randr_screen_change_notify_hook = ioncore.get_hook('randr_screen_change_notify')
if randr_screen_change_notify_hook ~= nil then
randr_screen_change_notify_hook:add(screenlayoutupdated)
end
--Wrapping goto_next_scr/goto_prev_scr
function next_wrap()
scr = ioncore.goto_next_screen()
if obj_is(scr, "WRootWin") then
ioncore.goto_nth_screen(0)
end
end
function prev_wrap()
scr = ioncore.goto_prev_screen()
if obj_is(scr, "WRootWin") then
ioncore.goto_nth_screen(-1)
end
end
defbindings("WScreen", {
bdoc("Go to next/previous screen on multihead setup."),
kpress(META.."comma", "prev_wrap()"),
kpress(META.."period", "next_wrap()"),
-- kpress(META.."Shift+comma", "prev_wrap()"),
-- kpress(META.."Shift+period", "next_wrap()"),
})
-- Deprecated.
dopath("cfg_user", true)
--To get the gnome panel to come up the first time, uncomment the line
--without 'oneshot = true', start gnome, and killall gnome-panel.
--I've been replacing the original line once I've got things working
--and Gnome has saved the setting.
--defwinprop{ class = "Gnome-panel", instance = "gnome-panel", target = "*dock*"}
defwinprop{ class = "Gnome-panel", instance = "gnome-panel", target = "*dock*", oneshot = true, }
|
discordlib.response = {
Pong = 1,
ChannelMessageWithSource = 4,
DeferredChannelMessageWithSource = 5,
DeferredUpdateMessage = 6,
UpdateMessage = 7,
}
function discordlib.structures.interaction(client, interaction)
function interaction.response(type = !err, msg, callback)
local postData = {}
if isstring(msg) then msg = {content = tostring(msg)} end
postData.data = msg
postData.type = type
client.HTTPRequest("interactions/{interaction.id}/{interaction.token}/callback", "interactions/${interaction.id}/${interaction.token}/callback", "POST", discordlib.intermsgToMultipart(postData), callback and function(code, data, headers)
callback(code ~= 204, data, headers)
end, nil, true)
end
function interaction.editResponse(msg = !err, callback)
if isstring(msg) then msg = {content = tostring(msg)} end
client.HTTPRequest("webhooks/{client.user.id}/{interaction.token}/messages/@original","webhooks/${client.user.id}/${interaction.token}/messages/@original", "PATCH", discordlib.msgToMultipart(msg), callback and function(code, data, headers)
callback(code ~= 200, data, headers)
end, nil, true)
end
function interaction.deleteResponse()
client.HTTPRequest("webhooks/{client.user.id}/{interaction.token}/messages/@original", "webhooks/" .. client.user.id .. "/" .. interaction.token .. "/messages/@original", "DELETE", {}, callback and function(code, data, headers)
callback(code ~= 204, data, headers)
end)
end
return interaction
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.