- Joined
- Apr 5, 2018
- Messages
- 116
I have 8 types of shops in my map, I want every shop have 4 pages of items. How Make It? PLEASE HELP! OK and I need help to made 60 heroes randomized tavern?
Last edited:
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Random Hero would need to be triggered - to which basic knowledge of triggers would be required
If this is not feasible I will gladly give you one later today
HeroGlow
Take the blood mages ability "Sphere" set it to one attachment point, rename the fields to only "origin", replace bloodmage orb with hero glow model, and finally give it to your regal peasant.
No spellbook Intelligence +1 bonusSpellbook inside spell book? Is that what you mean?
ShopSetup

Events


Time - Elapsed game time is 0.01 seconds

Conditions

Actions


Hashtable - Create a hashtable


Set ShopTable = (Last created hashtable)


-------- ShopUnitType is the main shop, the one you place on the map. --------


Set ShopUnitType = Sklep Zapomnianego Mędrca


-------- ShopTotalCategories is the number of categories you want to have INCLUDING YOUR MAIN SHOP. --------


-------- So you set ShopTotalCategories to your number of categories plus one. --------


Set ShopTotalCategories = 6


-------- ShopCategory 1 is your main shop. --------


Set ShopCategory[1] = Sklep Zapomnianego Mędrca


-------- The rest is your categories in numerical order. --------


Set ShopCategory[2] = Sklep Zapomnianego Mędrca 1


Set ShopCategory[3] = Sklep Zapomnianego Mędrca 2


Set ShopCategory[4] = Sklep Zapomnianego Mędrca 3


Set ShopCategory[5] = Sklep Zapomnianego Mędrca 4


Set ShopCategory[6] = Sklep Zapomnianego Mędrca 5


-------- ShopSpell 1 is the spell you use for returning to the main shop. --------


Set ShopCategoryItem[1] = POWRÓĆ


-------- The rest is for the categories in numerical order. --------


Set ShopCategoryItem[2] = KATEGORIA


Set ShopCategoryItem[3] = KATEGORIA II


Set ShopCategoryItem[4] = KATEGORIA III


Set ShopCategoryItem[5] = KATEGORIA IV


Set ShopCategoryItem[6] = KATEGORIA V


Trigger - Run ShopInit <gen> (ignoring conditions)
ShopSetup Copy

Events


Time - Elapsed game time is 0.01 seconds

Conditions

Actions


Hashtable - Create a hashtable


Set ShopTable = (Last created hashtable)


-------- ShopUnitType is the main shop, the one you place on the map. --------


Set ShopUnitType = Sklep Tajniaków


-------- ShopTotalCategories is the number of categories you want to have INCLUDING YOUR MAIN SHOP. --------


-------- So you set ShopTotalCategories to your number of categories plus one. --------


Set ShopTotalCategories = 6


-------- ShopCategory 1 is your main shop. --------


Set ShopCategory[1] = Sklep Tajniaków


-------- The rest is your categories in numerical order. --------


Set ShopCategory[2] = Sklep Tajniaków 1


Set ShopCategory[3] = Sklep Tajniaków 2


Set ShopCategory[4] = Sklep Tajniaków 3


Set ShopCategory[5] = Sklep Tajniaków 4


Set ShopCategory[6] = Sklep Tajniaków 5


-------- ShopSpell 1 is the spell you use for returning to the main shop. --------


Set ShopCategoryItem[1] = POWRÓĆ


-------- The rest is for the categories in numerical order. --------


Set ShopCategoryItem[2] = KATEGORIA


Set ShopCategoryItem[3] = KATEGORIA II


Set ShopCategoryItem[4] = KATEGORIA III


Set ShopCategoryItem[5] = KATEGORIA IV


Set ShopCategoryItem[6] = KATEGORIA V


Trigger - Run ShopInit <gen> (ignoring conditions)
ShopSetup Copy 2

Events


Time - Elapsed game time is 0.01 seconds

Conditions

Actions


Hashtable - Create a hashtable


Set ShopTable = (Last created hashtable)


-------- ShopUnitType is the main shop, the one you place on the map. --------


Set ShopUnitType = Zbrojownia Zimnej Wojny


-------- ShopTotalCategories is the number of categories you want to have INCLUDING YOUR MAIN SHOP. --------


-------- So you set ShopTotalCategories to your number of categories plus one. --------


Set ShopTotalCategories = 6


-------- ShopCategory 1 is your main shop. --------


Set ShopCategory[1] = Zbrojownia Zimnej Wojny


-------- The rest is your categories in numerical order. --------


Set ShopCategory[2] = Zbrojownia Zimnej Wojny 1


Set ShopCategory[3] = Zbrojownia Zimnej Wojny 2


Set ShopCategory[4] = Zbrojownia Zimnej Wojny 3


Set ShopCategory[5] = Zbrojownia Zimnej Wojny 4


Set ShopCategory[6] = Zbrojownia Zimnej Wojny 5


-------- ShopSpell 1 is the spell you use for returning to the main shop. --------


Set ShopCategoryItem[1] = POWRÓĆ


-------- The rest is for the categories in numerical order. --------


Set ShopCategoryItem[2] = KATEGORIA


Set ShopCategoryItem[3] = KATEGORIA II


Set ShopCategoryItem[4] = KATEGORIA III


Set ShopCategoryItem[5] = KATEGORIA IV


Set ShopCategoryItem[6] = KATEGORIA V


Trigger - Run ShopInit <gen> (ignoring conditions)
ShopSetup Copy 3

Events


Time - Elapsed game time is 0.01 seconds

Conditions

Actions


Hashtable - Create a hashtable


Set ShopTable = (Last created hashtable)


-------- ShopUnitType is the main shop, the one you place on the map. --------


Set ShopUnitType = Prohibere Mortus


-------- ShopTotalCategories is the number of categories you want to have INCLUDING YOUR MAIN SHOP. --------


-------- So you set ShopTotalCategories to your number of categories plus one. --------


Set ShopTotalCategories = 6


-------- ShopCategory 1 is your main shop. --------


Set ShopCategory[1] = Prohibere Mortus


-------- The rest is your categories in numerical order. --------


Set ShopCategory[2] = Prohibere Mortus 1


Set ShopCategory[3] = Prohibere Mortus 2


Set ShopCategory[4] = Prohibere Mortus 3


Set ShopCategory[5] = Prohibere Mortus 4


Set ShopCategory[6] = Prohibere Mortus 5


-------- ShopSpell 1 is the spell you use for returning to the main shop. --------


Set ShopCategoryItem[1] = POWRÓĆ


-------- The rest is for the categories in numerical order. --------


Set ShopCategoryItem[2] = KATEGORIA


Set ShopCategoryItem[3] = KATEGORIA II


Set ShopCategoryItem[4] = KATEGORIA III


Set ShopCategoryItem[5] = KATEGORIA IV


Set ShopCategoryItem[6] = KATEGORIA V


Trigger - Run ShopInit <gen> (ignoring conditions)
ShopSetup Copy 4

Events


Time - Elapsed game time is 0.01 seconds

Conditions

Actions


Hashtable - Create a hashtable


Set ShopTable = (Last created hashtable)


-------- ShopUnitType is the main shop, the one you place on the map. --------


Set ShopUnitType = Tajemniczy Market


-------- ShopTotalCategories is the number of categories you want to have INCLUDING YOUR MAIN SHOP. --------


-------- So you set ShopTotalCategories to your number of categories plus one. --------


Set ShopTotalCategories = 6


-------- ShopCategory 1 is your main shop. --------


Set ShopCategory[1] = Tajemniczy Market


-------- The rest is your categories in numerical order. --------


Set ShopCategory[2] = Tajemniczy Market 1


Set ShopCategory[3] = Tajemniczy Market 2


Set ShopCategory[4] = Tajemniczy Market 3


Set ShopCategory[5] = Tajemniczy Market 4


Set ShopCategory[6] = Tajemniczy Market 5


-------- ShopSpell 1 is the spell you use for returning to the main shop. --------


Set ShopCategoryItem[1] = POWRÓĆ


-------- The rest is for the categories in numerical order. --------


Set ShopCategoryItem[2] = KATEGORIA


Set ShopCategoryItem[3] = KATEGORIA II


Set ShopCategoryItem[4] = KATEGORIA III


Set ShopCategoryItem[5] = KATEGORIA IV


Set ShopCategoryItem[6] = KATEGORIA V


Trigger - Run ShopInit <gen> (ignoring conditions)
ShopSetup Copy 5

Events


Time - Elapsed game time is 0.01 seconds

Conditions

Actions


Hashtable - Create a hashtable


Set ShopTable = (Last created hashtable)


-------- ShopUnitType is the main shop, the one you place on the map. --------


Set ShopUnitType = Hurtownia Im.Braci Wright


-------- ShopTotalCategories is the number of categories you want to have INCLUDING YOUR MAIN SHOP. --------


-------- So you set ShopTotalCategories to your number of categories plus one. --------


Set ShopTotalCategories = 6


-------- ShopCategory 1 is your main shop. --------


Set ShopCategory[1] = Hurtownia Im.Braci Wright


-------- The rest is your categories in numerical order. --------


Set ShopCategory[2] = Hurtownia Im.Braci Wright 1


Set ShopCategory[3] = Hurtownia Im.Braci Wright 2


Set ShopCategory[4] = Hurtownia Im.Braci Wright 3


Set ShopCategory[5] = Hurtownia Im.Braci Wright 4


Set ShopCategory[6] = Hurtownia Im.Braci Wright 5


-------- ShopSpell 1 is the spell you use for returning to the main shop. --------


Set ShopCategoryItem[1] = POWRÓĆ


-------- The rest is for the categories in numerical order. --------


Set ShopCategoryItem[2] = KATEGORIA


Set ShopCategoryItem[3] = KATEGORIA II


Set ShopCategoryItem[4] = KATEGORIA III


Set ShopCategoryItem[5] = KATEGORIA IV


Set ShopCategoryItem[6] = KATEGORIA V


Trigger - Run ShopInit <gen> (ignoring conditions)
ShopSetup Copy 6

Events


Time - Elapsed game time is 0.01 seconds

Conditions

Actions


Hashtable - Create a hashtable


Set ShopTable = (Last created hashtable)


-------- ShopUnitType is the main shop, the one you place on the map. --------


Set ShopUnitType = Galeria Chwały


-------- ShopTotalCategories is the number of categories you want to have INCLUDING YOUR MAIN SHOP. --------


-------- So you set ShopTotalCategories to your number of categories plus one. --------


Set ShopTotalCategories = 6


-------- ShopCategory 1 is your main shop. --------


Set ShopCategory[1] = Galeria Chwały


-------- The rest is your categories in numerical order. --------


Set ShopCategory[2] = Galeria Chwały 1


Set ShopCategory[3] = Galeria Chwały 2


Set ShopCategory[4] = Galeria Chwały 3


Set ShopCategory[5] = Galeria Chwały 4


Set ShopCategory[6] = Galeria Chwały 5


-------- ShopSpell 1 is the spell you use for returning to the main shop. --------


Set ShopCategoryItem[1] = POWRÓĆ


-------- The rest is for the categories in numerical order. --------


Set ShopCategoryItem[2] = KATEGORIA


Set ShopCategoryItem[3] = KATEGORIA II


Set ShopCategoryItem[4] = KATEGORIA III


Set ShopCategoryItem[5] = KATEGORIA IV


Set ShopCategoryItem[6] = KATEGORIA V


Trigger - Run ShopInit <gen> (ignoring conditions)
ShopSetup Copy 6 Copy

Events


Time - Elapsed game time is 0.01 seconds

Conditions

Actions


Hashtable - Create a hashtable


Set ShopTable = (Last created hashtable)


-------- ShopUnitType is the main shop, the one you place on the map. --------


Set ShopUnitType = Dom Handlowy Zarckenga


-------- ShopTotalCategories is the number of categories you want to have INCLUDING YOUR MAIN SHOP. --------


-------- So you set ShopTotalCategories to your number of categories plus one. --------


Set ShopTotalCategories = 6


-------- ShopCategory 1 is your main shop. --------


Set ShopCategory[1] = Dom Handlowy Zarckenga


-------- The rest is your categories in numerical order. --------


Set ShopCategory[2] = Dom Handlowy Zarckenga 1


Set ShopCategory[3] = Dom Handlowy Zarckenga 2


Set ShopCategory[4] = Dom Handlowy Zarckenga 3


Set ShopCategory[5] = Dom Handlowy Zarckenga 4


Set ShopCategory[6] = Dom Handlowy Zarckenga 5


-------- ShopSpell 1 is the spell you use for returning to the main shop. --------


Set ShopCategoryItem[1] = POWRÓĆ


-------- The rest is for the categories in numerical order. --------


Set ShopCategoryItem[2] = KATEGORIA


Set ShopCategoryItem[3] = KATEGORIA II


Set ShopCategoryItem[4] = KATEGORIA III


Set ShopCategoryItem[5] = KATEGORIA IV


Set ShopCategoryItem[6] = KATEGORIA V


Trigger - Run ShopInit <gen> (ignoring conditions)
ShopInit

Events

Conditions

Actions


Set ShopTempGroup = (Units owned by Neutral Passive matching ((Unit-type of (Matching unit)) Equal to ShopUnitType))


Unit Group - Pick every unit in ShopTempGroup and do (Actions)



Loop - Actions




Set ShopTempGroup = (Units in (Playable map area) owned by (Owner of (Picked unit)))




Set ShopTempPoint = (Position of ShopTempUnit)




Set ShopInteger = (ShopInteger + 1)




Set ShopNumber[1] = ShopTempUnit




Hashtable - Save ShopInteger as 1 of (Key (Picked unit)) in ShopTable




Custom script: if udg_ShopGroup[udg_ShopInteger] == null then




Custom script: set udg_ShopGroup[udg_ShopInteger] = CreateGroup()




Custom script: endif




Unit Group - Add ShopTempUnit to ShopGroup[ShopInteger]




Trigger - Add to ShopCategory <gen> the event (Unit - (Picked unit) Sells an item (from shop))




For each (Integer A) from 6 to ShopTotalCategories, do (Actions)





Loop - Actions






Unit - Create 8 ShopCategory[(Integer A)] for Neutral Passive at ShopTempPoint facing Default building facing degrees






Hashtable - Save ShopInteger as 1 of (Key (Last created unit)) in ShopTable






Unit Group - Add Sklep Zapomnianego Mędrca 0035 <gen> to ShopGroup[ShopInteger]






Unit Group - Add Tajemniczy Market 0563 <gen> to ShopGroup[ShopInteger]






Unit Group - Add Galeria Chwały 1090 <gen> to ShopGroup[ShopInteger]






Unit Group - Add Zbrojownia Zimnej Wojny 0231 <gen> to ShopGroup[ShopInteger]






Unit Group - Add Prohibere Mortus 1319 <gen> to ShopGroup[ShopInteger]






Unit Group - Add Sklep Tajniaków 0370 <gen> to ShopGroup[ShopInteger]






Unit Group - Add Hurtownia Im.Braci Wright 0671 <gen> to ShopGroup[ShopInteger]






Unit Group - Add Dom Handlowy Zarckenga 0880 <gen> to ShopGroup[ShopInteger]






Trigger - Add to ShopCategory <gen> the event (Unit - (Last created unit) Sells an item (from shop))




Custom script: call RemoveLocation(udg_ShopTempPoint)


Custom script: call DestroyGroup(udg_ShopTempGroup)
ShopCategory

Events

Conditions

Actions


Set ShopPlayer = (Owner of (Buying unit))


Set ShopPersonalInteger = (Load 1 of (Key (Selling unit)) from ShopTable)


For each (Integer A) from 8 to ShopTotalCategories, do (Actions)



Loop - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(Item-type of (Sold Item)) Equal to ShopCategoryItem[(Integer A)]





Then - Actions






Set ShopSoldCatNumber = (Integer A)





Else - Actions


Unit Group - Pick every unit in ShopGroup[ShopPersonalInteger] and do (Actions)



Loop - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(Unit-type of (Picked unit)) Equal to ShopCategory[ShopSoldCatNumber]





Then - Actions






Selection - Select (Picked unit) for ShopPlayer





Else - Actions
I want make 6 pages in shops. 8 shops every shop with 6 pages. I want make 60 heroes tavern randomized. Please make map with this triggers solution.
Sorry now I have 10 shops on the map, but I try this modify to 10 shops. Thx.Did you think of this?
After Patch today my map is Broken! units have omitted names with objects, all names have been mixed up, the map is for dumping. End of Maping, my map is dead, but silly editor patch. How repair this? The editor has replaced names. Do not say that I have to rewrite and invent names for units, skills and others.
How make on Icecrown Tileset normal bears no Polar? On Rexxar Campaign it is works, misha is normal grizzly, but on my map I can't make normal bears.