Skill -
this skill should add + 3 damage for every level only against undead creatures (I will add traits = { "undead" }, to undead creatures (like mummy, skeleton etc...)
Code: Select all
defineSkill{
name = "undead_slayer",
uiName = "Undead Slayer",
priority = 20,
icon = 106,
description = "You are trained to fight undead creatures. You will gain + 3 damage against undead creatures for each point in this skill. 3rd skill level is giving you minor chance to kill lower undead with one blow and 5th point invested giving you the similar chance for almost any undead.",
traits = { [3] = "low_undead", [5] = "high_undead" },
-- definition please
-- on attack if creature trait is { "undead" } gain +3 damage for each point in this skill
--end,
}
as for the traits - it will again work based on creature trait - lower_undead and higher_undead which I will give to some creatures
Code: Select all
defineTrait{
name = "low_undead",
uiName = "Mummy Killer",
icon = 109,
description = "You have 10% chance to kill lower undead with one blow (mummy, skeleton archer)",
-- script definition please
-- in case creature trait is lower_undead character has 10% to kill it with one blow (could be solved even like: gain +100 dmg or something like that
--end,
}
defineTrait{
name = "high_undead",
uiName = "Vampire Killer",
icon = 109,
description = "You have 10% chance to kill any undead with one blow (mummy, skeleton archer, skeleton warrior, undead.",
-- script definition please
-- the same as previous, however checking also higher_undead trait on creature
-- end,
}
thanks for any help in advance