MadBeardMan
August 8th, 2019, 15:11
Afternoon Folks,
One thing I've noticed in my Traveller ruleset is that when damage is applied to an NPC, both the players and GM get the same message. This message it something like DAMAGE[5] -> [to TEST_NPC][ARMOUR 3][ENDURANCE reduced to 3]
Now that's ace for the GM, but the players should see DAMAGE [5] -> [to TEST_NPC][Armour reduced damage]
It sends the message to the Chat Window via:
local msgShort = {font = "msgfont"};
local msgLong = {font = "msgfont"};
if sDamageType == "Recovery" then
msgShort.icon = "roll_heal";
msgLong.icon = "roll_heal";
elseif sDamageType == "Heal" then
msgShort.icon = "roll_heal";
msgLong.icon = "roll_heal";
else
msgShort.icon = "roll_damage";
msgLong.icon = "roll_damage";
end
msgShort.text = sDamageType .. " ->";
msgLong.text = sDamageType .. " [" .. sTotal .. "] ->";
if rTarget then
msgShort.text = msgShort.text .. " [to " .. rTarget.sName .. "]";
msgLong.text = msgLong.text .. " [to " .. rTarget.sName .. "]";
end
if nArmourProtection > 0 then
msgShort.text = msgShort.text .. " [ARMOUR " .. nArmourProtection .. "]";
msgLong.text = msgLong.text .. " [ARMOUR " .. nArmourProtection .. "]";
end
if sExtraResult and sExtraResult ~= "" then
msgLong.text = msgLong.text .. " " .. sExtraResult;
end
ActionsManager.messageResult(bSecret, rSource, rTarget, msgLong, msgShort);
I'm going to dig later, but this is bugging me whilst I focus on Animal hits.
Cheers,
MBM
One thing I've noticed in my Traveller ruleset is that when damage is applied to an NPC, both the players and GM get the same message. This message it something like DAMAGE[5] -> [to TEST_NPC][ARMOUR 3][ENDURANCE reduced to 3]
Now that's ace for the GM, but the players should see DAMAGE [5] -> [to TEST_NPC][Armour reduced damage]
It sends the message to the Chat Window via:
local msgShort = {font = "msgfont"};
local msgLong = {font = "msgfont"};
if sDamageType == "Recovery" then
msgShort.icon = "roll_heal";
msgLong.icon = "roll_heal";
elseif sDamageType == "Heal" then
msgShort.icon = "roll_heal";
msgLong.icon = "roll_heal";
else
msgShort.icon = "roll_damage";
msgLong.icon = "roll_damage";
end
msgShort.text = sDamageType .. " ->";
msgLong.text = sDamageType .. " [" .. sTotal .. "] ->";
if rTarget then
msgShort.text = msgShort.text .. " [to " .. rTarget.sName .. "]";
msgLong.text = msgLong.text .. " [to " .. rTarget.sName .. "]";
end
if nArmourProtection > 0 then
msgShort.text = msgShort.text .. " [ARMOUR " .. nArmourProtection .. "]";
msgLong.text = msgLong.text .. " [ARMOUR " .. nArmourProtection .. "]";
end
if sExtraResult and sExtraResult ~= "" then
msgLong.text = msgLong.text .. " " .. sExtraResult;
end
ActionsManager.messageResult(bSecret, rSource, rTarget, msgLong, msgShort);
I'm going to dig later, but this is bugging me whilst I focus on Animal hits.
Cheers,
MBM