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.

[General] Auto Search

Discussion in 'World Editor Help Zone' started by Ev0_HunteR, Sep 7, 2012.

  1. Ev0_HunteR

    Ev0_HunteR

    Joined:
    Mar 1, 2012
    Messages:
    21
    Resources:
    0
    Resources:
    0
    hey guy ~ i wan to make a survival map ~ but how set enermy unit (computer unit ) auto search survival and attack them ? please help me
     
  2. GIMLI_2

    GIMLI_2

    Joined:
    Mar 21, 2011
    Messages:
    1,370
    Resources:
    2
    Maps:
    2
    Resources:
    2
    well there are 2 methods:
    first of all, make the whole map visible for the computer unit
    1 method: create a trigger and order them every.. lets say 5 seconds to attack you
    2 method (i dont know if that works): set the enemy units Target acquisition range to maximum, try that out, if it dont work --> method 1, if u need help with the triggers, say it
     
  3. rulerofiron99

    rulerofiron99

    Joined:
    Jul 10, 2006
    Messages:
    3,129
    Resources:
    14
    Maps:
    4
    Spells:
    9
    Tutorials:
    1
    Resources:
    14
    GIMLI 2 is definitely on the right track, try solution 2 (acquisition range to maximum) first, that should work. If it doesn't, create a visibility filter for the computer player that reveals the whole map.
     
  4. Ev0_HunteR

    Ev0_HunteR

    Joined:
    Mar 1, 2012
    Messages:
    21
    Resources:
    0
    Resources:
    0
    can make trigger for me ?
     
  5. Elfansoer

    Elfansoer

    Joined:
    Aug 26, 2012
    Messages:
    122
    Resources:
    0
    Resources:
    0
    I think for Acquisition is on Object Editor tab, not on Trigger tab... --Just to make sure it's maximum, shift-click on the data...--
    (It's in "Combat - Acquisition Range", I think...)
     
  6. Ev0_HunteR

    Ev0_HunteR

    Joined:
    Mar 1, 2012
    Messages:
    21
    Resources:
    0
    Resources:
    0
    but the trigger make him attack me is how ?
     
  7. iChaos

    iChaos

    Joined:
    May 4, 2012
    Messages:
    167
    Resources:
    0
    Resources:
    0
    • Attack
      • Events
        • Time - Every 10.00 seconds of game time
      • Conditions
      • Actions
        • -------- I think this is for every 10 seconds of game time, okay? --------
        • Set Attacker = No unit
        • Set To_be_Attacked = No unit
        • Set Attacked_Group = (Units in (Playable map area) matching ((Matching unit) Equal to To_be_Attacked))
        • Unit Group - Pick every unit in Attacked_Group and do (Actions)
          • Loop - Actions
            • Unit - Order Attacker to Attack (Picked unit)
        • -------- Well, this one is really a less efficient trigger :) --------
     
  8. Maestros

    Maestros

    Joined:
    Oct 26, 2008
    Messages:
    373
    Resources:
    1
    Spells:
    1
    Resources:
    1
    Hmmmmm I believe you guys are on the wrong track ~no offense~

    He wants the computer to search, not to aquire his target from 10 miles away. I believe the correct way for this to happen would be to order the computer to randomly walk across the map checking if there is enemies there. With your way (visibility max - attack orders) the enemy will find you no matter what, which is not good in a survival map now is it?
    So why dont we do this!

    Set regions in the map!
    Covering all crossroads, places where resources are etc
    And covering various places on the map!

    And then, Order the enemy unit, to "Attack-Ground" that specific location! So not only will it go in that location but will attack anyone he finds in his way!
    When he reaches that location, order it to "Attack-Ground" a different location, etc etc.

    This seems like a search to me, instead of sniper tracking ~~
     
  9. Ev0_HunteR

    Ev0_HunteR

    Joined:
    Mar 1, 2012
    Messages:
    21
    Resources:
    0
    Resources:
    0
    ..i still nt so understand
     
  10. coolyoshi1

    coolyoshi1

    Joined:
    Jul 25, 2009
    Messages:
    179
    Resources:
    2
    Maps:
    1
    Spells:
    1
    Resources:
    2
    Dont use max aquisition range unless its for really basic survival maps with only 1 player and 1 unit.
    I think Maestros idea sounds better.
    Hes suggesting you make regions all over your map and make triggers which orders the computer units to attack ground a random region.
    And when the unit enters the region (detected by Event - unit enters region) you use triggers again to order the unit to attack ground another random region.
    This probably wouldnt work for big maps though.
    How big is your map??
     
  11. Elfansoer

    Elfansoer

    Joined:
    Aug 26, 2012
    Messages:
    122
    Resources:
    0
    Resources:
    0
    And I believe he's on the right track!
    (And so, he's declaring that he's on the wrong track...)

    If you're using acquisition range, then it's only a matter of time until "they" found you. By using Maestros' method, it'll be more challenging.
    (Unless, you placed enemies behind you, and want the enemy chasing you at all time until you're survived...)

    So, Maestros' method is to create random locations on your map, and order enemies to attack-move to one of locations you created, and always looking randomly...
    (Such as the ghost on the-old-style-but-still-challenging Pacman...)