
Originally Posted by
Byrthnoth
If you didn't figure it out yet, the problem is that you have "Barrage Index" instead of "Barrage_Index"
Thanks! I noticed after posting it. Now the file is loading fine but I'm getting an error from Mote-Include.lua on line 1, unexpected symbol.
Code:
-------------------------------------------------------------------------------------------------------------------
-- Common variables and functions to be included in job scripts, for general default handling.
--
-- Include this file in the get_sets() function with the command:
-- include('Mote-Include.lua')
--
-- It will then automatically run its own init_include() function.
--
-- IMPORTANT: This include requires supporting include files:
-- Mote-Utility
-- Mote-Mappings
-- Mote-SelfCommands
-- Mote-Globals
--
-- Place the include() directive at the start of a job's get_sets() function.
--
-- Included variables and functions are considered to be at the same scope level as
-- the job script itself, and can be used as such.
-------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------
-- Initialization function that defines variables to be used.
-- These are accessible at the including job lua script's scope.
--
-- Auto-initialize after defining this function.
-------------------------------------------------------------------------------------------------------------------
function init_include()
-- Used to define various types of data mappings. These may be used in the initialization,
-- so load it up front.
include('Mote-Mappings')
-- Var for tracking misc info
info = {}
-- Var for tracking state values
state = {}
-- General melee offense/defense modes, allowing for hybrid set builds, as well as idle/resting/weaponskill.
state.OffenseMode = 'Normal'
state.DefenseMode = 'Normal'
state.RangedMode = 'Normal'
state.WeaponskillMode = 'Normal'
state.CastingMode = 'Normal'
state.IdleMode = 'Normal'
state.RestingMode = 'Normal'
-- All-out defense state, either physical or magical
state.Defense = {}
state.Defense.Active = false
state.Defense.Type = 'Physical'
state.Defense.PhysicalMode = 'PDT'
state.Defense.MagicalMode = 'MDT'
state.Kiting = false
state.MaxWeaponskillDistance = 0
state.SelectNPCTargets = false
state.PCTargetMode = 'default'
state.CombatWeapon = nil
state.CombatForm = nil
state.Buff = {}
-- Vars for specifying valid mode values.
-- Defaults here are just for example. Set them properly in each job file.
options = {}
options.OffenseModes = {'Normal'}
options.DefenseModes = {'Normal'}
options.RangedModes = {'Normal'}
options.WeaponskillModes = {'Normal'}
options.CastingModes = {'Normal'}
options.IdleModes = {'Normal'}
options.RestingModes = {'Normal'}
options.PhysicalDefenseModes = {'PDT'}
options.MagicalDefenseModes = {'MDT'}
options.TargetModes = {'default', 'stpc', 'stpt', 'stal'}
I put the globals, mappings, self commands and utility files in the Gearswap/data folder. I've noticed this happen on every job template, so I figure I must be doing something wrong.