HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unlearning Research

09-03-2005, 08:54 AM#1
JBBeeza
Unlearning Research as I have just been informed, is impossible. So, I now need another way around my problem.

I wish to have a team's towers usually able to detect stealthed units except when the team's 'Power Generator' has below 500 health.

I wanted to have Magic Sentry on the towers and then unlearn it when the Power Generator was below 500, and then have it relearn again when the Generator goes back up to say, 1000-2000 or so.

So now I need another way of having the Towers detect units only under the circumstance that the generator is humming away at normal power.
Also I would still like to keep the Magic Sentry 'Eye' above the towers when the detection is active.

Also Towers are not permanent so I cannot swap towers with ones that have Magic sentry.

Any suggestions would be most welcomed.
-Thanks!

09-03-2005, 08:57 AM#2
JBBeeza
Didn't mean to bump up post, anyway to delete this 2nd useless post?
09-03-2005, 06:39 PM#3
Elven Ronin
Let's see here...

I'd probably create a dummy unit - one with no model, line of sight, or attack - so it's basically undetectable, and make that the requirement for the magic sentry ability. Call it 'power generator health above 500' or something. create one for each player who has the towers.

Then for the trigger to manage it.

Unit - Life - power generator's life becomes less than or equal to 500

Then just remove the dummy created. You could either store it in a variable or just use a unit group function.

All that's needed after that is an opposite function for when the life goes back up to the required level.
09-04-2005, 05:33 AM#4
PCPharaoh
Just give the power generator the magic sentry ability. Then have two trigs:

If power generator health < 500, then remove ability "magic sentry"

and the second one:

If power generator health > 1000, then add ability "magic sentry"
09-04-2005, 11:10 AM#5
Thunder_Eye
Well he is using the magic sentry on the towers, not on the generator.
09-04-2005, 08:56 PM#6
mogmiester
add true sight to all the towers, and then every 3 seconds or whatever (or perhaps there is a unit life event, i cant remember) pick every tower belonging to the team and remove true sight