HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Inproving Spawn's "Smartness"

10-23-2003, 01:49 AM#1
Hunter0000
Hmm, how can you set a unit( a gate in this case) to be attacked first even though it does not attack and while other units are attacking the unit I want to attack the gate. Can I do this with priority oy should I give the gate a REALLY slow 2-2 dmg attack so they are tricked into attacking it? Or both?

GRR... SPAWNS R SO DUMB! :ggani:
10-23-2003, 01:50 AM#2
Another Stold in disguise
You meen like the cenamitic at the and of Skibbis?
10-23-2003, 01:52 AM#3
AnarkiNet
not sure but i think u give it a higher priority value, in the units stats, that makes it more pleasureable for the units to attack than other units with lower priorities. er, at least, thats how i think it works :P
10-23-2003, 01:53 AM#4
Hunter0000
No, how the hell did you get that out of my post?

I have a wall(cliff-style wall) with a gate in the hole in it(blocks it up). Archers and whatever shoot from ontop of the wall and attacks simply try to run into the ciliff because they are too stupid to attack the gate, allthough they do occansionly take a swing at it. How can I make them want to attack the gate is what im askin.

EDIT: that was in reply to the first reply, priority alone wont work so im going to try a 2-2 spash attack.

Double Edit: hmm is there a way to do 0 dmg? because the moment a unit is attacked by somthing other than the gate it goes back and runs on the wall again.
10-23-2003, 02:17 AM#5
Hunter0000
Yay!

Everyone here, for future notice, thise problem has an easy solution.

go the gamplay constants and the chaos DMG table and set all values to 0

Make the atteintion drawing unit have a 0 cooldown chaose attack with some splash range, this will deal 0 dmg to those units, HOWWEVER it will trick them into attacking!

:ggani: I AM HAPPY :ggani:
10-23-2003, 02:25 AM#6
Hunter0000
ug:////

is there any way to remove the "miss" text because it shows in a stream ontop of the gate.

EDIT: DAMNIT now ir wont work anymore, im gett'in mad lol, any ideas?

:cuss: IM MAD :cuss:
10-23-2003, 03:19 AM#7
Das Jank
Well if you tried setting the priority to really high already and it hasnt worked then make a location around the gate. Then have a trigger that when units come into the location it check if the gate is still there and if it is they are ordered to attack it.
10-23-2003, 06:04 AM#8
Zachary_Shadow
You could always just do a trigger, where the units entering a region, recives an order to attack the gate? Shouldn't be too hard...

Don't give it an attack, looks stupid...just do the above, and you should be fine. Specify the units by if/then/else actions and give the condition of each unit that needs to be attacking the gate.

EDIT: Didn't see that Das Jank had written nearly the same...ohh well :P
10-23-2003, 10:01 AM#9
Balthamos
you say you're seeing the misses of the gate? in that the gate's attacks are missing right? well I'm guessing the gate is under your control or your allies, why not just change the ownership to neutral passive or something...
10-23-2003, 05:07 PM#10
Hunter0000
Zachary_Shadow, thats the problem, the ranged units should attack-move to the center and the melee should chop at the gate THEN attack move to the center. How do I do That?


Balthamos, I cant, because it has to be a player unit, besides as allready stated, that attack doesnt solve the problem.

:D ://// :nono:
10-23-2003, 06:55 PM#11
Hunter0000
Whohoo, a half-day put to good use!

Events
Unit - A unit Is attacked
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Attacking unit)) Equal to Elven Gate
(Unit-type of (Attacking unit)) Equal to Iron Gate
(Unit-type of (Attacking unit)) Equal to Magic Gate
(Unit-type of (Attacking unit)) Equal to Wooden Gate
Actions
Unit - Order (Attacked unit) to Attack (Attacking unit)

Howwever, how does the multiple targets field work? I want it to shoot at like 4 or 5 guys so that many are lured to the gate.


:ggani: I AM HAPPY AGAIN! :ggani:
10-23-2003, 08:03 PM#12
SourGummiWorm
do NOT make the gate attack... that's a bad solution to the problem

create different regions, one right near the gate that all units attack to.... amke a different one for each type of unit moving to the gate. When an archer enters the archer region tell it to attack the gate, when a grunt enters the melee region tell it to attack the gate, etc... this should be extremely simple to set up. You only need a region for each different attack range the attacking units have.
10-23-2003, 08:04 PM#13
Hunter0000
how the hell is what I did bad? it saves me 7 triggers man!
10-23-2003, 08:46 PM#14
SourGummiWorm
ok, you're right it does, I just figured you'd rather have a few triggers than make your gate constantly attack...
10-23-2003, 09:12 PM#15
Hunter0000
it does 0 dmg every .5 seconds, whats the big deal?