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

Reply
 
Thread Tools Display Modes
  #1  
Old 11-23-2010, 09:06 PM
Ancentre Ancentre is offline
Approved Member
 
Join Date: May 2010
Posts: 11
Default add stats at levelup

anyone know how to add mana and rage at levelup?

for attack, defense, intellect, it works by adding this line into logic_hero.lua after
Levelup.add( 0, "leadership", leadership*(level))
Levelup.add( 0, "attack", 1)

but i tried that for mana and rage, and it did not add mana or rage at levelup

anyone know how to change that? thanks
Reply With Quote
  #2  
Old 11-27-2010, 08:04 PM
MattCaspermeyer MattCaspermeyer is offline
Approved Member
 
Join Date: Aug 2010
Posts: 553
Post You might try...

Ancentre:

You might try looking at the skills that add rage and mana - I think it is SKILLS.LUA. These add it permanently and so that should be a good example.

Good luck!

Matt
Reply With Quote
  #3  
Old 11-28-2010, 12:04 AM
Ancentre Ancentre is offline
Approved Member
 
Join Date: May 2010
Posts: 11
Default it works!!! thanks matt

i took a look at the skill.lua
and i found
local cur_rage=Logic.hero_lu_item("rage","limit")
local cur_mana=Logic.hero_lu_item("mana","limit")
Logic.hero_lu_item("rage","limit",cur_rage+bonus)
Logic.hero_lu_item("mana","limit",cur_mana+bonus)

so i took those lines and pasted
local cur_rage=Logic.hero_lu_item("rage","limit")
local cur_mana=Logic.hero_lu_item("mana","limit")
under the levelup function

and
Logic.hero_lu_item("rage","limit",cur_rage+1)
Logic.hero_lu_item("mana","limit",cur_mana+1)
under if level<50
now, it adds 1 mana and rage everytime i levelup
thank you very much matt
Reply With Quote
  #4  
Old 04-24-2011, 03:13 AM
jawnTEM jawnTEM is offline
Registered Member
 
Join Date: Apr 2011
Posts: 3
Default

I too would like to know how to do this? Which file/folder is it in?
Reply With Quote
  #5  
Old 12-30-2011, 10:31 PM
Ancentre Ancentre is offline
Approved Member
 
Join Date: May 2010
Posts: 11
Default

its in hero.lua

just add the 4 lines of code under if level < 50

i think it might be 51 now, instead of 50 after the patching

should work, havent checked back in a while so gl
Reply With Quote
  #6  
Old 01-01-2012, 12:26 AM
Ancentre Ancentre is offline
Approved Member
 
Join Date: May 2010
Posts: 11
Default

sorry made a mistake its in
logic_hero.lua

local cur_rage=Logic.hero_lu_item("rage","limit")
local cur_mana=Logic.hero_lu_item("mana","limit")
Logic.hero_lu_item("rage","limit",cur_rage+1)
Logic.hero_lu_item("mana","limit",cur_mana+1)

add the above four lines under

function calc_levelup()

this should give u +1 to max mana and rage at lv up
Reply With Quote
Reply


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:58 AM.


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