Hey guys!
So, I have a request for you, since my friend ChatGPT and I couldn't do it lol.
I would like each percentage in this monster table, when completing the attack, the monster would release a message, this for each percentage
monster.elements = {
{type = COMBAT_PHYSICALDAMAGE, percent = 30},
{type = COMBAT_DEATHDAMAGE, percent = 30},
{type = COMBAT_ENERGYDAMAGE, percent = 50},
{type = COMBAT_EARTHDAMAGE, percent = 40},
{type = COMBAT_ICEDAMAGE, percent = -10},
{type = COMBAT_HOLYDAMAGE, percent = -10}
}
Example:
If the monster has this percentage, {type = COMBAT_PHYSICALDAMAGE, percent = 30}, it will drop a message saying "this hurt me"
but if he has that percentage {type = COMBAT_PHYSICALDAMAGE, percent = 20}, it will drop a message saying "it almost killed me"
is it possible to do that?
So, I have a request for you, since my friend ChatGPT and I couldn't do it lol.
I would like each percentage in this monster table, when completing the attack, the monster would release a message, this for each percentage
monster.elements = {
{type = COMBAT_PHYSICALDAMAGE, percent = 30},
{type = COMBAT_DEATHDAMAGE, percent = 30},
{type = COMBAT_ENERGYDAMAGE, percent = 50},
{type = COMBAT_EARTHDAMAGE, percent = 40},
{type = COMBAT_ICEDAMAGE, percent = -10},
{type = COMBAT_HOLYDAMAGE, percent = -10}
}
Example:
If the monster has this percentage, {type = COMBAT_PHYSICALDAMAGE, percent = 30}, it will drop a message saying "this hurt me"
but if he has that percentage {type = COMBAT_PHYSICALDAMAGE, percent = 20}, it will drop a message saying "it almost killed me"
is it possible to do that?