Buying an item again despite having already purchased it. [HELP]

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
beastcarving
Regular
Posts: 139
Joined: Mon May 13, 2019 5:03 pm
Completed: Pulse Cage https://beastcarving.itch.io/pulse-cage-the-full-series
Projects: Your Brother's Religion
Organization: BeastCarving Studio
IRC Nick: BeastCarving
Tumblr: beastcarving
Deviantart: beastcarving
Github: beastcarving
itch: beastcarving
Contact:

Buying an item again despite having already purchased it. [HELP]

#1 Post by beastcarving » Thu Jun 11, 2020 11:57 pm

This code makes it so that Garry's love point are infinite after only purchasing 10 points. Ho do I make it so the user has to continuously buy Garry's points, instead of permanently unlocking the ability to have FREE points at your fingertips?

Code: Select all

label Garry_date :
    if iap.purchase ("garry_love"):
    if iap.has_purchased ("garry_love"):
       $ Garry_love +=10
    return ("main_menu")
How do I make so the user has to buy the item again and again to gain more points with Garry to unlock his dating game?
Image Pulse Cage (full game)Image Your Brother's Religion (Demo)
PLAY HERE: https://beastcarving.itch.io/
Love my work: https://www.patreon.com/beastcarving

Post Reply

Who is online

Users browsing this forum: No registered users