![]() |
|
|||||||
| Adventure mode All you want to know about adventure mode (may contain SPOILERS) |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Quote:
http://forum.1cpublishing.eu/showthr...russian&page=6 to BobbRobb: 1. shot Rage Spirits animation mod_164_eng_anim_spirit.zip mod_16b7_eng_anim_spirit.zip 2. weak (very weak, weak, slightly weaker) enemies do not attack mod_164_eng_armywalk.zip mod_16b7_eng_armywalk.zip 3. At the Warrior depending on level of ability "Rage" is chance (10 %, 20 %, 30 %) to receive a rage potion after fight. At the Mage depending on level of ability "Alchemist" is chance (10 %, 20 %, 30 %) to receive a mana potion after fight. mod_164_eng_bonus.zip mod_16b7_eng_bonus.zip 4. Camera range increased from 18 to 32 mod_164_eng_camera.zip mod_16b7_eng_camera.zip |
|
#2
|
|||
|
|||
|
Hrm, I'm not completely certain if arena.lua was changed in the latest patch. But it should be fairly easy to copy the functions and make a new version of the file just in case.
Actually, you can probably do this yourself open arena.lua (found in ses.kfs) with a text editor and search for "calc_bonus()" then add the code in the next line like this: Before: Code:
function calc_bonus() --ftag:bonus local enemyHeroK = 1.5 + Game.Config( "enemy_hero_money_exp_bonus_k") * Logic.enemy_hero_level() if Logic.enemy_hero_level() == 0 then enemyHeroK = 1 end Code:
function calc_bonus() --ftag:bonus
if (Game.Random(1,100) <= tonumber(Logic.hero_lu_skill("alchemist"))*10) then
Logic.hero_add_item("mana_potion")
end
if (Game.Random(1,100) <= tonumber(Logic.hero_lu_skill("rage"))*10) then
Logic.hero_add_item("rage_potion")
end
local enemyHeroK = 1.5 + Game.Config( "enemy_hero_money_exp_bonus_k") * Logic.enemy_hero_level()
if Logic.enemy_hero_level() == 0 then enemyHeroK = 1 end
Last edited by Keneth; 12-01-2008 at 10:29 PM. |
|
#3
|
|||
|
|||
|
Quote:
Would this add the item at the end of combat? -> Code:
function calc_bonus() --ftag:bonus
if 1 then
Logic.hero_add_item("the_boots_that_i_miss_to_complete_the_knight_set")
end
|
|
#4
|
|||
|
|||
|
I've never worked with Lua but I'm pretty sure that if statements are unnecessary unless you want a condition. Hence all you need to add is the call to Logic.hero_add_item() function (end is part of the if-then-else statement and is used instead of brackets to end a block so you don't need it either).
|
![]() |
|
|