HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Relatively (I hope) simple trigger needed

09-07-2002, 05:45 AM#1
Uratoh
I need something that basicly works as an if/then thing....

if the player controls at least one of this building, let them research an upgrade. if they dont control it/get it destroyed, disable the research ability. but dont affect wether its been researched or not.

basicly I wanna be able to enable, for instance, Nature's Blessing for the night elves without a tree of ages.
09-07-2002, 05:25 PM#2
Guest
You'll need 2 triggers:

Event:
Unit owned by player X finsihes construction
(repeat for all players)
Condition:
(unit of (constructed unit)) is require building
Action:
Set max tech level for (owner of(triggering unit)) to 1 for ability

Event:
Unit owned by player X dies
Condition:
Count all units owned by (owner of (triggering unit)) matching (matched unit) is required building AND (matched unit) is alive equals true == 0
Action:
Set max tech level for (owner of (triggering unit) to 0 for ability.
09-07-2002, 07:12 PM#3
Guest
Quote:
if the player controls at least one of this building, let them research an upgrade

Trigger Name 001
Events
Unit - A unit owned by Player 1 (Red) Finishes construction
Condition
(Unit-type of (Constructed structure)) Equal to Arcane Sanctum
Actions
Player - Set the current research level of Sorceress Adept Training to 1 for Player 1 (Red)


If you want to just enable the ability set the level to 0
09-07-2002, 07:31 PM#4
Uratoh
Mostly solved that, there's one small problem...the unit type chosen was 'corrupted tree of ages', and when its completed it doesnt enable...should I change 'finishes construction' to 'finishes upgrading'?

and I can't find this:

Count all units owned by (owner of (triggering unit)) matching (matched unit) is required building AND (matched unit) is alive equals true == 0

I can find 'count al lstructures' and 'count all non-structures', but Icant find a way to make this exact string :(
09-07-2002, 09:23 PM#5
Guest
Integer Comparsion
Count Units in Unit Group
Units owned by player matching
etc.