Added trigedit %actor.wait% variable (thanks WhiskyTest)

This commit is contained in:
tb4m11d 2016-02-07 07:41:01 +01:00 committed by wyld-sw
parent acfc90566d
commit 3782fc221c

View file

@ -1112,6 +1112,17 @@ void find_replacement(void *go, struct script_data *sc, trig_data *trig,
}
snprintf(str, slen, "%d", GET_WIS(c));
}
else if (!str_cmp(field, "wait"))
{
if (subfield && *subfield)
{
int addition = atoi(subfield);
WAIT_STATE(c, addition * ( PULSE_VIOLENCE / 2) ); // by default violence is 2 seconds
}
snprintf(str, slen, "%d", GET_WAIT_STATE(c));
}
break;
} /* switch *field */