• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Item Lists v1.01


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)
- all you have to do is copy the triggers and make shop and his lists as shown in "Create 1 Arcane Vault" trigger
___________________________________________________________________________________________________________________

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)


  • 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 POINT = (Position of (Triggering unit))
      • 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)
  • .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 (Player - (Picked player) skips a cinematic sequence)
  • Cancel List ESC
    • Events
    • Conditions
    • Actions
      • -------- Cancel List --------
      • 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 POINT = (Position of (Random unit from UG))
          • Custom script: call DestroyGroup(udg_UG)
          • 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)
  • 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 POINT = (Position of (Triggering unit))
      • 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 (the shop with item lists)
    • Events
      • Map initialization
    • Conditions
    • Actions
      • 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 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)
example to create multiple shops is in the map



v1.00
- First Release
v1.01
- no need for dummy items that would open the item List
- no need to edit Point Value for shop
- POINT is re-set when real Shop is created due to bugs


please give cedits if you use/edit the spell in your map
Feel Free To Comment :)


Keywords:
item, shop, list, lists
Contents

Just another Warcraft III map (Map)

Reviews
14:09, 23rd Feb 2011 Bribe: This looks fine, can't really get much better without just converting the whole thing into JASS. It's got a lot of work put into it and remains simple, two things I value.

Moderator

M

Moderator

14:09, 23rd Feb 2011
Bribe:

This looks fine, can't really get much better without just converting the whole thing into JASS. It's got a lot of work put into it and remains simple, two things I value.
 
Level 9
Joined
Oct 7, 2008
Messages
299
simple but useful. the triggers looks good for me, no leaks and MPI as far as I can see.
Gonna test it right now.

EDIT:
Testet it. Works properly ingame. Did not find any bug or glitches. Good work. :)
Maybe I will challenge it in the world editor and experiment a little bit and give a full review.
For now on, I vote for approval. :)
 
Level 11
Joined
Jan 25, 2009
Messages
572
Good system. I like it. Really good for DotA-like maps. =D

System Results:

Interface - N/A (Doesn't count)

System - 5/5

Test Map - 3/5

MUI, Leakless and Lagless - 5/5

User Friendly - 4/5

Overall Results:

N/A+5+3+5+4 = 17 of 20 = Epic Quality! Download and use!
+rep from me!
 
Level 7
Joined
Nov 14, 2008
Messages
118
Orginally Posted by RaidonGod
simple but useful. the triggers looks good for me, no leaks and MPI as far as I can see.
Gonna test it right now.

EDIT:
Testet it. Works properly ingame. Did not find any bug or glitches. Good work. :)
Maybe I will challenge it in the world editor and experiment a little bit and give a full review.
For now on, I vote for approval. :)

n1thats my words xD

..
this spell is rly nice
(good idea dude) :]
-rate 5/5
-vote for approvel

+Rep
 
Level 13
Joined
Mar 4, 2009
Messages
1,156
"hvo-busterkomo:

* The system should be able to support any number of shops.
* The owner of the shop should also be configurable (in most cases neutral hostile wouldn't be used)."

wtf,sorry i dont get it
it already does do both of those things -.-

as i said,all you need to do is to crete the shop and his dummy lists at same point and it will work ,owner of show can be anyone...
 
Last edited:
Level 13
Joined
Mar 4, 2009
Messages
1,156
@Alien95
Atleast give some credits to Chizume,this was her idea afterall and you get all the credits at the moment :thumbs_down:
I should only give cerdits to you because you made similar system and i would add local placer for cancel list to avoid the dummy index

and Chizume it more like requesting a system ...

anyway if you want i will give credits you to both

and btw ,did you have to rate for 1/5 lol xD
this has nothing to do with rateing
 
Last edited:
Level 11
Joined
May 26, 2009
Messages
760
This is a bit silly. Garfield1337's system is aesthetically better and seems to work just as fine technically.

Anyhow, good idea to share with the community. It could maybe prove to be useful for other's maps :)

Crediting is essential here at the Hive as I understand it. Here is the link to the original discussion and creation of this system.

Yours,
Chizume
 
Level 13
Joined
Mar 4, 2009
Messages
1,156
v1.02
-no indexes on cancel button
-units that are lists must be sold at shop (train if you dont want indexes)
-cancel button will be a channel ability
-credits to Garfield1337 (for GetLocalPlayer)
-credits to Chizume (for idea)
-ALiEN95 (makeing it simple.)
 
Level 14
Joined
Aug 8, 2010
Messages
1,022
The system is really, really good!!
But.. the portrait of the "category units" (the dummy units) is not visible because they have no model. So i recommend putting the same model for both the main shop and the secondary ones but change the "Art - Scaling value" of the secondary shops to 0.00 (by shift-clicking on the field). :)
 
Level 12
Joined
Feb 27, 2019
Messages
399
It works, but it seems it leaks 1 unit per use.
Indeed the unit sold by the main shop (ex "List 1 books" unit) is created when you buy it, but nothing cleans it no ?

Also, a few fixes are necessary for the objects:
- Remove leaking sold unit in "Open List" trigger
- Make units invulnerable in object editor
And others cosmetic:
- Have selection scale identical for lists & main shop

Also, reforged introduced a regression: you have to be carefull with pathing or dummy shops will be created at the wrong position, and the system will bug :(
 
Last edited:
Top