This is kodo Demo specialist 01
Keep in mind that it is a unit type, not a specific unit.
Your probably guessing this is for a kodo tag. Your right. But this specific kodo is designed to attack only buildings. I want it to run around the map randomly, kill a building at random, and then repeat that process non stop. But there could be some rare time when the unit isn't within range of a building. Not only that I have a couple of questions about the triggers I have made so far.
Heres the triggers I made.
This one gets the kodo going when it enters the game or its respawned
This trigger is used to get the kodo going again if it doesn't detect a building
This is used if the kodo was successful at finding and killing in the first trigger
So here are my question.
Does "unit within 1000.00 of (position of trigger/killing unit)" leak the way it is set up now?
How do I make a condition to check if there is a building within 1000 range of tiggering/killing unit?
How do I make sure that the unit that is issued a move then attack order in the "no buiding" trigger is the same one that failed at finding a building in trigger 1,2 or 3? I will have mroe than one of these little critters running around.
Sense the unit is set up to only attack buildings does attack unit garantee that it will target and attack a building or will it target a unit and only attack it if it is a building?
Any help will be welcomed. Thanks.
Keep in mind that it is a unit type, not a specific unit.
Your probably guessing this is for a kodo tag. Your right. But this specific kodo is designed to attack only buildings. I want it to run around the map randomly, kill a building at random, and then repeat that process non stop. But there could be some rare time when the unit isn't within range of a building. Not only that I have a couple of questions about the triggers I have made so far.
Heres the triggers I made.
This one gets the kodo going when it enters the game or its respawned
Trigger:
- kodo demo move out
- Events
- Unit - A unit enters Main deaths spawn <gen>
- Conditions
- (Unit-type of (Triggering unit)) Equal to Kodo demo specialist 01
- Actions
- Set kodo_dem_01 = (Random point in (Playable map area))
- Unit - Order (Triggering unit) to Move To kodo_dem_01
- Custom script: call RemoveLocation (udg_kodo_dem_01)
- If (NEED HELP HERE) then do (Unit - Order (Triggering unit) to Attack (Random unit from (Units within 1000.00 of (Position of (Triggering unit))))) else do (Trigger - Run (kodo demo no building) (ignoring conditions))
- Events
This trigger is used to get the kodo going again if it doesn't detect a building
Trigger:
- kodo demo no building
- Events
- Conditions
- (Unit-type of (Triggering unit)) Equal to Kodo demo specialist 01
- Actions
- Set kodo_dem_01 = (Random point in (Playable map area))
- Unit - Order (Triggering unit) to Move To kodo_dem_01
- Custom script: call RemoveLocation (udg_kodo_dem_01)
- If (need help again) then do (Unit - Order (Triggering unit) to Attack (Random unit from (Units within 1000.00 of (Position of (Triggering unit))))) else do (Trigger - Run (This trigger) (ignoring conditions))
This is used if the kodo was successful at finding and killing in the first trigger
Trigger:
- kodo demo kill move
- Events
- Unit - A unit Dies
- Conditions
- (Unit-type of (Killing unit)) Equal to Kodo demo specialist 01
- Actions
- Set kodo_dem_01 = (Random point in (Playable map area))
- Unit - Order (Killing unit) to Move To kodo_dem_01
- Custom script: call RemoveLocation (udg_kodo_dem_01)
- If (help help help) then do (Unit - Order (Killing unit) to Attack (Random unit from (Units within 1000.00 of (Position of (Killing unit))))) else do (Trigger - Run (kodo demo no building) (ignoring conditions))
- Events
So here are my question.
Does "unit within 1000.00 of (position of trigger/killing unit)" leak the way it is set up now?
How do I make a condition to check if there is a building within 1000 range of tiggering/killing unit?
How do I make sure that the unit that is issued a move then attack order in the "no buiding" trigger is the same one that failed at finding a building in trigger 1,2 or 3? I will have mroe than one of these little critters running around.
Sense the unit is set up to only attack buildings does attack unit garantee that it will target and attack a building or will it target a unit and only attack it if it is a building?
Any help will be welcomed. Thanks.