thoughts on a 'Frozen' condition
Posted: Tue Aug 16, 2016 2:24 pm
Hey All,
Firstly, apologies for moaning about us having to use Paralyzed to mimic the same effect in other custom conditions
I believe I have made some progress here... (small steps
)
Party hooks I have involved so far
The condition definition is irrelevant here, just aiming for that Paralyzed functionality (ie - cant attack or perform actions etc)
(happy to share the condition def, its pretty unrefined atm though)
I might be tripped up by unarmed attacks though... which dont call party hooks
Im uploading a video of the condition now, will post the link once its uploaded... pic for now
video...
https://youtu.be/HLDVgU9_YXI
thoughts.....
Firstly, apologies for moaning about us having to use Paralyzed to mimic the same effect in other custom conditions
I believe I have made some progress here... (small steps

Party hooks I have involved so far
SpoilerShow
Code: Select all
onDrawAttackPanel = function(self, champion, g, x, y, scaleX, scaleY, translationX, translationY)
if champion:hasCondition("frozen") then
g.color(30,100,300) --not sure exactly how to mess with colours yet
champion:showAttackResult("", "ChampionConditionOverlay")
champion:showAttackResult("Frozen", "SpellNoEnergy")
end
end,
onAttack = function(self, champion, action, slot)
if champion:hasCondition("frozen") then
return false
end
end,
onClickItemSlot = function(self, champion, container, slot, button)
if slot and (button == 0 or button == 1) then
if champion then
if champion:hasCondition("frozen") then
return false
end
end
end
end
(happy to share the condition def, its pretty unrefined atm though)
I might be tripped up by unarmed attacks though... which dont call party hooks

Im uploading a video of the condition now, will post the link once its uploaded... pic for now
SpoilerShow

https://youtu.be/HLDVgU9_YXI
thoughts.....