Hi everyone.
I'm having trouble in a little map I'm working on.
Right now I have a trigger that makes it so whenever an "ancient" classified unit dies, the hero gets stats based on the level of the unit.
The equation basically goes something along the lines of "add (10 x (level of dying unit)) x StatMultiplier str/agi/int"
It works for the most part, but I'm having trouble with the StatMultiplier variable. I can't seem to set it to a decimal number.
I want it to be 1.5, but I can only get it to be 2 or 1.
Also, if I try to set the variable to 3/2, it just sets it to one.
Is there anyway I can set the variable to a number with a decimal?
Also, I am sorry if this is in the wrong section. I'm not sure if variables are triggers or not. I would improve the post, but it isn't easy on this damn cottage dial-up.
I'm having trouble in a little map I'm working on.
Right now I have a trigger that makes it so whenever an "ancient" classified unit dies, the hero gets stats based on the level of the unit.
The equation basically goes something along the lines of "add (10 x (level of dying unit)) x StatMultiplier str/agi/int"
It works for the most part, but I'm having trouble with the StatMultiplier variable. I can't seem to set it to a decimal number.
I want it to be 1.5, but I can only get it to be 2 or 1.
Also, if I try to set the variable to 3/2, it just sets it to one.
Is there anyway I can set the variable to a number with a decimal?
Also, I am sorry if this is in the wrong section. I'm not sure if variables are triggers or not. I would improve the post, but it isn't easy on this damn cottage dial-up.