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!
User avatar
alysiumX
Posts: 201
Joined: Sat Nov 20, 2004 1:13 pm

Easy Shop&Money System for your project

Post by alysiumX »

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
Tormentor667
Posts: 13534
Joined: Wed Jul 16, 2003 3:52 am

Re: Easy Shop&Money System for your project

Post by Tormentor667 »

Looks complicated...
User avatar
alysiumX
Posts: 201
Joined: Sat Nov 20, 2004 1:13 pm

Re: Easy Shop&Money System for your project

Post by alysiumX »

Ya tried to simplify it as much as possible but I couldn't use a variable to specify an array amount
User avatar
Jimmy
 
 
Posts: 4722
Joined: Mon Apr 10, 2006 1:49 pm
Preferred Pronouns: He/Him

Re: Easy Shop&Money System for your project

Post by Jimmy »

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

Code: Select all

#define TOTALMONSTERCOUNT 16

int InitialCounts[TOTALMONSTERCOUNT];
str MonNames[TOTALMONSTERCOUNT];
int RewardAmount[TOTALMONSTERCOUNT];
User avatar
alysiumX
Posts: 201
Joined: Sat Nov 20, 2004 1:13 pm

Re: Easy Shop&Money System for your project

Post by alysiumX »

ya didnt think to use #define

Return to “Resources”