Weyrling
New Member
- Reaction score
- 25
Integer, as known by a computer, is a whole number, meaning no decimals, it doesn't matter what humans perceive it as, a computer perceives it as no decimals.
Integer, as known by a computer, is a whole number, meaning no decimals, it doesn't matter what humans perceive it as, a computer perceives it as no decimals.
you mean to add a decimal to the hero attribute we need to use jass?> when it goes higher than one
Actually, you can just add it as is.
Any decimals will be cut off anyway from converting to integer.
no like if the number is 1.45 the number will be cut off to 1 and if the umber is 1.55 it wil automaticly cut off to 2 so it stores it into a integer what acehart said!
the WE doesnt round off correctly?
it only gets the whole integer(even if it has a decimal)?
Hidden Potential
Events
Unit - A unit Dies
Conditions
(Level of Hidden Potential for (Killing unit)) Not equal to 0
((Dying unit) is A structure) Not equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Dying unit) is A Hero) Equal to True
Then - Actions
Set HiddenPotentialGrowth[(Player number of (Owner of (Killing unit)))] = (HiddenPotentialGrowth[(Player number of (Owner of (Killing unit)))] + (0.30 x (Real((Level of Hidden Potential for (Killing unit))))))
Else - Actions
Set HiddenPotentialGrowth[(Player number of (Owner of (Killing unit)))] = (HiddenPotentialGrowth[(Player number of (Owner of (Killing unit)))] + (0.03 x (Real((Level of Hidden Potential for (Killing unit))))))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(HiddenPotentialGrowth[(Player number of (Owner of (Killing unit))) Greater than or equal to 1.00
Then - Actions
Hero - Modify Strength of (Killing unit): Add 1
Set (HiddenPotentialGrowth[(Player number of (Owner of (Killing unit))) = ((HiddenPotentialGrowth[(Player number of (Owner of (Killing unit))) - 1.00)
Else - Actions