cscase
September 22nd, 2013, 01:21
I found that while you can switch to any NPC identity (whether it already exists or not) by typing "/id <name>," there's no way to switch with a slash command back to the GM ID. If you use /gmid, it changes the name of the GM ID, but doesn't activate it. And if you type /id <your GM id here>, the UI gets into a borked state where it creates an ID with the same name as the GM ID and neither one of them work right. From there you have to reload in order to have IDs work right again.
A small change to the id slash command handler function both fixes the bug and also allows you to use the /id command to activate the GM identity. I changed the function on line 18 of manager_gmidentity.lua as follows. Added code in blue:
function slashCommandHandlerId(sCommand, sParams)
if not User.isHost() then
return;
end
if string.upper(sParams) == string.upper(CampaignRegistry.gmidentity) then
activateGMIdentity();
return;
else
addIdentity(sParams, false);
end
end
Thoughts?
A small change to the id slash command handler function both fixes the bug and also allows you to use the /id command to activate the GM identity. I changed the function on line 18 of manager_gmidentity.lua as follows. Added code in blue:
function slashCommandHandlerId(sCommand, sParams)
if not User.isHost() then
return;
end
if string.upper(sParams) == string.upper(CampaignRegistry.gmidentity) then
activateGMIdentity();
return;
else
addIdentity(sParams, false);
end
end
Thoughts?