Combat action filter question

digitrev

Member
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?
 

digitrev

Member
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.
 
Top