Quote:
Originally Posted by Keneth
After:
Code:
function calc_bonus() --ftag:bonus
if (Game.Random(1,100) <= tonumber(Logic.hero_lu_skill("alchemist"))*10) then
Logic.hero_add_item("mana_potion")
end
|
Awesome answer.
Would this add the item at the end of combat? ->
Code:
function calc_bonus() --ftag:bonus
if 1 then
Logic.hero_add_item("the_boots_that_i_miss_to_complete_the_knight_set")
end
Obviously i wll substitute the right name, after i look in item.txt. May i skip the "if 1 then" part?