Skip to content

Class "TemporaryEffects"⚓︎

Functions⚓︎

Add·Collectible·Effect ()⚓︎

void AddCollectibleEffect ( CollectibleType CollectibleType, boolean AddCostume )⚓︎

Adds the effect of a collectible to the player, without actually giving him the assosiated item.

Bug

This function does only work for some collectibles, but not all. For example, it doesnt work for "Chocolate milk".

Example Code

This code applies the effect and costume of the item "Sad Onion" to the player.

1
2
local player = Isaac.GetPlayer(0)
player:GetEffects():AddCollectibleEffect(CollectibleType.COLLECTIBLE_SAD_ONION, true)

Add·Null·Effect ()⚓︎

void AddNullEffect ( ItemConfig::NullItemID NullId, boolean AddCostume )⚓︎


Add·Trinket·Effect ()⚓︎

void AddTrinketEffect ( TrinketType TrinketType, boolean AddCostume )⚓︎


Clear·Effects ()⚓︎

void ClearEffects ( )⚓︎


Get·Collectible·Effect ()⚓︎

const TemporaryEffect GetCollectibleEffect ( CollectibleType CollectibleType )⚓︎


Get·Collectible·Effect·Num ()⚓︎

int GetCollectibleEffectNum ( CollectibleType CollectibleType )⚓︎


Get·Effects·List ()⚓︎

const EffectList GetEffectsList ( )⚓︎


Get·Null·Effect ()⚓︎

const TemporaryEffect GetNullEffect ( ItemConfig::NullItemID NullId )⚓︎


Get·Null·Effect·Num ()⚓︎

int GetNullEffectNum ( ItemConfig::NullItemID NullId )⚓︎


Get·Trinket·Effect ()⚓︎

const TemporaryEffect GetTrinketEffect ( TrinketType TrinketType )⚓︎


Get·Trinket·Effect·Num ()⚓︎

int GetTrinketEffectNum ( TrinketType TrinketType )⚓︎


Has·Collectible·Effect ()⚓︎

boolean HasCollectibleEffect ( CollectibleType CollectibleType )⚓︎


Has·Null·Effect ()⚓︎

boolean HasNullEffect ( ItemConfig::NullItemID NullId )⚓︎


Has·Trinket·Effect ()⚓︎

boolean HasTrinketEffect ( TrinketType TrinketType )⚓︎


Remove·Collectible·Effect ()⚓︎

void RemoveCollectibleEffect ( CollectibleType CollectibleType )⚓︎


Remove·Null·Effect ()⚓︎

void RemoveNullEffect ( ItemConfig::NullItemID NullId )⚓︎


Remove·Trinket·Effect ()⚓︎

void RemoveTrinketEffect ( TrinketType TrinketType )⚓︎



Last update: June 9, 2021