Page 1 of 1

Geom Filter Test Monster Tag Question

Posted: Sat Dec 23, 2006 4:47 pm
by Pyro
I would like to know if there is a better way of scripting a certain attack I'm making. This attack is called "Blight". It makes the target unhealable like undead units. The unit shoots a projectile that is guided. This projectile promotes to another projectile that stuns the target. The scripting is always looking for this stunning projectile. It uses it as the center of a geom filter test. The goem filter looks for one unit in the circle. Thing is the script then does several goem filter tests to see if the target unit uses a certain monster tag. There are about 26 different collections for units alone being used in this specific map. Therefore it requires about 26 different geom filters to see what the target unit is. Once the script knows what unit it has it gives it a specific artifact which will switch the monster tag with one that has healing fraction of zero.

My issue is, while my script works it is still imperfect. How can I make a geom filter test for monster tag 'abcd' (for example) within a monster_identifier instead of the whole map? Is there is a more efficient way to script this.

Re: Geom Filter Test Monster Tag Question

Posted: Thu Dec 28, 2006 12:57 am
by A-Red
Pyro wrote:How can I make a geom filter test for monster tag 'abcd' (for example) within a monster_identifier instead of the whole map?
If I understand you correctly, just give the GEOM a link to a container with the potential monsters you want to test for, and don't give it an Entire Map flag:

Name
Link
Res. Act. Id.
TIIFN
Activates on Success

You could also shorten the script by limiting the monsters it affects. For instance, it sounds like it shouldn't affect undead, so you can rule out any GEOMs that test for undead units--assuming there are any.

Posted: Thu Dec 28, 2006 2:18 am
by Pyro
Well the reason I didn't go through that route is that I have like 32 different types of units. Each can get affected with this attack. If the test only lasts for a few seconds it might not get to test most of those units only the first ones. So I require a way to test for a type of monster tag being used in a monster_identifier.