| 07-25-2006, 02:44 PM | #1 |
Hi all, I have a question about how I would go about creating a shop which is stocked by the player, by which I mean an initially empty shop, where the player can somehow put items into it (like pawning but without getting any money for it) and then the item will be displayed for other players to come and buy. I have no idea where to start with this, so any help would be great |
| 07-25-2006, 02:51 PM | #2 |
I think this should work. trigger: Trigger: btw you have to make a custom shop in the object editor and remove all items being sold ofc. |
| 07-25-2006, 02:55 PM | #3 |
Something like: Trigger: But you could change the event and actions in any way, instead of Pawning the item, it might be targeted through an ability. |
| 07-25-2006, 03:17 PM | #4 |
Ok, thnx, and how would I make it so the "select hero" ability would only select allies of the shop's owner? |
| 07-25-2006, 03:29 PM | #5 |
Base the shop from the Arcane vault (human) or any of the other, that only allows allies to use it. |
| 07-25-2006, 06:23 PM | #6 |
This sounds like a good idea. do you mind if I make something with it? |
| 08-01-2006, 12:44 PM | #7 |
OK, so how would I stop the player getting any money for putting something into his shop, and also would there be any way of allowing the player to set the prices? |
| 08-01-2006, 01:43 PM | #8 | ||
Quote:
Quote:
For allowing the player to set prices, I think it's impossible to do in UI, but you could use some triggers: one is the event "Player - Chat Message" (to set price) another is a combination of the event "A Unit Buys An Item" and action "Player - Add Property"(when buying, to substract buyer's gold). Hope this helps ;-) |
| 08-03-2006, 01:20 PM | #9 |
OK, thnx again every1, would there be a way of removing the item from the shop completely once it becomes out of stock, instead of just waiting for it to restock? That way the player would have to restock manually. |
| 08-03-2006, 01:48 PM | #10 |
Trigger: So my opinion is that, make a shop for each item-class, and instead of using the "... from All Marketplaces" above, use "... from {The Certain Shop}", and multiple "if-then-else"s checking item-class. |
| 08-03-2006, 02:10 PM | #11 |
Ahhh yes, thnx. Actually there is a seperate trigger to remove it just from one marketplace :D But there is only one shop in my map anyway so it doesn't really matter :P PS: Thnx for all Ur help Wyvernoid (+Rep) :D |
