Archlyte
June 17th, 2020, 09:39
I am trying to modify the myqscript.lua and it was working fine until I added some skills as I am making a Mythras/RQ6 extension for the BRP Ruleset. Included the errors and the text from the lua file. Thanks for any help. Extension won't load and getting this for errors:
Script Error: [string "scripts/myqscript.lua"]:434: '(' expected near 'onInit'
in the file it appears as …
function onInit()
LineManager.setLine(GameLine);
-- register any lookups:
Global.Lookups.HitLocationTemplates = HitLocationTemplates;
Global.Lookups.PowerTypes = GameLine.PowerTypes;
Global.Lookups.Categories = GameLine.Categories;
Global.Lookups.Skills = GameLine.Skills;
Global.Lookups.WeaponTypes = GameLine.WeaponTypes;
Global.Lookups.HitPointMethods["MYQ"] = {Text="MyQuest HP", SetHitPoints=setHitPoints};
end
Script Error: [string "scripts/myqscript.lua"]:434: '(' expected near 'onInit'
in the file it appears as …
function onInit()
LineManager.setLine(GameLine);
-- register any lookups:
Global.Lookups.HitLocationTemplates = HitLocationTemplates;
Global.Lookups.PowerTypes = GameLine.PowerTypes;
Global.Lookups.Categories = GameLine.Categories;
Global.Lookups.Skills = GameLine.Skills;
Global.Lookups.WeaponTypes = GameLine.WeaponTypes;
Global.Lookups.HitPointMethods["MYQ"] = {Text="MyQuest HP", SetHitPoints=setHitPoints};
end