![]() |
#231
|
|||
|
|||
![]()
@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:
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:
|
#232
|
|||
|
|||
![]()
Not working
Code:
Attack.act_apply_dmgmin_spell( "magic", 0, 0, power, duration, false) Attack.act_apply_dmgmax_spell( "magic", 0, 0, power, duration, false) Attack.act_apply_par_spell( "defense", 0, 0, -penalty, duration, false) |
#233
|
|||
|
|||
![]() Quote:
So change dmgmin and dmgmax to just one line: Code:
Attack.act_apply_dmg_spell( "magic", 0, 0, power, duration, false) Code:
for i = 1, table.getn( resistances ) do local min_damage_current, min_damage_base = Attack.act_get_dmg_min( target, resistances[ i ] ) if min_damage_base > 0 then local max_damage_current, max_damage_base = Attack.act_get_dmg_max( target, resistances[ i ] ) local min_damage_inc = math.max( math.floor( math.abs( min_damage_base * diff_k ) ), min_stat_inc ) * sign_diff_k local max_damage_inc = math.max( math.floor( math.abs( max_damage_base * diff_k ) ), min_stat_inc ) * sign_diff_k local new_min_damage = min_damage_current + min_damage_inc local new_max_damage = max_damage_current + max_damage_inc if new_min_damage < 1 then new_min_damage = min_damage_current end if new_max_damage < 1 then new_max_damage = max_damage_current end if new_min_damage ~= min_damage_current then Attack.act_apply_dmgmin_spell( resistances[ i ], min_damage_inc, 0, 0, -100, false ) end if new_max_damage ~= max_damage_current then Attack.act_apply_dmgmax_spell( resistances[ i ], max_damage_inc, 0, 0, -100, false ) end end end Code:
for i = 1, table.getn( resistances ) do . . . end Code:
. . . local min_damage_current, min_damage_base = Attack.act_get_dmg_min( target, resistances[ i ] ) if min_damage_base > 0 then . . . end Code:
. . . local max_damage_current, max_damage_base = Attack.act_get_dmg_max( target, resistances[ i ] ) local min_damage_inc = math.max( math.floor( math.abs( min_damage_base * diff_k ) ), min_stat_inc ) * sign_diff_k local max_damage_inc = math.max( math.floor( math.abs( max_damage_base * diff_k ) ), min_stat_inc ) * sign_diff_k local new_min_damage = min_damage_current + min_damage_inc local new_max_damage = max_damage_current + max_damage_inc . . . Code:
. . . if new_min_damage < 1 then new_min_damage = min_damage_current end if new_max_damage < 1 then new_max_damage = max_damage_current end . . . Code:
. . . if new_min_damage ~= min_damage_current then Attack.act_apply_dmgmin_spell( resistances[ i ], min_damage_inc, 0, 0, -100, false ) end if new_max_damage ~= max_damage_current then Attack.act_apply_dmgmax_spell( resistances[ i ], max_damage_inc, 0, 0, -100, false ) end . . . Good luck! ![]() /C\/C\ Last edited by MattCaspermeyer; 04-03-2012 at 05:48 AM. |
#234
|
|||
|
|||
![]()
Oops, I thought I posted this but I hadn't.
I'm going to be moving homes in several weeks and I haven't had time to work on the translation. I'll be able to continue the translation in around late next month and hopefully have something out by then, but I haven't gotten anything done during March and can't this month because of moving and work so not much progress. |
#235
|
|||
|
|||
![]()
Hi everyone.I'm new here,and I just installed red sands 1.6 full.exe file,without installing anything else.I'm only at the first island,and everything is in english so far.Does this file include the translation,or do I have to install anything else?
Great work to everyone who translated this great mod from russian,especially fillyra |
#236
|
|||
|
|||
![]()
I just wanna say a word.
|
#237
|
|||
|
|||
![]()
Hie, every1!
New patch is on the way, it's gona be awesome, but... I need an artist to draw few icons and make simple retexture for few units ^_^ If interested - drop by. |
#238
|
|||
|
|||
![]() Quote:
From this place I want to thank with all which they worked near creating "red sands". I finished translating on Polish some 2 weeks ago and as yet testing and doing correction in my translating. Critical error as yet it hasn't. I found the only small the mistakes graphic (for example the ice thorn - Ледяная Терния) and this, that after choice of new skill the Asmadeo when we choose the option "finish the conversation" conversation is not finish. I thank once again and I wish persistence near creating new patch. I enjoy that Russian forum already up. I have a problem. Dragon's skill from file "rus_!!!exp_pet_hint": spmi_thr_ball_txt=^int_pet_tH0^Дракончик демонстрирует чудеса магии, призывая шаровую молнию на поле боя. Молния преследует и атакует врагов, нанося урон магией, равный [damage2] общего здоровья отряда. Есть шанс [shoсk] шокировать цель. Зарядов: [charges].[rest][rage]<gen=gen_pet_exp_hint> In game don't display chance to shock probability, number of charges and turn rest. Only damage is correctly show. How it fix? When I remove "Есть шанс [shoсk] шокировать цель." with file remaining parameters be displayed correctly. Problem is with parameter [shock]. Last edited by Krzysiek; 04-28-2012 at 01:01 PM. |
#239
|
|||
|
|||
![]()
Hi everybody.
I would like to add to Red Sands creatures from legendary warriors mod. I translated files from localization folder on Polish language and I canceled unwanted changes from the version RSE. I don't know how to add new creatures to shops and to army for defeating. I know that files responsible for it are in the folder locs, but I don't know how to change them.Whether it is possible to do it with the help notepad? What are numbers responsible by creatures in these files for? Other question: are there appearing in the English version Crossworlds errors with showing statistics of the pet dragon's ability "lightning_ball "? How to change the maximum level reached by the pet dragon (> 60) so he can to a maximum develop all his abilities? Is it any mod or does somebody know how to change it? From above I am thanking for help |
#240
|
|||
|
|||
![]()
@Krzysiek
1) first for adding new creatures in mod i cant help you because i tried to add champion from `adventure mod` but failed since you need to copy unit files 4-5 of them, but also need to edit some other files and add text strings so new game include those units in it. 2) lightning ball works from early lvls with no problem, when you get that skill there are no errors in it`s text description. But after lvling it to some point it just start showing skill text without numeric value for dmg/shock/rest/rage but exp gain from skill is correct all time. So it`s bug , but i have idea how to fix it. Open winrar folder game\sessions\addon\loc_ses.kfs find eng_pet.lng file and set Code:
// ball lvu_ball_name=^pet_tM^[ball] lvu_ball_level1_info=^int_pet_levelup_t^[new]Dragon calls lightning, attacking the enemy! <br>[d][kill] [s][dmgMMinNew]-[dmgMMaxNew]% [/s][troop] [shock] [s][shockNew]%[/s]. lvu_ball_attack1_info=^int_pet_levelup_t^[attackCap][kill] [dmgMMinNew]-[dmgMMaxNew]%. [shock] [shockNew]%. [rage] [rageNew]^[kill] [dmgMMinOld]-[dmgMMaxOld]%. [shock] [shockOld]%. [rage] [rageOld]. lvu_ball_attack2_info=^int_pet_levelup_t^[attackCap][kill] [dmgMMinNew]-[dmgMMaxNew]%. [shock] [shockNew]%. [rage] [rageNew]^[addrest]^[kill] [dmgMMinOld]-[dmgMMaxOld]%. [shock] [shockOld]%. [rage] [rageOld]. lvu_ball_attack3_info=^int_pet_levelup_t^[attackCap][kill] [dmgMMinNew]-[dmgMMaxNew]%. [shock] [shockNew]%. [rage] [rageNew]^[kill] [dmgMMinOld]-[dmgMMaxOld]%. [shock] [shockOld]%. [rage] [rageOld]. lvu_ball_attack4_info=^int_pet_levelup_t^[attackCap][kill] [dmgMMinNew]-[dmgMMaxNew]%. [shock] [shockNew]%. [rage] [rageNew]^[addrest]^[kill] [dmgMMinOld]-[dmgMMaxOld]%. [shock] [shockOld]%. [rage] [rageOld]. lvu_ball_paralyse1_info=^int_pet_levelup_t^[shockCap][kill] [dmgMMinNew]-[dmgMMaxNew]%. [shock] [shockNew]%. [rage] [rageNew]^[kill] [dmgMMinOld]-[dmgMMaxOld]%. [shock] [shockOld]%. [rage] [rageOld]. lvu_ball_paralyse2_info=^int_pet_levelup_t^[shockCap][kill] [dmgMMinNew]-[dmgMMaxNew]%. [shock] [shockNew]%. [rage] [rageNew]^[addrest]^[kill] [dmgMMinOld]-[dmgMMaxOld]%. [shock] [shockOld]%. [rage] [rageOld]. lvu_ball_paralyse3_info=^int_pet_levelup_t^[shockCap][kill] [dmgMMinNew]-[dmgMMaxNew]%. [shock] [shockNew]%. [rage] [rageNew]^[kill] [dmgMMinOld]-[dmgMMaxOld]%. [shock] [shockOld]%. [rage] [rageOld]. lvu_ball_paralyse4_info=^int_pet_levelup_t^[shockCap][kill] [dmgMMinNew]-[dmgMMaxNew]%. [shock] [shockNew]%. [rage] [rageNew]^[addrest]^[kill] [dmgMMinOld]-[dmgMMaxOld]%. [shock] [shockOld]%. [rage] [rageOld]. 3) for adding more lvl`s for pet you need couple things - find arena.txt file in config folder of red sands mod and in string : Code:
exptable=30,60,100,160,230,310,410,530,660,810,980,1170,1380,1610,1860,2140,2440,2770,3120,3500,3910,4350,4820,5320,5850,6410,7010,7640,8310,9010,9750,10530,11350,12200,13100,14040,15020,16040,17110,18220,19380,20580,21830,23130,24480,25880,27330,28840,30400,32010,34070,37000,40000,43000,47000,52000,57000,63000,70000 Good luck ![]() Last edited by Fatt_Shade; 05-06-2012 at 11:26 PM. |
![]() |
|
|