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
  #16  
Old 09-09-2011, 12:22 AM
Rudi Rudi is offline
Approved Member
 
Join Date: Dec 2009
Posts: 9
Default % hp instead of fixed bonus

I made a little modification in the exp_system.lua
Code:
local maxhp = Attack.act_get_par(attacker,"health") 
Attack.act_attach_modificator(attacker,"health","expa_health_"..tostring(chp_health),maxhp*chp_health*expa_hp_par*0.01,0,0,duration,false)
it works well enough on small numbers but on larger bonuses for your units it gives a grater bonus than supposed to. While in tactics mode or before summoning Asmodeo/moving units the current hp is calculated correctly but after the first move it goes a few points up. This must be some kind of unit conversion or whatnot issue. Anybody more experienced feel welcome to explain.
Also I can post screens showing the matter clearly if needed
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 11:43 AM.


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