Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Having trouble with adding a collectible effect
Post Flair (click to view more posts with a particular flair)
Post Body

I'm trying to make a mod that gives you specific effects when you have 50 coins and 99 coins as the Keeper, giving 20/20 at 99 coins and Car Battery Steam Sale at 50 . Steam Sale and 20/20 work but for some reason Car Battery doesn't have any effect when I add it using my code. Does anyone see what my problem is? local function onUpdate(t) local player = Isaac.GetPlayer(0) local coins = player:GetNumCoins() if player:GetName() == "Keeper" then

        if coins<49 then
            player:GetEffects():RemoveCollectibleEffect(64,true)
            player:GetEffects():RemoveCollectibleEffect(356,true)
        end
        if coins>48 then
            player:GetEffects():RemoveCollectibleEffect(245, true)
            player:GetEffects():AddCollectibleEffect(64,true)
            player:GetEffects():AddCollectibleEffect(356,true)
        end
        if coins>98 then
            player:GetEffects():AddCollectibleEffect(245, true)
        end
    end
end

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
13,529
Link Karma
5,038
Comment Karma
8,270
Profile updated: 4 days ago
Posts updated: 7 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 years ago