damned
November 28th, 2014, 11:09
I need some help with a few coding queries:
1. In CoreRPG manager_combat.lua there exists the following code that announce a new Combat Round like [ROUND 4]
-- Announce new round
local msg = {font = "narratorfont", icon = "turn_flag"};
msg.text = "[" .. Interface.getString("combat_tag_round") .. " " .. nCurrent .. "]";
Comm.deliverChatMessage(msg);
I wish to modify this slightly - to announce [ROUND 4] Players Reroll Initiative. I can edit the msg.txt statement in the manager_combat.lua in CoreRPG with the obvious issue that it will get overwritten next time MW shares some new goodness around.
Ive been advised by that other Code guru Trenloe that I should put changes to this file in manager_combat2.lua instead. When I add this I get the following error being generated by msg.text line:
Script Error: [string "scripts/manager_combat2.lua"]:86: attempt to index global 'Interface' (a nil value)
Could someone help me understand how to fix this...?
1. In CoreRPG manager_combat.lua there exists the following code that announce a new Combat Round like [ROUND 4]
-- Announce new round
local msg = {font = "narratorfont", icon = "turn_flag"};
msg.text = "[" .. Interface.getString("combat_tag_round") .. " " .. nCurrent .. "]";
Comm.deliverChatMessage(msg);
I wish to modify this slightly - to announce [ROUND 4] Players Reroll Initiative. I can edit the msg.txt statement in the manager_combat.lua in CoreRPG with the obvious issue that it will get overwritten next time MW shares some new goodness around.
Ive been advised by that other Code guru Trenloe that I should put changes to this file in manager_combat2.lua instead. When I add this I get the following error being generated by msg.text line:
Script Error: [string "scripts/manager_combat2.lua"]:86: attempt to index global 'Interface' (a nil value)
Could someone help me understand how to fix this...?