Put a bundle in the store
Short version
Create a .commerce_offer (items, sale price, currency, optional purchase limit) and a .bundle_info
(bundle_offer, items at full price, display_name, texture packages). Add an entry for the bundle info to
bundle_schedule_s2, and add the offer to catch.economy’s offers. Save and run; Studio registers the package
lists.
A bundle is several items sold together, usually for less than their full prices. It takes four pieces, each pointing at the next:
Each one uses the ones to its right.
- Bundle schedulean entrywhen it's on sale
- Bundle infohow it's shownname, pictures, full prices
- Offerwhat's soldsale price, currency
- Iteman accessory
- Itemanother accessory
1. The offer
Section titled “1. The offer”- In a folder of your own, Assets▸Create… CtrlN › Commerce offer, named
my_bundle. - In the Inspector, add an entry to items for each item: what it contains (an accessory), how many, and its price, which is the sale price.
- Set price_currency to the currency players pay in (Holobux is
currency.currency). - To let a player buy it only once, turn on use_purchase_limit_override and set purchase_limit_override to 1.
2. The bundle info
Section titled “2. The bundle info”- Assets▸Create… CtrlN › Bundle info, named
my_bundle. - Set bundle_offer to your offer.
- Add each item to items with its full price, before the discount. The shop shows the difference as the saving.
- Set display_name. If you’re not adding translations, turn on do_not_localize so your text shows as written.
- Set the bundle’s three texture packages for its pictures. Pointing them at a shipped bundle’s is the easiest start.
3. Schedule it
Section titled “3. Schedule it”The Market reads bundles from a bundle schedule. The simplest route adds yours to the game’s own:
- Open
bundle_schedule_s2(searchext:bundle_schedule). - Add an entry for your bundle info, with dates that say when it’s on sale. With no end date, it stays on sale.
Editing it makes it your override. The shipped bundles stay; yours joins them.
4. Register the offer in the economy
Section titled “4. Register the offer in the economy”The backend only sells offers the economy lists:
- Open
catch.economy(searchcatch.economy). - Add your offer to its offers list.
Save everything. The Package window lists your offer, your bundle info, your copy of the bundle schedule and your copy of the economy. Studio added them to the right package lists by itself; there’s nothing to register by hand.
5. Test
Section titled “5. Test”Press Run, open the Market in the game, and find your bundle.
Your bundle in the Market with its name and pictures, the saving worked out from your full prices, and a purchase that goes through.
What just happened
Section titled “What just happened”The Market read your entry from the bundle schedule, showed your bundle info, and sold your offer. The backend allowed the purchase because the economy lists the offer. Leave that last step out and the bundle still shows, but can’t be bought.
Where to go next
Section titled “Where to go next”- The store: the daily shop, currencies and event stores.
- The store schedule in Studio.