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
  #11  
Old 03-31-2012, 02:24 PM
MattCaspermeyer MattCaspermeyer is offline
Approved Member
 
Join Date: Aug 2010
Posts: 553
Exclamation Easy Fix

@Fatt_Shade:

As it turns out, it is implemented as Percent of Base in both TL and AP so the developers intended for it to work this way, I guess.

Nonetheless, the change is easy:
  1. Search for special_battle_mage_attack in SPECIAL_ATTACKS.LUA.
  2. Look for the lines that start with Attack.act_apply_dmg... there will be too of them within this function, one for min and one for max. Note that the line goes like this: Attack.act_apply_dmgmin_spell( "magic", 0, power, 0, duration, false ), for min damage.
  3. Change both min and max like this: Attack.act_apply_dmgmin_spell( "magic", 0, 0, power, duration, false ), note how power has essentially swapped with the 0 to the right of it in the original code. Do the same thing to max and save and close and you'll get want you want.

By the way, for most functions that work on a statistic, the order is absolute percent increase, percent of base, and then percent of current. See http://translate.googleusercontent.c...LwAowdEODmh0mw as a reference for the King's Bounty LUA Attack library.

Good luck!

/C\/C\

Quote:
Originally Posted by Fatt_Shade View Post
I noticed this problem before, but now in Red sands mod it`s even more
If you use archmage and get him to higher lvl, and some bonus dmg on stats in battle during battle trance he will get 100% dmg but only from his basic 5-8, not including bonus from lvlup. If you get some archmage_staff (or 2, i tried using 3 with warrior just to check) my archmage had 3x20% bonus dmg from staff and +18% from lvl`s so in battle dmg was 9-14. When i use battle trance he should get +100% dmg from but instead 18-28, i got 14-22, so +(5-8 ) got only his basic dmg without any item/lvlup bonuses.
On other side if you use ogre and get his attack from 47 basic, to 100 with lvlup/frenzy/items and use ogre rage, he`ll get 100% bonus attack from his current, not basic attack.
My question for you ppl is, how to make archmage get same bonus as ogre, based on his actual dmg in game, not basic from archmage.txt Same prob happens if you use some +dmg item (poison dagger/whip of ishara) archmage will get dmg from those items, but in battle trance will get bonus from his basic dmg 5-8
Try checking in scripts special_attacks.lua file and compare Battle mage, and Ogre rage part of file, to figure out how to give same bonus to archmage as ogre have.
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:15 PM.


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