-
November 3rd, 2019, 00:41 #1
- Join Date
- Apr 2009
- Posts
- 48
Effect keyword for initiative cards?
Hey all (but mostly Ikael)...
Has an effect keyword for initiative cards been implemented? I'd like to create a custom Edge that essentially redraws until the character gets a card greater than (whatever).
Would love to hear if anyone has a workaround besides manually redrawing every turn.
Thanks!
-CIH
-
November 3rd, 2019, 01:55 #2
I would look at the code for the Quick edge as that already does what you want for cards < 6.
-
November 3rd, 2019, 01:06 #3
scripts/manager_initiative.lua
Code:function onInit() ... registerAbilityHandler("quick", Interface.getString("edge_quick"), quickHandler) ...
Code:function quickHandler(winGroup, oCard, fDraw) if winGroup.isIncapacitated() then return oCard end local sEdge = Interface.getString("edge_quick") local sAbility = Interface.getString("edge_x_edge"):format(sEdge) local fChecker = function(oCard) return oCard.getValue().compareTo(CardLib.Value.five) <= 0 end return redrawUntil(winGroup, oCard, fDraw, sAbility, fChecker) end
Last edited by Eru the One; November 3rd, 2019 at 01:19.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks