Results 1 to 5 of 5

Thread: Combat action filter question

  1. #1
    Senior Member
    Join Date
    Dec 2013
    Posts
    388

    Default Combat action filter question

    So I'm using a combat action filter to handle the New-You saw sharpening task, and I'm running into a unique problem. Whenever my combat action filter returns an item from my ccs that starts with "consult", mafia fails to run the consult script. Is this a bug, or is there a good workaround?

  2. #2
    Senior Member
    Join Date
    Feb 2010
    Posts
    851

    Default

    It was reported as fixed in r17500. Here's the thread. Perhaps it broke.

  3. #3
    Senior Member
    Join Date
    Dec 2013
    Posts
    388

    Default

    Not quite the same thing. Allow me to provide some examples. The code is
    Code:
    string NewYouCCS (int r, monster m, string t){
    	if (m != mon){
    		return get_ccs_action(r);
    	}
    	else if (r == 0){
    		return "skill " + sk.to_string();
    	}
    	else{
    		return get_ccs_action(r-1);
    	}
    }
    
    adventure(1, loc, "NewYouCCS");
    The relevant CCS code is
    Code:
    [ default ]
    consult extractCCS.ash
    consult wham.ash
    When I run it like this, I just get an error.

  4. #4
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,680

    Default

    Is round 0 still correct, or should get_ccs_action start at 1 now?

  5. #5
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,041

    Default

    TBD. I'll study this more this weekend.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

Posting Permissions

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