[Trigger] How can i make this work?

Status
Not open for further replies.

juaumzitus

J

juaumzitus

i've been trying to make an attribute system for my custom games but i cant make it work, i cant make the 0.10 ratio work, how can i solve it?

  • AGI
    • Events
      • Unit - A unit Dies
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Owner of (Killing unit)) Not equal to (Owner of (Dying unit))
          • ((Dying unit) is A Hero) Not equal to True
          • ((Killing unit) is A Hero) Equal to True
    • Actions
      • Hero - Modify Agility of (Killing unit): Add (Integer(0.10))
 
Reals that has decimals are rounded depending on the value of its "ones.
Example:
0.10 -> 0 in integer
8.99 -> 8 in integer
7.65 -> 7 in integer
12412412412.56565656 -> 12412412412 in integer.

That's what i know.
If you are going to manipulate an attribute,i suggest using this system:
https://www.hiveworkshop.com/forums...css-v1-5g-229885/?prev=d=list&r=20&u=Doomlord

which allows you to manipulate attributes easily.
 
Status
Not open for further replies.
Back
Top