Easy Shop&Money System for your project

Sprites, textures, sounds, code, and other resources belong here. Share and share-alike!
Forum rules
Before posting your Resource, please make sure you can answer YES to any of the following questions:
  • Is the resource ENTIRELY my own work?
  • If no to the previous one, do I have permission from the original author?
  • If no to the previous one, did I put a reasonable amount of work into the resource myself, such that the changes are noticeably different from the source that I could take credit for them?
If you answered no to all three, maybe you should consider taking your stuff somewhere other than the Resources forum.

Consult the Resource/Request Posting Guidelines for more information.

Please don't put requests here! They have their own forum --> here. Thank you!

Easy Shop&Money System for your project

Postby alysiumX » Tue Dec 22, 2009 1:36 pm

So I built an acs based shop and money system for use in single player and multiplayer projects(so far its been tested with 2 player lan and it works fine). It works by giving money too all players in game whenever a monster is killed, then players can buy items from a hud style shop with the money they have earned. The monster that gives xp, the amount, the weapons you can get, and there cost are all customizable which I'll show you how to do below and it also supports custom monster and weapons.

InGame ShopNMoney controls -
B - Open/Close buy menu
o - next weapon choice
i - prev weapon choice
p - purchase

#Note : Included with this file is HeavyRifle.wad as an example of adding a new weapon to this mod without having to add any resources to the actual wad file(you just have to run HeavyRifle.wad along side this mod when loading it up)

To add/modify monsters and weapons first go to the settings text file in the shop and money system.

Spoiler: Heres how to add monsters


Spoiler: Here how to add weapons


edit : Forgot the dl link.

http://www.zshare.net/download/7024024458e90d9e/
User avatar
alysiumX
 
Joined: 20 Nov 2004

Re: Easy Shop&Money System for your project

Postby Tormentor667 » Wed Dec 23, 2009 9:29 am

Looks complicated...
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: Easy Shop&Money System for your project

Postby alysiumX » Wed Dec 23, 2009 10:03 am

Ya tried to simplify it as much as possible but I couldn't use a variable to specify an array amount
User avatar
alysiumX
 
Joined: 20 Nov 2004

Re: Easy Shop&Money System for your project

Postby Jimmy » Wed Dec 23, 2009 10:07 am

Something like this might be what you're looking for.

Code: Select allExpand view
#define TOTALMONSTERCOUNT 16

int InitialCounts[TOTALMONSTERCOUNT];
str MonNames[TOTALMONSTERCOUNT];
int RewardAmount[TOTALMONSTERCOUNT];
Jimmy
I picked a fine day to be lactose intolerant
 
 
 
Joined: 10 Apr 2006
Location: Perth, WA
Twitch ID: JimmySquared

Re: Easy Shop&Money System for your project

Postby alysiumX » Wed Dec 23, 2009 10:17 am

ya didnt think to use #define
User avatar
alysiumX
 
Joined: 20 Nov 2004


Return to Resources

Who is online

Users browsing this forum: CantSleep, MSN [Bot] and 2 guests