HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

2 pages shop (general ideas for conception)

06-12-2009, 02:33 PM#1
Flame_Phoenix
Hi guys, in my map I have multiple shops and they all need 2 pages (or maybe more in the future). Themerion (who I take as great friend and coder) made this system for me a long time ago using CCSafety... we both know this is deprecated like hell and if I want to keep my map easy to update, I need to remake it.
So I need a general idea on how to start before I make code.
I was thinking in something like this:

Idea 1:
1 - The main shop has an item (next page)
2 - When the player buys that item (which is ofc 0 gold and lumber, and has 0 cooldown) I clear the player's selection, and select a dummy invisible shop behind it which will have the new items.
3 - Same thing for going back to page 1.

This is how Themerion made his system. Problem is that I will need a second dummy shop for every shop on the map. Also, because my shops walk and run, I will need to update their movement constantly.
The idea works but ...

I am almost sure someone here has a better idea, so you have, please give me a tip.
06-12-2009, 02:57 PM#2
Opossum
Sounds like an ok way to do that imo. If you want the selection circle to be shown correctly and only nearby heroes to be able to buy from the shop then this is probably the only possible way as you can't change a shop's contents for only one player.

I don't see why creating a dummy per shop and moving it periodically should be a problem.
06-12-2009, 03:39 PM#3
Flame_Phoenix
Quote:
Sounds like an ok way to do that imo. If you want the selection circle to be shown correctly and only nearby heroes to be able to buy from the shop then this is probably the only possible way as you can't change a shop's contents for only one player.

I don't see why creating a dummy per shop and moving it periodically should be a problem.
SO this is a good solution after all. Thx, just wanted to be sure xD