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: Armored Princess > Mods

Mods Armored Princess mods

Reply
 
Thread Tools Display Modes
  #1  
Old 01-15-2010, 06:42 AM
The Rider The Rider is offline
Approved Member
 
Join Date: Jun 2008
Posts: 76
Default

It is game random (1,100). Download again the file, I changed it (it was 1,1 at the beggining just to show how the mod works)
Reply With Quote
  #2  
Old 01-15-2010, 07:41 PM
SnowDream SnowDream is offline
Registered Member
 
Join Date: Jan 2010
Posts: 9
Default

Thanks. The mod is wonderful, however, occasionally I encountered situations where a fight is fought twice. For instance, when I fought a bear in Bola, I won, then the fight restarted with the rage and mana I accumulated from the bear fight. I am still fighting the same number of bears...

Is this an isolated error? I only encountered it once.
Reply With Quote
  #3  
Old 01-16-2010, 09:17 PM
The Rider The Rider is offline
Approved Member
 
Join Date: Jun 2008
Posts: 76
Default

I played the game three times (with the mod from the begining) and never encountered this one. But what the heck, more battles, more fun
Reply With Quote
  #4  
Old 01-17-2010, 09:35 AM
Mordris Mordris is offline
Registered Member
 
Join Date: Jan 2010
Posts: 4
Default

I installed the mod as you said, but I've been in like 10 battles and so far I've seen no runes. I also use the giftbag mod, so maybe it doesn't work because of that?
I'd really like some extra runes, so I hope there is a way to fix this.
Reply With Quote
  #5  
Old 01-17-2010, 05:51 PM
SnowDream SnowDream is offline
Registered Member
 
Join Date: Jan 2010
Posts: 9
Default

Well, it is a 3 to 4% chance... To see whether it works or not, open the mod file with winrar, open the one file with notepad, then search for rune.add. Look for the part that says game.rand (1,100)<=3, change that to <=100. You will get rune 100% of time.

I personally prefer to set the percentages to a little higher during normal play, to 30% or so, but that is primarily because the game is giving me all lv 1 units in shops.
Reply With Quote
  #6  
Old 01-17-2010, 06:52 PM
The Rider The Rider is offline
Approved Member
 
Join Date: Jun 2008
Posts: 76
Default

it doesnt work with KBMasterMod, because there is another arena.lua file in that mod. I am not sure if I can do this, because the KBMasterMod is made by another, but if you want to make it work do this:
1. Open KBMaster_2.2.2 file with winzip/winrar (in your data/mods directory)
2. in prescript 2.2 directory in the .kfs file open arena.lua (open it with notepad)
3. ctrl+g (or the command go) go to line 345
4. after function calc_bonus( fake_win ) --ftag:bonus insert this

local hero_class=Game.HSP_class()

if hero_class == 0 then

if (Game.Random(1,100) <= 3) then
Bonus.add("rune_might",2)
end
if (Game.Random(1,100) <= 3) then
Bonus.add("rune_mind",3)
end
if (Game.Random(1,100) <= 5) then
Bonus.add("rune_magic",4)
end
if (Game.Random(1,100) <= tonumber(Logic.hero_lu_skill("rage_control"))*10) then
if (Game.Random(1,100)<=50) then
Logic.hero_add_item("mana_potion",2)
else
Logic.hero_add_item("rage_potion",2)
end
end
elseif
hero_class==2 then
if (Game.Random(1,100) <= 5) then
Bonus.add("rune_might",4)
end
if (Game.Random(1,100) <= 3) then
Bonus.add("rune_mind",3)
end
if (Game.Random(1,100) <= 3) then
Bonus.add("rune_magic",2)
end
if (Game.Random(1,100) <= tonumber(Logic.hero_lu_skill("alchemist"))*10) then
if (Game.Random(1,100)<=50) then
Logic.hero_add_item("mana_potion",2)
else
Logic.hero_add_item("rage_potion",2)
end
end
elseif
hero_class== 1 then

if (Game.Random(1,100) <= 4) then
Bonus.add("rune_might",3)
end
if (Game.Random(1,100) <= 3) then
Bonus.add("rune_mind",3)
end
if (Game.Random(1,100) <= 4) then
Bonus.add("rune_magic",3)
end

if (Game.Random(1,100) <= tonumber(Logic.hero_lu_skill("holy_rage"))*10) then
if (Game.Random(1,100)<=50) then
Logic.hero_add_item("mana_potion",2)
else
Logic.hero_add_item("rage_potion",2)
end
end
end

5. save file and enjoy
Reply With Quote
  #7  
Old 01-18-2010, 06:59 AM
Mordris Mordris is offline
Registered Member
 
Join Date: Jan 2010
Posts: 4
Default

Thanks for your help guys, but I still have something to ask.
As I stated earlier, I use the giftbag mod/addon, and the arena.lua file is located in king's bounty folder---->sessions---->items_pack---->new_items--->scripts--->arena

Does is still interfere with the bonus rune mod? If so, I will do what you said, The Rider.
Reply With Quote
  #8  
Old 01-18-2010, 06:49 PM
Mordris Mordris is offline
Registered Member
 
Join Date: Jan 2010
Posts: 4
Default

I did that thing and, ironically, after my first battle I got two might runes, which were overlapping with the gold amount . So, 3% chance for each rune to pop up, or 3% chance for a type of rune?
I like the mod because of the extra runes, but I don't want this to make the game too easy, you know.
Reply With Quote
  #9  
Old 01-18-2010, 09:36 PM
adecoy95 adecoy95 is offline
Approved Member
 
Join Date: Jan 2010
Posts: 19
Default

i cant get this mod to work with the bonus pack, when i copy the text into the arena.lua in the item pack/new items/scripts folder, do i still need to have the original file in the mods folder? i did not have it in there.

also, i set the chance to 100% using the instructions above, and i could not get a single rune on a new game, an old game or anything

EDIT: DERP DE DERP

function calc_bonus( fake_win )

and function calc_bonus simple( fake_win ) are two different things! my mistake

Last edited by adecoy95; 01-18-2010 at 10:49 PM.
Reply With Quote
  #10  
Old 01-18-2010, 10:11 PM
The Rider The Rider is offline
Approved Member
 
Join Date: Jun 2008
Posts: 76
Default

Quote:
Originally Posted by Mordris View Post
I did that thing and, ironically, after my first battle I got two might runes, which were overlapping with the gold amount . So, 3% chance for each rune to pop up, or 3% chance for a type of rune?
I like the mod because of the extra runes, but I don't want this to make the game too easy, you know.
Yes, it is possible to get more than one type of runes in one battle. The chances are like this: you have 300 battles on impossible level (dont know about the other difficulties, I play always on impossible), 4%*300=12*3 runes = 36 mind runes if you are warrior and around 60 magic runes (warrior again) for the whole game. I dont think it is too much (this are 4-5 more skills)
Reply With Quote
Reply

Thread Tools
Display Modes

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:59 PM.


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