UpdatingEffect
Gets called when the player is receiving an effect.
Start a script section
!-- OnEvent UpdatingEffect
-- require @evPlayer *evEffect $evIntensity $evDuration $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerEffectUpdatingEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player whose effect is being updated. |
*evEffect | reference to StatusEffectBase object | Gets the effect that is being updated. |
$evIntensity | number value | Gets or sets the new intensity of the effect. |
$evDuration | number value | Gets or sets the new duration of the effect in seconds. |
$evIsAllowed | bool value | Whether the event is allowed to run. |