• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Need help creating a (attack system) (survival based)

Status
Not open for further replies.
Level 11
Joined
Nov 1, 2008
Messages
828
I really need help creating this system!

The system must have any type of "kodo", "kodo extreme" etc be able to attack everything on map with out getting glitched, when you build you mostly trap your self, but i need this system so it always attacks a reachable structure.

+rep, +credit.

I need help quickly as testing map with people get them bored.

This is the current simple system i have implanted in to my map.
  • Actions
    • Set TempGroup = (Units of type Kodo)
    • Set TempLoc = (Position of (Random unit from RunnerToAttackGroup))
    • Unit Group - Order TempGroup to Attack-Move To TempLoc
    • Custom script: call DestroyGroup(udg_TempGroup)
    • Custom script: call RemoveLocation(udg_TempLoc)
Thanks!

UPDATE

Honestly, they will still get stuck when they target the runner only when the runner is behind a walled base. Is there anyway of avoiding this? Like attack closest and reachable unit. I really need a responce fast because of how urgent i need to test.

I have checked an unprotected kodotag map to see how they did it, i basicly have exactly the same. Still does the same thing, although looking at fortress survival alpha may have the triggers i need.
But more help would be very helpful. +rep, +credit!


Note: I have tested so many times that this is what the kodos are doing,
i quickly make a base and create a blockade,
__
| | Where the space down the bottom is the entrence, the kodos would come here
| | < Here, and get stuck. When i destroy the blockade, the kodos instantly go through the entrence, but when i block it again, the kodos get stuck. I need a system where the
| | Kodos will destroy the blockade to get to the destination rather then getting stuck!
__
 
Last edited:
Level 11
Joined
Nov 1, 2008
Messages
828
Here is a image of how big the map is, there are 4 arenas. This is the top left sector of the map.

And the kodos are controled by AI. (Player 12)

attachment.php
 

Attachments

  • Capture.JPG
    Capture.JPG
    354.5 KB · Views: 476
Level 17
Joined
Feb 11, 2011
Messages
1,860
Okay. Try this:
  • Custom script: set bj_wantDestroyGroup = true
  • Unit Group - Pick every unit in (Units owned by Player 12 (Brown) of type Footman) and do (Actions)
    • Loop - Actions
      • AI - Ignore (Picked unit)'s guard position
This was my 555th post! :D
 
Level 11
Joined
Nov 1, 2008
Messages
828
Honestly, they will still get stuck when they target the runner only when the runner is behind a walled base. Is there anyway of avoiding this? Like attack closest and reachable unit. I really need a responce fast because of how urgent i need to test.

I have checked an unprotected kodotag map to see how they did it, i basicly have exactly the same. Still does the same thing, although looking at fortress survival alpha may have the triggers i need.
But more help would be very helpful. +rep, +credit!


Note: I have tested so many times that this is what the kodos are doing,
i quickly make a base and create a blockade,
__
| | Where the space down the bottom is the entrence, the kodos would come here
| | < Here, and get stuck. When i destroy the blockade, the kodos instantly go through the entrence, but when i block it again, the kodos get stuck. I need a system where the
| | Kodos will destroy the blockade to get to the destination rather then getting stuck!
__
 
Last edited:
Level 11
Joined
Nov 1, 2008
Messages
828
Alright, here you go.


attachment.php

attachment.php

attachment.php

attachment.php

attachment.php

attachment.php

 

Attachments

  • War3 2011-12-16 18-06-10-62.jpg
    War3 2011-12-16 18-06-10-62.jpg
    163.1 KB · Views: 216
  • War3 2011-12-16 18-06-15-29.jpg
    War3 2011-12-16 18-06-15-29.jpg
    159.9 KB · Views: 167
  • War3 2011-12-16 18-06-36-63.jpg
    War3 2011-12-16 18-06-36-63.jpg
    167.8 KB · Views: 145
  • War3 2011-12-16 18-07-35-63.jpg
    War3 2011-12-16 18-07-35-63.jpg
    165.7 KB · Views: 201
  • War3 2011-12-16 18-07-37-53.jpg
    War3 2011-12-16 18-07-37-53.jpg
    164.8 KB · Views: 130
  • War3 2011-12-16 18-07-42-35.jpg
    War3 2011-12-16 18-07-42-35.jpg
    156.8 KB · Views: 142
Level 11
Joined
Nov 1, 2008
Messages
828
Yepp,
the kodo player even has full vision of map.

Here is a part of the main triggers, where ("RunnerToAttackGroup") is the runner that they go after. The AI disable is implanted somewhere else.

ps, my thread does not refresh proply, i checked this 10mins ago and you haven't posted and arcording to this you posted an hour ago.


  • Auto Attack Crazy
    • Events
      • Unit - A unit enters Arena1 Start <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Kodo
    • Actions
      • Set TempGroup = (Units of type Kodo)
      • Set TempLoc = (Position of (Random unit from RunnerToAttackGroup))
      • Unit Group - Order TempGroup to Attack-Move To TempLoc
      • Custom script: call DestroyGroup(udg_TempGroup)
      • Custom script: call RemoveLocation(udg_TempLoc)
 
Level 17
Joined
Feb 11, 2011
Messages
1,860
Give this a shot:

  • Trigger
    • Events
      • Unit - A unit enters Arena1 Start <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Kodo
    • Actions
      • Set KodoGroup = (Units of type Kodo)
      • Trigger - Turn on Periodic Orders
  • Peroidic Orders
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • Set loc = (Position of (Random unit from RunnerToAttackGroup))
      • Unit Group - Pick every unit in KodoGroup and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To loc
      • Custom script: call RemoveLocation(udg_loc)
 
Level 11
Joined
Nov 1, 2008
Messages
828
Well, i think that won't do much good either, because every 5 seconds the kodos would attack something else each 5 seconds i think. Or does position of random unit is true what they say where it attacks the closest unit. Though it would be kinda hard if there were lots of close units.
 
Level 17
Joined
Feb 11, 2011
Messages
1,860
  • Trigger
    • Events
      • Unit - A unit enters Arena1 Start <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Kodo
    • Actions
      • Set KodoGroup = (Units of type Kodo)
      • Set target = (Random unit from RunnerToAttackGroup)
      • Trigger - Turn on Peroidic Orders <gen>
  • Peroidic Orders
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • Set loc = (Position of target)
      • Unit Group - Pick every unit in KodoGroup and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To loc
      • Custom script: call RemoveLocation(udg_loc)
 
Level 11
Joined
Nov 1, 2008
Messages
828
Well, still doesn't really work. Although it could be fixed if it its possible to do,
if kodo = stuck
move stuck kodo to attack wall.

because really when you create a walled base that is up high on a cliff, honestly the kodo is far away from the wall and all it does is just go to it but doesn't know there is another way around. :\
 
Status
Not open for further replies.
Top