• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

My Shop Problem

Status
Not open for further replies.
Level 6
Joined
May 13, 2013
Messages
111
My problem is...
I have a building named Empty Building and it have no functions beside from upgrade it to an advanced structures like Weapon House, Restaurant, Clothing Shop, and Camping Supplies. And the problem here is that after I upgraded it from Empty Building, the shop got no items to sell and I want it like, if another player buys from the shop, the money goes to the owner of the shop.. like that... can somebody help me?
 
You have to register all item gold / lumber costs. You can use my system for that. http://www.hiveworkshop.com/forums/...0-3-a-245280/?prev=status=p&u=deathismyfriend
Put all items you want in each store in that store in the Object editor.
Make the techtrees for each one.

When unit buys from store check the item and load it using my system. Then give that money to owner of the shop.

To make it so that other players will be able to buy from a shop owned by other players you will have to use a unit group for each player and put each shop in that players unit group. When building the shop you add it to that players unit group then change ownership to neutral passive. After that you can change color to simulate the player who owns it.
 
Status
Not open for further replies.
Top