• 🏆 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!

How to make Repair requires no cost

Status
Not open for further replies.
Level 4
Joined
Dec 19, 2011
Messages
29
Hello there,

I am trying to make my worker able to repair without using any lumber or gold, while I successfully managed to make at cost nothing, it still wouldn't work when I have 0 gold or 0 lumber.

How to make it still active even if the player has 0 gold or lumber.
 
Level 4
Joined
Dec 19, 2011
Messages
29
I want my repair to heal the structure for 1 hp per 10 secs

I put "Data - Repair Time Ratio" to 10, in Repair ability

and I left "Stars - Repair Time" to what it is which is 50

will it still heal for 1 hp per 10 secs?
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
I want my repair to heal the structure for 1 hp per 10 secs

I put "Data - Repair Time Ratio" to 10, in Repair ability

and I left "Stars - Repair Time" to what it is which is 50

will it still heal for 1 hp per 10 secs?

Let's say your unit has 500 hp
the Stats - Repair time is set to 50 so in 50 seconds 500 hp is repaired.
Which means 10 hp per second gets repaired.
However the Data Repair Timer Ratio is 10 so the hp that get repaired per second gets multiplied by 10, this means it now repairs 100 hp per second.

So in order to do what you want it to do, do the following:

set Stats - Repair Time to the maximum amount of hp for the unit multiplyed by 10.
so for example if the unit hp is 500, set Repair Time to 5000 so that every 10 seconds 1 hp gets repaired.
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
I highly doubt that,

My repair time is 50 and data repair timer ratio is 10, the unit still heal as if its 1 hp per 10secs and now 100 hp per sec

I quote:

Total repair time = Repair time x Repair time ratio

So if your repair time is 50 seconds and your time ratio is 10 then 50x10 = 500

So in 500 seconds the unit is fully repaired.
If your unit has 500 hp then it repairs 1 hp per second.
If your unit has 1000 hp then it repairs 2 hp per second.
If your unit has 50 hp then it repairs 1 hp per 10 seconds. <-- This is your case right?
 
Status
Not open for further replies.
Top