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!
Hello guys
Can someone teach me and also help how to make good one Custom Shop with folders? I saw one tutorial but it was to fast and not all there was explained. Would be nice if someone help me understand it or explain this step by step because need help x.X
http://www.youtube.com/watch?v=tw-O0tMPQzQ i found this one tutorial too but i gave you +rep for trying help nicely i still dont know yet how to make it works because probably im misseing something and dont know what xD Well im going to give it try now if you finde something interesting and helpfuly post it please i might be also about custom items in shop ^^
Btw in Shoto tutorial i found something strange, an item box appears and disappears after any of active "folder" why is that and cant be changed to invisble or something to do with it is able ?
-------- The Custom scripts are necessary to remove memory leaks. --------
Albo - Akcje
How to create working Back Button in shop? I would like to use Back buton for select shop to back into main pick of types items if possible but how to do it?
Find these two data field in Back item the object editor. Art- Button Position - Turn Off (X) Art- Button Position - Turn Off (Y)
The X part would be the column number your button will be placed in while Y would be the row.
You can also find the Select Hero ability in the object editor and set the Data - Show Select Unit Button to false so that the Back button will appear exactly on the (3,2) spot. (You can also do this to the custom ability called Select Unit All Range in the sample map)
Well you just have to add more dummy shop that sell dummy items.
Initialization
Events
Map initialization
Conditions
Actions
Set MainShop = Vendor 0000 <gen>
Set TempPoint = (Position of MainShop)
Unit - Create 1 Armor 1 for Neutral Passive at TempPoint facing Default building facing degrees
Set ArmorShop[1] = (Last created unit)
Unit - Create 1 Armor 2.1 for Neutral Passive at TempPoint facing Default building facing degrees
Set ArmorShop[2] = (Last created unit)
Unit - Create 1 Armor 2.2 for Neutral Passive at TempPoint facing Default building facing degrees
Set ArmorShop[3] = (Last created unit)
Unit - Create 1 Weapons 1 for Neutral Passive at TempPoint facing Default building facing degrees
Set WeaponShop[1] = (Last created unit)
Unit - Create 1 Weapons 2.1 for Neutral Passive at TempPoint facing Default building facing degrees
Set WeaponShop[2] = (Last created unit)
Unit - Create 1 Weapons 2.2 for Neutral Passive at TempPoint facing Default building facing degrees
Set WeaponShop[3] = (Last created unit)
Custom script: call RemoveLocation(udg_TempPoint)
MainShop (or Vendor 0000 <gen>) is the visible shop. Let's just say the Goblin Merchant. While Armor 1 and Weapon 1 are its two sub shops, which are the invisible units that will be selected by the second trigger when the player buys their dummy items. These two subshops will be selling dummy items (The so called "categories") as well. When these two subshops sell their dummy items, the second trigger will select either ArmorShop[2] or ArmorShop [3]. These last two subshop will be the one who will be selling the real items. Same applies for WeaponShop[2] and WeaponShop [3].
You can do this subshop thing so much that there's almost no limit.
BTW, If you're going to have many "categories", it's better off to set each shop into a unit array instead so that your variable editor will not be filled with tons of variables for your shops.
Shop
Events
Unit - A unit Sells an item (from shop)
Conditions
Actions
Set TempPlayer = (Owner of (Buying unit))
-------- Weapon subshop and its subshops --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Sold Item)) Equal to Weapon
Then - Actions
Selection - Clear selection for TempPlayer
Item - Remove (Sold Item)
Selection - Select WeaponShop[1] for TempPlayer
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Sold Item)) Equal to WeaponSub1
Then - Actions
Selection - Clear selection for TempPlayer
Item - Remove (Sold Item)
Selection - Select WeaponShop[2] for TempPlayer
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Sold Item)) Equal to WeaponSub2
Then - Actions
Selection - Clear selection for TempPlayer
Item - Remove (Sold Item)
Selection - Select WeaponShop[3] for TempPlayer
Else - Actions
-------- Armor subshop and its subshops --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Sold Item)) Equal to Armor
Then - Actions
Selection - Clear selection for TempPlayer
Item - Remove (Sold Item)
Selection - Select ArmorShop[1] for TempPlayer
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Sold Item)) Equal to ArmorSub1
Then - Actions
Selection - Clear selection for TempPlayer
Item - Remove (Sold Item)
Selection - Select ArmorShop[2] for TempPlayer
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Sold Item)) Equal to ArmorSub2
Then - Actions
Selection - Clear selection for TempPlayer
Item - Remove (Sold Item)
Selection - Select ArmorShop[3] for TempPlayer
Else - Actions
-------- Cancel button for each subshop --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Sold Item)) Equal to Back
Then - Actions
-------- When the player clicks (oir buys) the dummy back button --------
-------- If he's currently selecting either of the main shop's subshops, --------
-------- The trigger will force him to select the main shop once again. --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(WeaponShop[1] is selected by TempPlayer) Equal to True
(ArmorShop[1] is selected by TempPlayer) Equal to True
Then - Actions
Selection - Clear selection for TempPlayer
Item - Remove (Sold Item)
Selection - Select MainShop for TempPlayer
Else - Actions
-------- If he's currently selecting any of the subshp's subshops, --------
-------- The trigger will force him to select the last subshop... etc. --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(WeaponShop[2] is selected by TempPlayer) Equal to True
(WeaponShop[3] is selected by TempPlayer) Equal to True
Then - Actions
Selection - Clear selection for TempPlayer
Item - Remove (Sold Item)
Selection - Select WeaponShop[1] for TempPlayer
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(ArmorShop[2] is selected by TempPlayer) Equal to True
(ArmorShop[3] is selected by TempPlayer) Equal to True
Then - Actions
Selection - Clear selection for TempPlayer
Item - Remove (Sold Item)
Selection - Select ArmorShop[1] for TempPlayer
Else - Actions
Else - Actions
On a side note, you could also set the Stats - Stock Replenish Interval of your "category" items to zero so that players will not see the cooldown animations when they move between categories fast enough.
If you can't recreate what I did. Just say and I'll post a test map.
Oh this works perfect Im still trying to make these multipages but im keep failling in it, well maybe i need some rest x)
Also fixed some bugs which i made by self and left me to do for now shop with pages and probably i will need some help with few custom items but im not sure how about them yet ^^
Take your time in trying to help with multipages i know they are little dizzy but im pretty sure they are easy but im only yet to noobish because still learning ^^
Edit: Oh you updated now post awsome so i will try it now lol my poor sleeping xD cant wait to make it with your help Thanks
Can you send me map please ? ^^ would be better to learn because im makeing it slowly and for some reasons not all works and i would be able easy with map to findout what i done wrong
Edit: btw i found also how to fix this button to make it for real 3,2 not 2,2 position
Skills -> Select Unit All Range (custom created skill) -> Show button for select unit (or something like this - dont know how to translate it correctly) setup into "NO" and then custom skill icon should disapear and our Back button should be moved into our wanted position 3,2
OH right at time already posted xD okay im going to findout now what i done wrong I know its easy but im new at map modding x.x
Edit:
Perfectly Working My bad was simple, twice times selected same Armor 2.2 and replaced for 2.3 and thats why i failed
Thank You Very Much and ofc when i will be able to give more +rep i will do it so soon as possible and also gives credits for Main Creator of Tutorial + Your Tutorial with Advices
Thread is free to close problem has been sloved so if anybody needs same thingy as me then here we go reconstruct or copy and edit some from map
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.