• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] How can i make this work?

Status
Not open for further replies.
Level 1
Joined
May 10, 2010
Messages
2
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:
http://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.
Top