![]() |
|
|||||||
| King`s Bounty: Warriors of the North Next game in the award-winning King’s Bounty series |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Quote:
Code:
Attack.atom_spawn(act, tend, "magic_diversion", Attack.angleto(act)) Hmm, I'm not sure if the code tag supports colours, but I guess I can try it and see. edit: If I'd looked at your first post, I'd have realized that it does. Last edited by Bhruic; 10-30-2012 at 10:29 PM. |
|
#2
|
||||
|
||||
|
That looks great, thanks for using those colors.
Okay so I hunted for the confused effect but then i realized since it only applies on the world map it might bug out if I used it in combat. So instead I found Stun, that would at least indicate "this unit isn't going to do anything this turn." Here it is: Code:
-- ***********************************************
-- * Stun
-- ***********************************************
function effect_stun_attack(target, pause, duration, log_message)
--local target = Attack.get_target()
if pause == nil then
pause = 1
end
if target == nil then
target = Attack.get_target()
end
if duration == nil then
duration = tonumber(Logic.obj_par("effect_stun", "duration"))
end
if (Attack.act_ally(target) or Attack.act_enemy(target)) and not Attack.act_feature(target, "boss,pawn") then
--local duration = tonumber(Attack.get_custom_param("duration"))
duration = correct_spell_duration (duration, target, true)
local inbonus = tonumber(Logic.obj_par("effect_stun", "inbonus"))
local speedbonus = tonumber(Logic.obj_par("effect_stun", "speedbonus"))
-- local speed = Attack.act_get_par(target, "speed")
-- local change_speed = speed - speedbonus
Attack.act_del_spell(target,"effect_stun")
Attack.act_apply_spell_begin( target, "effect_stun", duration, false )
Attack.act_apply_par_spell( "disreload", 10, 0, 0, duration, false)
Attack.act_apply_par_spell( "disspec", 10, 0, 0, duration, false)
Attack.act_apply_par_spell( "initiative", -inbonus, 0, 0, duration, false)
Attack.act_apply_par_spell( "speed", -speedbonus , 0, 0, duration, false)
Attack.act_apply_spell_end()
Attack.atom_spawn(target, pause, "effect_stun", 0, true)
-- log_message = -1 - íåò ëîãà, 0 - ïðèïèñûâàåì ê äàìàãó, 1 - âûâîäèì îòäåëüíîé ñòðîêîé
if log_message == nil then
log_message = 0
end
if log_message == 0 then
Attack.act_damage_addlog(target, "add_blog_stun_")
elseif log_message == 1 then
if Attack.act_size(target) > 1 then
Attack.log(pause, "add_blog_stun_2", "targets", blog_side_unit(target, 1))
else
Attack.log(pause, "add_blog_stun_1", "target", blog_side_unit(target, 1))
end
end
end
return true
end
|
|
#3
|
||||
|
||||
|
Code:
Attack.act_del_spell(target,"effect_stun")
Attack.act_apply_spell_begin( target, "effect_stun", duration, false )
Attack.act_apply_par_spell( "disreload", 10, 0, 0, duration, false)
Attack.act_apply_par_spell( "disspec", 10, 0, 0, duration, false)
Attack.act_apply_par_spell( "initiative", -inbonus, 0, 0, duration, false)
Attack.act_apply_par_spell( "speed", -speedbonus , 0, 0, duration, false)
Attack.act_apply_spell_end()
Attack.atom_spawn(target, pause, "effect_stun", 0, true)
I wouldn't mind a few longer than normal spell effects if they'd just queue up as I played. Hmm. |
|
#4
|
|||
|
|||
|
Quote:
Code:
Attack.atom_spawn(target, pause, "effect_stun", 0, true) |
|
#5
|
||||
|
||||
|
Omg you guys, it worked! I feel like a super modder now...
All I had to do was replace "magic_diversion" with "effect_stun." Worked great. No pause or anything, it just made the noise, showed the stun effect and the Skeleton lost his action points. Try it out if you want. Manual Method In addon_arena.lua, line 1010. Replace: Code:
Attack.atom_spawn(act, tend, "magic_diversion", Attack.angleto(act)) Code:
Attack.atom_spawn(act, tend, "effect_stun", Attack.angleto(act)) Last edited by camelotcrusade; 11-05-2012 at 08:30 PM. Reason: Removed attachment and put in redirect. |
|
#6
|
||||
|
||||
|
High five team! (not like I did anything)
This is, by the way, why being a software developer can sometimes make you feel like a freaking wizard. You mere mortals and your inability to change graphical effects? Hah! You disgust me. |
|
#7
|
|||
|
|||
|
Hey, great job guys!
As a modder, it is neat to see people changing the game for the better. Don't forget, though, about the LUA library mentioned here: http://forum.1cpublishing.eu/showpos...97&postcount=4 You'll need to use a translater to convert the text to English unless you understand Russion (Google seems to work okay), but you should be able to discern the input arguments from there. Also feel free to ask me if the LUA library doesn't answer your questions since I've dabbled (and am dabbling) in the LUA library quite a bit... /C\/C\ |
|
#8
|
|||
|
|||
|
Warrior Maidens have two broken abilities.
Call of Valhalla seems to not work at all or only work 1 round in the past, and with multiple stacks of maidens it almost never works past the first time. Gift of Odin seems to not work at all. |
|
#9
|
||||
|
||||
|
Quote:
@Loopy, both of those are documented in the bug thread along with explanations. Check it out. |
![]() |
|
|