This tutorial will teach you on how to create a shop within a shop. In this tutorial, I will teach you on how to create a shop which sells Weapons and Armors
Tools Needed:
-World Editor (NewGenWE as much as possible)
-Knowledge on how to create basic shops
-Knowledge on how to create items
-A bit of triggering knowledge
Changelog
April 8, 2011 - 9:59am GMT+8
-Made the dummy shops show the select user ability
-Set some other attributes of the shops to 0
Great stuff. A really cool technique, and certainly useful.
Some small notes, however.
Tell the reader to disable the minimap display as well (of the dummy units), else it will appear on the minimap.
Sight radius, food cost, etc. should be also 0. Maybe have them base it off a unit other than peasant, like the phoenix egg or something.
You should have the units created at the vendor instead, because when you click on the portrait, then it will shift the camera to the vendor.
Hold shift+click the selection scale, and type in 0 instead of 0.10. 0.10 is still slightly visible, while 0 will have no selection.
It would be really cool if this could work with multiple heroes. Maybe have some sort of "Select User" ability, so it can tell what the unit should have. (like the ones that the normal shops have, eg: merchants, arcane vaults, etc.)
If possible, maybe you can have a cancel button to revert back to select the normal vendor.
The last 2 are moreso simple suggestions. This is still useful as a sample without it. The other ones will probably need a fix, however. Also, make sure your signature is detached from the first post.
The dummy vendors doesn't show for me, but yeah maybe it would be helpful to remind them...
for the third suggestion, well it depends on the user... but maybe I'll change my suggestion to that one... (never thought about the camera shift since I originally did this on my current project which has a locked camera)
Will update this later (detached signature for now)... ^_^
Nicely done tutorial, you also provided a map sample for beginners who still cannot apply with triggers and such, and to see its details are promised, I say this one is really useful, good job for sharing this to us.
my first thought was to upload the vjass system then I thought it was too simple to be approved as a system resource, that's when I thought of writing it up as a tutorial since I've already seen numerous people asking of something like this... so instead of writing it up again and again, we could just link this... ^_^
For the GUI trigger part...
Isn't suppose the 2nd condition (the "Item Type of Sold Item is equal to Armor") should be INSIDE the IF/THEN/ELSE function ?
It should belong IN the ELSE condition, right ?
Also, you're setting the TempPlayer by using the local variable, right ?
Should it get nulled once you've used it ? (I don't know about this one, my JASS knowledge is minimum, just take a shot lol)