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 havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Dismiss Notice
  5. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    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.

About Unit picked dropped item automatically

Discussion in 'World Editor Help Zone' started by o2bryan, Mar 14, 2012.

  1. o2bryan

    o2bryan

    Joined:
    Mar 9, 2009
    Messages:
    173
    Resources:
    0
    Resources:
    0
    About Unit picked dropped item automatically

    Hey guys , can you guys teach me how to do a trigger which makes unit automatically pick dropped item on near by distance ?

    E.G :
    Peasant Dies then drop a tome , a footman which near by about 300 distance will auto pick up the tome .


    Guys pls help me
     
  2. Lifee_72

    Lifee_72

    Joined:
    Mar 5, 2009
    Messages:
    246
    Resources:
    0
    Resources:
    0
    Ok your trigger should look like this :
    • Untitled Trigger 001
      • Events
        • Unit - A unit Dies
      • Conditions
        • (Unit-type of (Triggering unit)) Equal to Peasant
      • Actions
        • Item - Create Tome of Experience at (Position of (Triggering unit))
        • Unit Group - Pick every unit in (Units within 300.00 of (Position of (Dying unit)) matching ((Unit-type of (Matching unit)) Equal to Footman)) and do (Actions)
          • Loop - Actions
            • Unit - Order (Picked unit) to Right-Click (Last created item)


    Note : Don't forget to clear the leaks.