• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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?
 
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?
 
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)
 
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.
Back
Top