1. #1

    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.


  2. #2
    I would look at the code for the Quick edge as that already does what you want for cards < 6.

  3. #3

    function onInit()
    	registerAbilityHandler("quick", Interface.getString("edge_quick"), quickHandler)
    function quickHandler(winGroup, oCard, fDraw)
    	if winGroup.isIncapacitated() then
    		return oCard
    	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
    	return redrawUntil(winGroup, oCard, fDraw, sAbility, fChecker)
    I would copy this or the level headed function to get what you want and there might be other scripts I can't find; I'm not the expert Ikael is .
    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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Log in

Log in