Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > King's Bounty > King's Bounty: Crossworlds > Mods

Mods King's Bounty: Crossworlds Mods

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #23  
Old 05-30-2011, 12:51 PM
bladeking77 bladeking77 is offline
Approved Member
 
Join Date: Jun 2009
Posts: 82
Post

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 ). Search for these lines at 2 places:

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. It's not perfect as in one case (when I maxed all skills) my paladins had 53% physical resistance when they should only have 52%. And the bonuses can not be seen outside battle.
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.
Attached Files
File Type: zip arena.zip (33.7 KB, 14 views)

Last edited by bladeking77; 05-30-2011 at 01:07 PM.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:22 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.