SCRIPT_NAME="arrow";
SCRIPT_DESC = "arrowReport";
SCRIPT_OFF = false;
int resists = 0;
void bootup(){
triggerManager.newTrigger("arrowReportTrig",
"^You see from the wound your shot did ([ A-ZDEVa-zde',._-]+) ([ A-ZDEVa-zde',._-]+) damage.$",
"$"+SCRIPT_NAME+".arrowReportTrig");
}
void arrowReportTrig(){
if(vars.get(1).matches("full")){
resists = 0;
}
else if(vars.get(1).matches("a lot of")){
resists = 25;
}
else if(vars.get(1).matches("some")){
resists = 50;
}
else if(vars.get(1).matches("just a bit of")){
resists = 75;
}
else if(vars.get(1).matches("almost no")){
resists = 100;
}
clientGUI.doCommand("party report resists "+vars.get(2)+" "+resists+"%");
}