![]() |
#23
|
|||
|
|||
![]()
About the castle. Everything should work fine. Are you sure you copied all the necessary files. The files you need are: all .act, .chat, eng_chat..., .qst and maybe .lu, and of course all .loc files related to debir (and maybe some other).
I just checked again, everything works as intended. If you are sure that you copied all the necessary files, specify your problem further, so I could solve it easier. ![]() For crit% and res%, look at the arena.lua I attached (it's actually a .rar file I renamed to .zip so I could attach it ![]() local defenseb=Logic.hero_lu_item("defense","count") defenseb = defenseb/5 local attackb=Logic.hero_lu_item("attack","count") attackb = attackb/5 if defenseb > 0 then for a=1, Attack.act_count()-1 do if Attack.act_ally(a) then local resistp = Attack.act_get_res(a,"physical") Attack.act_attach_modificator_res(a, "physical", "scp", defenseb, 0, 0, -100, false, 0, true) local resisto = Attack.act_get_res(a,"poison") Attack.act_attach_modificator_res(a, "poison", "sco", defenseb, 0, 0, -100, false, 0, true) local resistm = Attack.act_get_res(a,"magic") Attack.act_attach_modificator_res(a, "magic", "scm", defenseb, 0, 0, -100, false, 0, true) local resistf = Attack.act_get_res(a,"fire") Attack.act_attach_modificator_res(a, "fire", "scf", defenseb, 0, 0, -100, false, 0, true) local resista = Attack.act_get_res(a,"astral") Attack.act_attach_modificator_res(a, "astral", "sca", defenseb, 0, 0, -100, false, 0, true) end end end if attackb > 0 then for a=1, Attack.act_count()-1 do if Attack.act_ally(a) then Attack.act_attach_modificator(a, "krit", "sck", attackb, 0, 0, -100, false, 0, true) end end end If you stare at them for long enough, you'll understand what each line does. ![]() However, it's a good start. And don't forget to note in eng_hero.lng that the hero will gain bonuses for increasing her attack/defense. ![]() Last edited by bladeking77; 05-30-2011 at 01:07 PM. |
|
|