#11
|
|||
|
|||
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. |
#12
|
||||
|
||||
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 |
#13
|
||||
|
||||
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. |
#14
|
|||
|
|||
Quote:
Code:
Attack.atom_spawn(target, pause, "effect_stun", 0, true) |
#15
|
||||
|
||||
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. |
#16
|
||||
|
||||
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. |
#17
|
|||
|
|||
Great Job - Don't Forget the LUA Library
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\ |
#18
|
|||
|
|||
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. |
#19
|
||||
|
||||
Quote:
@Loopy, both of those are documented in the bug thread along with explanations. Check it out. |
#20
|
||||
|
||||
Up next - 1. Does anyone have ideas of where to even begin to fix the Crystal Collector bug? That one is really cramping my style. Yeah, I know I'm only missing out on a few points of intellect, but I know if I start spending my crystals it will be ages before I catch up.
2. I've never seen my alchemist or my engineer mix more than one bottle when using their remix ability. Here's what the code says (line 3026, unit_special_attacks.lua): Code:
-- *********************************************** -- Ñîçäàíèå Çåëèé/Ãðàíàò (Àëõèìèê, Èíæåíåð) -- *********************************************** function special_craft_attack() local charge = 1 if Attack.act_human(0) then if Attack.act_name(0) == "alchemist" then if Logic.hero_lu_item_on_body("alchemist_toolkit") then if 10 >= Game.CurLocRand(1, 100) then charge = charge + 1 end end end end local animation = Attack.get_custom_param("animation") Attack.act_aseq(0, animation) local dmgts = Attack.aseq_time(0, "x") local name = Attack.get_custom_param("craft") local craft_name = "craft_"..name Attack.act_enable_attack(0, craft_name, false) Attack.act_enable_attack(0, name, true) Attack.act_charge(0, charge, name) local size = Attack.act_size(0) if Attack.act_size(0)> 2 then size = 2 end Attack.log(0.5 + dmgts, "add_blog_chemistry_crafting_success_"..tostring(charge)..tostring(size), "name", blog_side_unit(0, 0), "special", charge) return true end Last edited by camelotcrusade; 10-31-2012 at 06:03 AM. |
|
|