Project X Forums



It is currently Thu Apr 18, 2024 1:28 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: True Shopping System [Updated v3]
PostPosted: Mon Dec 05, 2011 1:57 am 
Offline
Betatester

Joined: Sun Dec 06, 2009 12:11 am
Posts: 21
Since 'Shoppa' games are mostly based on your luck with crates, I've decided to create an actual shopping system for PX! It certainly wasn't easy for me, since I'm not the most skilled at EAX :P

Here's how it works: Two new weapons work as currency, the Gold Coins and the Diamonds. You can't use them like a normal weapon though - they just display instructions on how to buy stuff and won't end your turn or be consumed when you attempt to use them. Another new weapon is the Treasure Chest: it can spice up games by giving random coin and diamond rewards to players that grab them! It even has an incredibly low chance to give out 1337 coins! :P

With my Extra MapEditor Objects lib, you are be able to set up small shops in your maps, each linked to a Zone. Each shop object (PurchaseItem) sells up to 20 weapons for a price, either in Coins or Diamonds, or even both. You can customize the amount in each bundle as well. Having a shop to exchange coins for diamonds would be a nice idea!

To set up a shop, first place a PurchaseItem object in your map. Place a zone nearby, and link both with the PurchaseZone field within the PurchaseItem object. For each item that's going to be sold in your shop, you have to create an ItemStock object. Once you finish configuring it, you can link your shop to your stock object. Don't forget to fill the Limit parameter in PurchaseItem according to the amount of items that are sold in that shop. Assign a unique ID to each of your shops, too! Otherwise your items won't display correctly.

Then, when you get your worm into the shop's zone, just press B to buy the weapon. That is, if your team has enough money! Press N to browse through the items in a shop.

Another new object, CoinBonus, enables coin rewards after each turn, based on total damage dealt. Three different bonuses can be configured.

If you stumble upon any glitch, please let me know!

(If you have StepS' PX Weapons Lib, make sure to add the Trollface Launcher weapon to your scheme as Treasure Chests can spit those out! If you don't or if you dislike Trollface Launcher, use the 'nosteps' version of the lib which is also included. The chests will give out Sheep instead)

Some screens:

Image

Image

Example map:

Also attached is an example PX scheme and an example map, edited with PX's Map Editor from raffie's amazing "Xian Shopping" map, taken from wmdb.org. They need a few libraries to work as intended:
->This, of course
->Extra MapEditor Objects v3
->Double Jump
->StepS' PX Weapons v4.0 & Wings
->Sprite Fixes & Mystery Box

Fortunately, they're all included. :)

EXAMPLE MAP COMING SOON

Changelog:
v3:
*Treasure Chest added
*Added workaround for broken weapon icons
*Support for Extra MapEditor Objects v3
*Example map

v2:
*First public release
*Includes Gold Coin and Diamond

v1:
*Private release


Attachments:
File comment: True Shopping System v3
trueshopping.zip [85.65 KiB]
Downloaded 570 times


Last edited by Virtu on Mon Dec 12, 2011 2:28 am, edited 1 time in total.
Top
 Profile  
Reply with quote  
 Post subject: Re: True Shopping System
PostPosted: Tue Dec 06, 2011 11:07 am 
Offline
User avatar

Joined: Sat Nov 27, 2010 12:59 pm
Posts: 346
Awesome! So nice :P
Do you have an example map? ;)


Top
 Profile  
Reply with quote  
 Post subject: Re: True Shopping System
PostPosted: Fri Dec 09, 2011 11:02 pm 
Offline
User avatar

Joined: Tue Oct 04, 2011 2:44 pm
Posts: 294
this is awesome

_________________
“If you can't explain it simply, you don't understand it well enough” - Albert Einstein.


Top
 Profile  
Reply with quote  
 Post subject: Re: True Shopping System
PostPosted: Fri Dec 09, 2011 11:05 pm 
Offline
User avatar

Joined: Tue Oct 04, 2011 2:44 pm
Posts: 294
would be cool with like a street map with little shops.

_________________
“If you can't explain it simply, you don't understand it well enough” - Albert Einstein.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 108 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Skin by Lucas Kane