1. Are you planning to upload your awesome spell or system to Hive? Please review the rules here.
    Dismiss Notice
  2. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  3. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  4. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  5. Travel to distant realms and encounter scenes unknown to the common folk. The Greatest of Adventures is upon us with the 8th Cinematic Contest. Join in on a fun ride.
    Dismiss Notice
  6. The 18th Icon Contest is ON! Choose any ingame unit and give him/her Hero abilities. Good luck to all.
    Dismiss Notice
  7. Contestants are to create a scene set in the Stone Age. Come and see what you can come up with. We wish you the best of luck!
    Dismiss Notice
  8. Colour outside the lines! Techtree Contest #13 is a go. The contest is optionally paired.
    Dismiss Notice
  9. Greetings cerebrates, our Swarm needs new spawners that will have numerous children. Join the HIVE's 31st Modeling Contest - Spawners and Spawned! The contest is optionally paired.
    Dismiss Notice
  10. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Item Lists v1.01

Submitted by ALiEN95
This bundle is marked as approved. It works and satisfies the submission rules.
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)
- 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)

Triggers

  • 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


Change Log

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
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.
  1. 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.
     
  2. RaidonGod

    RaidonGod

    Joined:
    Oct 7, 2008
    Messages:
    285
    Resources:
    5
    Models:
    3
    Icons:
    2
    Resources:
    5
    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. :)
     
  3. tjordell

    tjordell

    Joined:
    Jan 25, 2009
    Messages:
    554
    Resources:
    5
    Icons:
    1
    Spells:
    4
    Resources:
    5
    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!
     
  4. x3GlikE

    x3GlikE

    Joined:
    Jul 7, 2010
    Messages:
    658
    Resources:
    0
    Resources:
    0
    Nice this would go good in my ORPG map i am makeing called chaos ORPG....
    +rep
     
    Last edited: Aug 20, 2010
  5. Noobsmoke

    Noobsmoke

    Joined:
    Nov 20, 2007
    Messages:
    631
    Resources:
    1
    Spells:
    1
    Resources:
    1
    good idea ^^ 5/5
     
  6. San_Melon

    San_Melon

    Joined:
    Nov 14, 2008
    Messages:
    104
    Resources:
    2
    Maps:
    2
    Resources:
    2
    n1thats my words xD

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

    +Rep
     
  7. tonyrydland

    tonyrydland

    Joined:
    Jan 23, 2009
    Messages:
    182
    Resources:
    0
    Resources:
    0
    Very useful and a nice one too. But I found one thing, when taking the cursor over the ring icon it says "Swords". You may change that :)
     
  8. ALiEN95

    ALiEN95

    Joined:
    Mar 4, 2009
    Messages:
    1,148
    Resources:
    1
    Spells:
    1
    Resources:
    1
    ty,i will change it in next update :)


    thank you all for the feedback :D
     
    Last edited: Jul 28, 2010
  9. ALiEN95

    ALiEN95

    Joined:
    Mar 4, 2009
    Messages:
    1,148
    Resources:
    1
    Spells:
    1
    Resources:
    1
    "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: Jul 28, 2010
  10. Garfield1337

    Garfield1337

    Joined:
    Jul 6, 2009
    Messages:
    1,806
    Resources:
    4
    Maps:
    1
    Spells:
    3
    Resources:
    4
    @Alien95
    Atleast give some credits to Chizume,this was her idea afterall and you get all the credits at the moment :thumbs_down:
     
  11. ALiEN95

    ALiEN95

    Joined:
    Mar 4, 2009
    Messages:
    1,148
    Resources:
    1
    Spells:
    1
    Resources:
    1
    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: Jul 29, 2010
  12. Garfield1337

    Garfield1337

    Joined:
    Jul 6, 2009
    Messages:
    1,806
    Resources:
    4
    Maps:
    1
    Spells:
    3
    Resources:
    4
    I didn't ask to give me credits,i said for Chizume. Also i rated 3/5,it's too simple for a better mark o_O
     
  13. ALiEN95

    ALiEN95

    Joined:
    Mar 4, 2009
    Messages:
    1,148
    Resources:
    1
    Spells:
    1
    Resources:
    1
    no,il give credits to you both and use your LocalPlayer idea if it is allowed to use Local Player

    it is simple but it is not so easy to make it so simple :D (never tough i will not need dummy button items for lists xD )
     
  14. Garfield1337

    Garfield1337

    Joined:
    Jul 6, 2009
    Messages:
    1,806
    Resources:
    4
    Maps:
    1
    Spells:
    3
    Resources:
    4
    You don't have to worry about desync,i've tested it and there were no errors :infl_thumbs_up:
     
  15. Chizume

    Chizume

    Joined:
    May 26, 2009
    Messages:
    593
    Resources:
    1
    Maps:
    1
    Resources:
    1
    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
     
  16. ALiEN95

    ALiEN95

    Joined:
    Mar 4, 2009
    Messages:
    1,148
    Resources:
    1
    Spells:
    1
    Resources:
    1
    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.)
     
  17. defskull

    defskull

    Joined:
    Mar 27, 2008
    Messages:
    7,978
    Resources:
    17
    Spells:
    17
    Resources:
    17
    I just want to know ONE simple thing:
    Is this system supports MPI (Multi-player Instanceable) ???
    As in, many players can use it at once, and will NOT cause a desync, creating 2 split servers... ???
     
  18. ALiEN95

    ALiEN95

    Joined:
    Mar 4, 2009
    Messages:
    1,148
    Resources:
    1
    Spells:
    1
    Resources:
    1
    no problems with that and it also supports any number of shops.
     
  19. CoLd Bon3

    CoLd Bon3

    Joined:
    Aug 8, 2010
    Messages:
    948
    Resources:
    4
    Spells:
    4
    Resources:
    4
    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). :)