removing tech.

Status
Not open for further replies.
Level 4
Joined
Mar 27, 2009
Messages
66
alright, so i have this trigger that grants tech when the unit aquires an item...what would be the trigger to make it so the unit loses the tech when the item is dropped?
 
Level 4
Joined
Mar 27, 2009
Messages
66
i mean like research level for something...currently i have a trigger that sets it to 1...is there a way to set it back to 0 if i drop the item?
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
there is no way to do that,you will need negative upgrades
actions will stop if there is no more available levels
you cen set available levels of upgrade to 100 and that should be enough (no one will pick up the item and drop it 100 times)

you will need something like this

Event-unit gets your item.....

set INTEGER = INTEGER + 1
set level of (your positive upgrade) to INTEGER for (your player)

Event-unit loses your item.....

set INTEGER_NEG = INTEGER_NEG + 1
set level of (your negative upgrade) to INTEGER for (your player)
 
Level 5
Joined
Sep 21, 2005
Messages
119
Hey, just so you know, I had a similar problem with something I was doing.

What I did was create a UNIT called "Please upgrade this" or similar, and it was an invisible unit placed for the player somewhere when they met their upgrade condition, and the unit was removed when they needed to do something again.

Hope you know where I'm coming from, but basically, just use a unit that you can remove and call him whatever you want your upgrade to be called, make him use no pop and be a locust with no attack or anything, that should work for you!

Cheers,
~Gloom
 
Status
Not open for further replies.
Top