| 06-24-2004, 01:10 AM | #1 |
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 |
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 |
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 |
But then you can't add the upgrades back... |
| 06-24-2004, 07:51 PM | #5 |
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 |
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 |
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 |
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 | |
Quote:
|
| 06-25-2004, 04:41 PM | #10 |
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 |
well all upgrades in general, because some of the abilities can be only obtained via upgrade. I.e. Increase Range/Caster Upgrading |
