Aiden
Member
- Reaction score
- 0
hi im trying to add
time to revive some hero when die.
So i guess i need to setup 2 things
1)Setup Time
2)periodic trigger where countdown timer start.
-------
1)Setup Time
If a hero die, to come back from death need wait this formula:
Set Tseconds = (10 + (10 x (Hero level of (Dying unit))))
Hero lvl 1: 10 + (10x 1) = 20 Seconds
Tseconds its a Interger Variable so doesent do a diferent between 40 and 100 seconds. never do something like 1:30
So i need to config that ...
-if Tseconds its grater or equal to 60 do this:
Set Tminutes = (Tseconds / 60)
Si Tseconds is : 120 will be -> Tminutes: 2
-----------
But what happends if Tseconds = 70?
70 / 60 = 1,166666
I guess i cutoff decimals...
and just get = 1.
I need help =_=
time to revive some hero when die.
So i guess i need to setup 2 things
1)Setup Time
2)periodic trigger where countdown timer start.
-------
1)Setup Time
If a hero die, to come back from death need wait this formula:
Set Tseconds = (10 + (10 x (Hero level of (Dying unit))))
Hero lvl 1: 10 + (10x 1) = 20 Seconds
Tseconds its a Interger Variable so doesent do a diferent between 40 and 100 seconds. never do something like 1:30
So i need to config that ...
-if Tseconds its grater or equal to 60 do this:
Set Tminutes = (Tseconds / 60)
Si Tseconds is : 120 will be -> Tminutes: 2
-----------
But what happends if Tseconds = 70?
70 / 60 = 1,166666
I guess i cutoff decimals...
and just get = 1.
I need help =_=