Feel free change anything, its just basic idea.
questions -
- what attack type is with bare hands ? (maybe application of unarmed skill means first to check if there are no weapons in champion hands ? )
- is this attack increasing by dexterity or on what damage depends
Code: Select all
defineSkill{
name = "unarmed_combat",
uiName = "Unarmed Combat",
priority = 20,
icon = 106,
description = "You are trained in the martial art. You are able to strike hard without any weapon. By increasing this skill, your Accuracy, Dexterity, evasion and chances of performing special attacks increase.",
traits = { [2] = "jab", [3] = "stun_kick", [5] = "five_point" },
-- each skill point increases accuracy, evasion and attack power by by 4 points and dexterity by 1 point
onComputeAccuracy = function(champion, weapon, attack, attackType, level)
return level * 4
end,
onRecomputeStats = function(champion, level)
champion:addStatModifier("evasion", level*4)
champion:addStatModifier("dexterity", level*1)
end,
TO SCRIPT - increase attack power with bare hands by 4 points for each level
}
Traits
Code: Select all
defineTrait{
name = "jab",
uiName = "Hard Punch",
icon = 94,
description = "You have chance to deal extra damage with your bare hands. ",
TO SCRIPT:
--each successful hit with hands have 60 % chance to deal extra damage (lets say equal to champion´s Dexterity or any other reasonable number) and consume 5 energy points. if not enough energy, just perform normal attack)
}
Code: Select all
defineTrait{
name = "stun_kick",
uiName = "Hard Kick",
icon = 94,
description = "You have chance to deal extra damage with your bare hands. ",
TO SCRIPT:
--each successful hit with hands have 20 % chance to stun the monster (if not immune against stun) and it consumes 10 energy. If not enough energy just perform normal attack
}
Code: Select all
defineTrait{
name = "five point",
uiName = "Five Point technique",
icon = 94,
description = "You have chance to perform five fast attacks in a row with your bare hands. ",
TO SCRIPT:
--each normal attack with hands have 30 % chance to chain four times (means five attacks alltogether),
-- conditional – each attack is consuming some amount of energy on each attack (lets say 5). Still have chance to do previous special attack inside this chain. if not enough energy than just stop the chain and do regular attack.
}