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!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
Shop Lists v1.01.w3x
Variables
Shop Lists
READ ME
Open List
Events for Cancel List ESC
Cancel List ESC
Cancel List Item
Examples
how to Create shop once
Create 1 Arcane Vault
how to Create shop multiple times
Create Arcane Vaults
Arcane Vault Shop and Lists
why is POINT re-set ?
X
(only needed for this map)
X
Enter map-specific custom script code below. This text will be included in the map script after variables are declared and before any trigger code.
Name
Type
is_array
initial_value
POINT
location
No
UG
group
No
READ ME
___________________________________________________________________________________________________________________
System:
MUI,works for any number of shops and heroes
makes you able ostore 132 or 144 items in one shop
(to store 144 items you need to remove Cancel item from Lists)
___________________________________________________________________________________________________________________
How To Copy:
copy from map to map but dont close the editor,so do it by "Ctrl + O" or "File>Open Map..."
> you need to copy "Shop Lists" folder,custom abilities and Cancel item
___________________________________________________________________________________________________________________
How to use:
- Lists are Dummy Units,to add List to Shop your Shop must sell that List (Techtree - Units Sold > put your dummy units that are lists here )
- Lists must be able to sell item-type "Cancel" to have a cancel button
- To make shop´s lists work you must create Shop and his Lists at the same point (see example at "Examples" folder)
___________________________________________________________________________________________________________________
this line(s) may be disabled/changed when you paste this trigger in your map
Open List
Events
Unit - A unit Sells a unit
Conditions
(Level of Select Hero [Arrow] for (Triggering unit)) Not equal to 0
Actions
-------- Open List --------
Set Variable Set POINT = (Position of (Triggering unit))
Set Variable Set UG = (Units within 0.01 of POINT matching ((Unit-type of (Matching unit)) Equal to (Unit-type of (Sold unit))).)
Selection - Select UG for (Owner of (Buying unit))
Custom script: call DestroyGroup(udg_UG)
Custom script: call RemoveLocation(udg_POINT)
you need to put this at your Map initialization trigger
Events for Cancel List ESC
Events
Map initialization
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Trigger - Add to Cancel_List_ESC <gen> the event ((Picked player) skips a cinematic sequence)
this line(s) may be disabled/changed when you paste this trigger in your map
(Level of Select Hero [No Arrow] for (Random unit from UG)) Not equal to 0
Set UG = (Units within 0.01 of POINT matching ((Level of Select Hero [Arrow] for (Matching unit)) Not equal to 0))
Cancel List ESC
Events
Conditions
Actions
-------- Cancel List --------
Set Variable Set UG = (Units currently selected by (Triggering player))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Select Hero [No Arrow] for (Random unit from UG)) Not equal to 0
Then - Actions
Set Variable Set POINT = (Position of (Random unit from UG))
Custom script: call DestroyGroup(udg_UG)
Set Variable Set UG = (Units within 0.01 of POINT matching ((Level of Select Hero [Arrow] for (Matching unit)) Not equal to 0).)
Selection - Select UG for (Triggering player)
Custom script: call RemoveLocation(udg_POINT)
Else - Actions
Custom script: call DestroyGroup(udg_UG)
this line(s) may be disabled/changed when you paste this trigger in your map
Set UG = (Units within 0.01 of POINT matching ((Level of Select Hero [Arrow] for (Matching unit)) Not equal to 0))
Cancel List Item
Events
Unit - A unit Sells an item (from shop)
Conditions
(Item-type of (Sold Item)) Equal to Cancel
Actions
-------- Cancel List --------
Set Variable Set POINT = (Position of (Triggering unit))
Set Variable Set UG = (Units within 0.01 of POINT matching ((Level of Select Hero [Arrow] for (Matching unit)) Not equal to 0).)
Selection - Select UG for (Owner of (Buying unit))
Custom script: call DestroyGroup(udg_UG)
Custom script: call RemoveLocation(udg_POINT)
Create 1 Arcane Vault
Events
Map initialization
Conditions
Actions
Set Variable Set POINT = (Player 1 (Red) start location)
Unit - Create 1 . Arcane Vault [Shop] for Neutral Hostile at POINT facing Default building facing degrees
Custom script: call RemoveLocation(udg_POINT)
Set Variable Set POINT = (Position of (Last created unit))
Unit - Create 1 . [List 1 Books] for Neutral Hostile at POINT facing Default building facing degrees
Unit - Create 1 . [List 2 Swords] for Neutral Hostile at POINT facing Default building facing degrees
Unit - Create 1 . [List 3 Rings] for Neutral Hostile at POINT facing Default building facing degrees
Custom script: call RemoveLocation(udg_POINT)
Create Arcane Vaults
Events
Time - Every 0.50 seconds of game time
Conditions
(Evaluation count of (This trigger)) Not equal to 6
Actions
-------- this location can be setted anywhere you want --------
Set Variable Set POINT = (Random point in (Playable map area))
Trigger - Run Arcane_Vault_Shop_and_Lists <gen> (ignoring conditions)
Arcane Vault Shop and Lists
Events
Map initialization
Conditions
Actions
Unit - Create 1 . Arcane Vault [Shop] for Neutral Hostile at POINT facing Default building facing degrees
Custom script: call RemoveLocation(udg_POINT)
Set Variable Set POINT = (Position of (Last created unit))
Unit - Create 1 . [List 1 Books] for Neutral Hostile at POINT facing Default building facing degrees
Unit - Create 1 . [List 2 Swords] for Neutral Hostile at POINT facing Default building facing degrees
Unit - Create 1 . [List 3 Rings] for Neutral Hostile at POINT facing Default building facing degrees
Custom script: call RemoveLocation(udg_POINT)
because if there is not enough free place for shop,than the shop would be slightly moved to some free place and the system fails
X
Events
Map initialization
Conditions
Actions
Player Group - Make (All players) treat (All players) as an Ally with shared vision
For each (Integer A) from 1 to 12 , do (Actions)
Loop - Actions
Player - Set (Player((Integer A))) . Current gold to 1000000
Player - Set (Player((Integer A))) . Current lumber to 1000000
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.