1. 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
  2. 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 haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Lead your forces to battle in the 15th Techtree Contest. The call is yours, commander!
    Dismiss Notice
  4. The reforging of the races is complete. Come see the 14th Techtree Contest Results.
    Dismiss Notice
  5. It's time to choose your horse in the race - the 32nd Modeling Contest Poll is up!
    Dismiss Notice
  6. 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 Removal System

Discussion in 'World Editor Help Zone' started by SuperbAvalon, Sep 1, 2014.

  1. SuperbAvalon

    SuperbAvalon

    Joined:
    Nov 14, 2012
    Messages:
    145
    Resources:
    1
    Maps:
    1
    Resources:
    1
    I'm positive one is around here, does anyone know a link to a system using GUI that removes every item on the map every so often? I would be deeply appreciative if you shared it!
     
  2. Garodar

    Garodar

    Joined:
    Dec 11, 2012
    Messages:
    390
    Resources:
    2
    Maps:
    2
    Resources:
    2
    I don't know any map that has constant item appearing outta nowhere.
     
  3. SuperbAvalon

    SuperbAvalon

    Joined:
    Nov 14, 2012
    Messages:
    145
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Like in COT RPG: Plains of Medea, every few minutes all items on the ground on the entire map were removed. I need something like that, in GUI
     
  4. Nichilus

    Nichilus

    Joined:
    Sep 26, 2009
    Messages:
    1,997
    Resources:
    0
    Resources:
    0
    • Global Item Removing
      • Events
        • Time - Every 120.00 seconds of game time
      • Conditions
      • Actions
        • Item - Pick every item in (Playable map area) and do (Actions)
          • Loop - Actions
            • Item - Remove (Picked item)

    This picks all items in map and removes them. It only picks items that are no ground, not those that are carried, so it is safe.
    However I would use a more complicated system as this one has one big flaw - if it happens that there is a desired item on the ground (let's say you just killed some epic foe and he dropped it) and you're on your way to pick it up (or make space in your inventory to pick up that item) and it just so happens that the timer is up (= a few minutes have passed), then the item you want will disappear too, even though it is on ground for only a few seconds.
    tl;dr
    The trigger above does not differentiate between items, so it may remove item that just dropped from enemy and which you want.


    A more complex, but better system would be one that handles all items and puts them on separate "timers" (well not exactly timers but more like iterations of general periodic event).
     
  5. deathismyfriend

    deathismyfriend

    Joined:
    Oct 24, 2012
    Messages:
    6,526
    Resources:
    14
    Spells:
    12
    Tutorials:
    2
    Resources:
    14
  6. SuperbAvalon

    SuperbAvalon

    Joined:
    Nov 14, 2012
    Messages:
    145
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Thanks a million guys :)
     
  7. deathismyfriend

    deathismyfriend

    Joined:
    Oct 24, 2012
    Messages:
    6,526
    Resources:
    14
    Spells:
    12
    Tutorials:
    2
    Resources:
    14
    No problem. If you go to use mine I will try to update it in the next 12 hrs.
    I may make a JASS version that is GUI friendly. I'll then addit to spell section for you to use.
     
  8. Mapas

    Mapas

    Joined:
    Jun 28, 2013
    Messages:
    129
    Resources:
    0
    Resources:
    0
    Don't use every 120 seconds then remove item, this is very annoying my boy, instead set the item life to a certain ammount, like 60 hitpoints, then run a trigger every second every item in playable map area or specify the temp_region and afterwards reduce every picked item's health by 1, when they have 0 life points the item will be gone. Then create another trigger and set the item's health to 60 again if a hero gets the item to give it again 60 seconds if he decides to drop it later to do some arrangement.
     
  9. deathismyfriend

    deathismyfriend

    Joined:
    Oct 24, 2012
    Messages:
    6,526
    Resources:
    14
    Spells:
    12
    Tutorials:
    2
    Resources:
    14
    This can be done this way but it does have its bugs. Some items don't have a life value so it would remove them.

    You should also read the other posts as this was already described as a bad idea above.