Malibu Stacey
Active member
I've only seen it happen with adv1 as we only use adv1 in autoscend so adventure() may need to be tested similarly.
If your battleAction property is not set to "custom combat script", calling adv1 will attempt to run a combat using whatever battleAction is set to (which I believe defaults to "attack with weapon"). This seems counter-intuitive to the purpose of specifying a combat filter function or macro using the 3rd parameter.
If your battleAction property is not set to "custom combat script", calling adv1 will attempt to run a combat using whatever battleAction is set to (which I believe defaults to "attack with weapon"). This seems counter-intuitive to the purpose of specifying a combat filter function or macro using the 3rd parameter.
Code:
string my_combat_filter(int round, monster enemy, string text) {
return "item seal tooth";
}
set_property("battleAction", "attack with weapon");
adv1($location[The Spooky Forest], -1, my_combat_filter);
set_property("battleAction", "custom combat script");
adv1($location[The Spooky Forest], -1, my_combat_filter);