![]() |
|
Custom Payment Window with Balance, Card Validation, Penalties - Printable Version +- Unofficial Hotscreen Community (https://hotscreen.dominated.dev) +-- Forum: HotScreen (https://hotscreen.dominated.dev/forumdisplay.php?fid=6) +--- Forum: Mods (https://hotscreen.dominated.dev/forumdisplay.php?fid=12) +--- Thread: Custom Payment Window with Balance, Card Validation, Penalties (/showthread.php?tid=82) |
Custom Payment Window with Balance, Card Validation, Penalties - emerladCoder - 05-16-2026 A custom payment scene taking inspiration from several posts on this forum (ex. LoserCard from Xx_Noice_xX and Total Spend from TerriblePerson123), made with AI as I'm not familiar with Godot, so there are likely some bugs or edge cases I did not find. The idea is that you have some starting balance, but you will need to watch some degrading videos (or w/e your preference is, you could make it ADS for example) to earn money for you balance to buy the subscription levels. The system tracks your total amount spend and your current balance. Feel free to do w/e with this code as I did not write it, I only directed AI to write it, so I take no ownership. Features:
Setup:
The resulting folder should look like: CUSTOM_DATA └─custom_payment_system └─EarnVideos └─PLACE OGV VIDEOS HERE └─custom_payment_system.paymenu.tscn For configuration edit the below variables in the scene, I have tired added comments to explain what they control: # custom variables var countdown_seconds: float = 30.0 # Set to 0 or less to disable the auto-close timer var countdown_pay_additional_second: float = 30.0 # additional seconds to add when clicking on pay for refill or subscription var countdown_processing_payment_failed: float = 30.0 # time to set timer to when failing to process payment # cardholder name var card_holder_name: String = \"Cuck Loser\" var card_change: float = 10.0 # percent chance that the card generated will change (0.0 - 100.00 in %) var initial_balance: float = 100.0 # starting card balance var for_x_credits: float = 100.0 # how many credits you get, please match this to how much money the default system gives you when purchasing a level for example at money scaling 1.0 this is 100.0 var cost_multiplier: float = 0.1 # custom amount to muliply the cost_to_refill and cost_for_better_subscription by when opening the payment window var cost_penalty_multipler: float = 1.26 # amount to multiply the cost by for each penalty var max_number_penalty: int = 10 # max number of penalties var earn_video_folder: String = \"CUSTOM_DATA/custom_payment_system/EarnVideos\" var earn_video_height: int = 300 #max height of the video var earn_video_time: float = 15.0 # time needed to watch video var earn_video_percent_change: float = 25.0 # chance to switch to another random video when clicking get paid (0.0 - 100.00 in %) var earn_money_amount: float = 10.0 # amount of money earned for watching the video |