Skip to main content

SetAHP

Sets the amount of AHP for players.

Syntaxโ€‹

SetAHP @players amount limit? decay? efficacy? sustain? isPersistent?

Argumentsโ€‹

NameRequiredTypeDescription
playersYesPlayer variable (e.g. @all, @classDPlayers)
amountYesAny numberAdds this much AHP. Use a negative amount to remove AHP.
limitNoA number bigger or equal 0The upper limit of AHP.
decayNoAny numberAHP lost per second. Use a negative number to regenerate AHP.
efficacyNoA number between 0% and 100% (inclusive)The percent of incoming damage absorbed by AHP.
sustainNoDuration in format #ms, #s, #m, #h (e.g. 5s or 2m)The amount of time before the AHP begins to decay.
isPersistentNobool (true or false) valueWhether or not the AHP process stays after AHP reaches 0.

On a running serverโ€‹

Use serhelp SetAHP to inspect the reference generated by your installed SER version.