Help with unlocking gallery image from script
Posted: Tue Jun 01, 2021 10:41 pm
Hi all,
I have a gallery built in that typically unlocks an image as it is seen in the game. But I would rather use a code in the script file itself that unlocks an image of my choosing.
I've tried in my script file:
And get nothing at all.
And also:
But I get this:
But it won't unlock anything in my gallery.
How do I do this?
I have a gallery built in that typically unlocks an image as it is seen in the game. But I would rather use a code in the script file itself that unlocks an image of my choosing.
I've tried in my script file:
Code: Select all
$ g.unlock_image("ImageIWantUnlocked")And also:
Code: Select all
$ Gallery.unlock_image("ImageIWantUnlocked")Code: Select all
While running game code:
File "game/script.rpy", line 82, in script
$ Gallery.unlock_image("ImageIWantUnlocked")
File "game/script.rpy", line 82, in <module>
$ Gallery.unlock_image("ImageIWantUnlocked")
TypeError: unbound method unlock_image() must be called with Gallery instance as first argument (got unicode instance instead)
How do I do this?