HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

research an ability upgrade via triggers

06-08-2006, 03:32 AM#1
darkwulfv
I know the trigger for setting the tech level for an upgrade or whatever. But I need this. I've got an upgrade that puts a crit. strike on certain units. How do I make it so it must be researched? I tried putting it in the upgrades used section, but for some reason it was already researched... Can anyone help? I may not have been clear, so I'll try to clarify if need be.
06-08-2006, 07:29 AM#2
Panto
Look on the ability. Does it have any Requirements? That's where you need to put the upgrades required and the level of each.

Also check that it uses Requirements. There's a boolean field in there somewhere. Most abilities that aren't item abilities by default have it set to True, so that's probably not your problem.
06-08-2006, 10:38 AM#3
PerfectlyInsane
-------------------------
---------------------------
Standard way.(Adds to all units you own of that type)

Create a new Upgrade
Add the upgrade to the unit..



-----------------------------
-----------------------------
Trigger based way (custom) Adds to specific units in specialzied circumstances.
E
Some Event
C
A Pick every unit of type owned by Player and Add ability
set Upgrades01 = 1



E
A unit enters the playable map
C
A
If/then else
Unit Type = Knight
Upgrades01(Owner of Unit) = 1
<Some other conditions>
Then
Add ability to last created unit
Else
DO nothing