Changing Buyability (solved)
I want to know if you can change if something is buyable with Lua
I have never programmed with Lua before but I have read a few things on the forum and I have gone through the wiki a bit, I have read Cricket's tutorial.
Code:
-- I want this to run as soon as jou buy the item
function Create(self)
-- Cricket's Tutorial said thing.GetsHitByMOs = False so I assume this works aswell
thing.Buyable = 0
end
So that should technically change the item you bought to not be buyable anymore?
if not can I do it? And also how do I make something unbuyable but at the same time something else buyable? If that is even possible.
Thanks in advance