| 07-20-2005, 05:19 AM | #1 |
Guest | I want it so you can unlearn a spell upgrade. I can't achieve this by simply setting the tech back to 0 after I have set it to 1. Is there any other possible way to unupgrade an upgrade? |
| 07-20-2005, 08:32 AM | #2 |
No . |
| 07-20-2005, 09:37 AM | #3 |
You can't unlearn an upgrade, but if you want a spell to require something which is removable, set the requirement to a building or something, so it can be destroyed and created and the spell can be available or not at different times. |
| 07-20-2005, 10:03 AM | #4 |
Mabe you can unlearn an upgrade by creating a new upgarde with minus. Say your upgrade does +1 armor, make another that does -1 to even it out, that way you kind of unlearn it. |
| 07-20-2005, 04:25 PM | #5 |
Guest | I tried the setting the requirement for a unit, and I thought it would work perfectly. I created a unit when i wanted the spell enabled but when I killed or removed the unit it did not disable the spell. I guess once you gain the requirement for the spell it will not let you disable it. I'll try to find another way like disabling the spell somehow. Does anyone know if you can disable a spell with JASS and have it have text? I'll post in the JASS forum. |
| 07-20-2005, 09:49 PM | #6 |
Thats strange, i was pretty sure unit requirements worked. This may be silly but are you sure you killed/deleted ALL units of that type? |
| 07-20-2005, 10:12 PM | #7 | |
Guest | Quote:
Yes, I am sure, but maybe I have done something wrong. |
| 03-08-2006, 06:03 PM | #8 |
To my knowledge you cannot degrade. The requirement field when used with upgrades is only to prevent the upgrade from occurring not to make it stop working after you have upgraded. So if you had a peasant as a requirement and you had one present and then you upgrade and THEN you kill peasant and it will still have the upgrade, But if peasant was required for all upgrade levels then it would stop letting you upgrade. |
| 03-10-2006, 03:36 AM | #9 |
I use a unit as an upgrade that appears and disappears, and it works. This causes me to believe that there must be an error in your implementation. |
| 03-10-2006, 08:36 PM | #10 |
Although this thread was pretty old i thought i'd add that Unit Requirements work for Spells that do not need to be researched but require the unit to be available. I'm pretty sure they cannot remove upgrades researched that needed them, IE they cannot undo the act of researching an upgrade but can eneable/disable abilities. |
| 03-10-2006, 09:26 PM | #11 |
Most likely u in the upgrade you selected Trasfer with unitownership That means the upgrade will remain even though u dont have the upgrade |
