Geom Filter Test Monster Tag Question

A forum for discussing map making ideas and problems for the Myth series.
Post Reply
User avatar
Pyro
Bug Finder Extraordinaire
Posts: 4751
Joined: Sun Mar 21, 2004 2:14 pm
Location: Texas

Geom Filter Test Monster Tag Question

Post 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.
A-Red
Posts: 771
Joined: Fri Jul 23, 2004 8:36 pm

Re: Geom Filter Test Monster Tag Question

Post 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.
User avatar
Pyro
Bug Finder Extraordinaire
Posts: 4751
Joined: Sun Mar 21, 2004 2:14 pm
Location: Texas

Post 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.
Post Reply