• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

possible to reset a unit upgrade?

Status
Not open for further replies.
Level 2
Joined
Mar 7, 2005
Messages
23
hey.

i feel noob q.. :p but how much im looking for a way to reset my researched upgrade i just cant find so i decided to ask here.i hope it helps me to save my time.

" info : "
i have 2 upgrade with 5 levels.
player can upgrade it for his unit.
when player use 1 of the upgrades . the other 1 become disable.
after a while.. i want to give possibility to player to reset his upgrade .
so now he can again decide which upgrade he does

something like Tome of Retraining for heros..
i want a way to reset researched upgrades

hope the given info be enough. +rep ofc;)
ty
cheer
 
Level 8
Joined
Nov 9, 2008
Messages
502
You can't undo upgrades.

You can however use units as tech requirements. This is if your upgrades are for the purpose of allowing the training of addition units or the use of additional spells you don't wish to be available from the start. Beuty of using units as requirements is you can remove them and it has the effect of resetting research.

If your upgrades are for stat boosting or the like I guess you will have to trigger a result, save the result and remove it when your player/s want to.
 
Level 18
Joined
Mar 7, 2005
Messages
824
as toofless said, i dont believe it's possible.. but you could either use some triggers and variables that contains the changes and you just remove them when you don't need them anymore.. or maybe you could add another line of upgrades but with the opposite effects, like the first upgrades increases the HP of units, and then just decrease it again with another set of upgrades.. but the problem here would be you can't reset and relearn the upgrades then..

so the only way i guess is using triggers.. go for some variables give them the values and trigger the effects, after you can easily set all to 0 and start again.. it should be more flexible, too.
 
Level 3
Joined
Mar 18, 2009
Messages
31
You can set the level of an upgrade through triggers. Can't remember the exact names but I know it's in there, so something along the lines of:
Event:
Unit acquires item of type Tome of Retraining
Conditions:
Upgrade 1 is at level 0 equal to false OR Upgrade 2 is at level 0 equal to false
Actions:
Set level up tech for Player(triggering player) to 0

Try it, sorry if I don't have the correct names...
 
Level 8
Joined
Nov 9, 2008
Messages
502
Ye that function is misleading I don't actually know what it's for because once an upgrade is researched it cannot be un-researched, even through that function.
 
Level 6
Joined
Nov 10, 2006
Messages
181
Like I said, that is totally impossible, you simply cannot reset it, it has been asked many many times over the hive, thehelper or at wc3c.
 
Level 2
Joined
Mar 7, 2005
Messages
23
hm.. i even think its not possible used to find a way all day long.. no results.. there is a trigger that can set level of a research but nothing much it does.. .

ty for replys.. but would be happy if some1 had an idea.. about this.. ty. ( im gana change the upgrade thingy with something like ability casting.. or buying something instead of doing upgrade and controlling it with triggers.. ) ah :p too bad to change lot of things..

ty
cheer
 
Status
Not open for further replies.
Top