HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need help with Unresearching

06-24-2004, 01:10 AM#1
shadowlight
Hi,
I'm havin trouble trying to unresearch upgrades. I wanted to do if a building is destroyed all the upgrades that it learned would be wiped, requiring the player to reupgrade when the player builds a new research building.

the action trigger, set research level, doesn allow me to degrade upgrades. can someone help me out here?
06-24-2004, 02:38 AM#2
CynicalYouth
I dont think you can unresearch things. At least I havent found a way. Once they are done they are done. What did these upgrades do? there may a be a way to get the same effect?
06-24-2004, 04:31 PM#3
Cubasis
It's sadly impossible to un-reasearch upgrades.

You can make negative upgrades that reset the effects of the other upgrades.. but that's it.

~Cubasis
06-24-2004, 04:57 PM#4
linkmaster23
But then you can't add the upgrades back...
06-24-2004, 07:51 PM#5
shadowlight
Hmm, negative upgrades seems like my only solution, but isn that bad coding? Afterwhile would all the upgrades reach like a max capacity? I was thinking if it took 3 upgrades to get it up, then the building gets knocked down, that 3 degrades, then every time the player upgraded it would take 6, and wow starts to look exponential afterwhile.

How bout disabling upgrade effects? is there a way to get that to work? Even though a player learns a upgrade, is there a way to remove the upgrade from the unit?
06-24-2004, 09:26 PM#6
orcmasta
Why don't you make a trigger that sets a variable. Lets say you call it UpgradeLevel, when upgrade is researched set UpgradeLevel = UpgradeLevel + 1. When the building dies you do if Researching unit equal to dead then set UpgradeLevel = UpgradeLevel -1
Think it should work...
06-25-2004, 12:12 PM#7
xGT4x
Lol you're talking shit, he wants to make all upgrades, which are in one building researchable, to get unupgraded when teh building dies, what could a varaible do? NOTHING, thats sad SHIT, offtopic!!!
06-25-2004, 12:56 PM#8
johnfn
Uh, no, your wrong. Variables are actually very helpful for almost any circumstance like this. Just do what orcmasta said, and then set the guys attack or defense to whatever the variable was.
06-25-2004, 01:24 PM#9
Vexorian
Quote:
Originally Posted by johnfn
Uh, no, your wrong. Variables are actually very helpful for almost any circumstance like this. Just do what orcmasta said, and then set the guys attack or defense to whatever the variable was.
You are wrong, the problem is not the way you do the unresearching, the problem is that even if you set the tech back to 0, it will stay researched
06-25-2004, 04:41 PM#10
johnfn
Actually I was meaning that you could implement what the research would do in another trigger (hopefully that wouldnt be too hard, if what the upgrade does is easy enough to implement) and that a variable would be the perfect thing to get the upgrade to the correct level.

What is the upgrade you want to correct, anyways?
06-26-2004, 06:25 AM#11
shadowlight
well all upgrades in general, because some of the abilities can be only obtained via upgrade. I.e. Increase Range/Caster Upgrading