• 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.

Research/Upgrade time = 0?

Status
Not open for further replies.
Level 10
Joined
Apr 4, 2010
Messages
286
Hey everyone! I'm currently in the early stages of a tower defense project, and I've set up a bunch of upgrades to improve the player's towers. I set the following values for all of my upgrades (in the Upgrades tab of the Object Editor):

Time Base: 0
Time Increment: 0

The idea is I want the upgrades to complete instantaneously as soon as they're started. However even with these values set to 0 the upgrades still take some time to finish in-game, maybe 1-2 seconds.

My question is: Is there a default somewhere that is overwriting the 0 for these values, or what's causing this issue? Does anyone know a way to make these upgrades actually take 0 seconds in-game?

Thanks in advance!
 
Level 14
Joined
Nov 30, 2013
Messages
926
@Kaijyuu Even though it's impossible to accomplish it in Object Editor, it still possible to make it instantly complete by triggering.

@Jake Kessler
  • Insta Upgrade
    • Events
      • Unit - A unit Begins an upgrade
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to Guard Tower
          • (Unit-type of (Triggering unit)) Equal to Cannon Tower
          • (Unit-type of (Triggering unit)) Equal to Scout Tower
    • Actions
      • Unit - Set (Triggering unit) upgrade progress to 96%
  • Insta Research
    • Events
      • Unit - A unit Begins research
    • Conditions
      • (Researched tech-type) Equal to Iron Plating
    • Actions
      • Player - Set the current research level of Iron Plating to ((Current research level of Iron Plating for (Owner of (Triggering unit))) + 1) for (Owner of (Triggering unit))
 
Last edited:
Level 6
Joined
Sep 7, 2017
Messages
207
Maybe set the event to "Map Init..."
and then action
Set the current research level of 'Research Stuff" to (1) ...

I think it goes faster.
 
Level 14
Joined
Nov 30, 2013
Messages
926
@bear_369
I'll have to give a warning about the building upgrade one, since I'd tried that myself before. Instantly upgrading a building screws with the upgrade animation, and things like size modifiers won't be fully applied. Should wait at least a second for those.
Rechecking the trigger again and probably fixed the issue by setting the upgrade progress into 96%. It would be complete in 0.04 seconds for a 1-sec upgrade, along with its animation. 97% could work but it rarely failed, so I had to reduce it by 1.
 
Level 10
Joined
Apr 4, 2010
Messages
286
@Kaijyuu Even though it's impossible to accomplish it in Object Editor, it still possible to make it instantly complete by triggering.

@Jake Kessler
  • Insta Upgrade
    • Events
      • Unit - A unit Begins an upgrade
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to Guard Tower
          • (Unit-type of (Triggering unit)) Equal to Cannon Tower
          • (Unit-type of (Triggering unit)) Equal to Scout Tower
    • Actions
      • Unit - Set (Triggering unit) upgrade progress to 96%
  • Insta Research
    • Events
      • Unit - A unit Begins research
    • Conditions
      • (Researched tech-type) Equal to Iron Plating
    • Actions
      • Player - Set the current research level of Iron Plating to ((Current research level of Iron Plating for (Owner of (Triggering unit))) + 1) for (Owner of (Triggering unit))

@bear_369
I'll have to give a warning about the building upgrade one, since I'd tried that myself before. Instantly upgrading a building screws with the upgrade animation, and things like size modifiers won't be fully applied. Should wait at least a second for those.

Rechecking the trigger again and probably fixed the issue by setting the upgrade progress into 96%. It would be complete in 0.04 seconds for a 1-sec upgrade, along with its animation. 97% could work but it rarely failed, so I had to reduce it by 1.

I will try this trigger out later, but it looks like it does what I want! (upgrade animations aren't a big deal for me anyway, since I'm talking about upgrading things like attack damage / researching abilities, not upgrading scout towers to guard towers or what have you.)

Thank you both! +Rep!

EDIT - @bear_369 That insta research trigger worked like a charm, exactly what I wanted. Thanks again!
 
Last edited:
Status
Not open for further replies.
Top