mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-30 14:08:48 +01:00
Added trigedit %actor.wait% variable (thanks WhiskyTest)
This commit is contained in:
parent
acfc90566d
commit
3782fc221c
1 changed files with 11 additions and 0 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue