- Joined
- May 7, 2008
- Messages
- 346
Greetings.
I'm trying to color damage which I'm using from Bribe's System in his variable called DamageEventAmount.
The damage would be stored in my own variable called Stored_Damage which then I could reference when needed.
Example:
20% of Damage Dealt out of 100% (Stored_Damage) - Green Text
50% of Damage Dealt out of 100% (Stored_Damage) - Orange Text
100% of Damage Dealt out of 100% (Stored_Damage) - Red Text
In conclusion, how can I count a percentage of DamageEventAmount, which is a Real type value?
Solution found, and it's this:
FP_Damage_Stored = Stored Damage
FP_Damage_Limit = an array that has precise values, such as 100, 150, 200, 250, 300, etc
I'm trying to color damage which I'm using from Bribe's System in his variable called DamageEventAmount.
The damage would be stored in my own variable called Stored_Damage which then I could reference when needed.
Example:
20% of Damage Dealt out of 100% (Stored_Damage) - Green Text
50% of Damage Dealt out of 100% (Stored_Damage) - Orange Text
100% of Damage Dealt out of 100% (Stored_Damage) - Red Text
In conclusion, how can I count a percentage of DamageEventAmount, which is a Real type value?
Solution found, and it's this:
FP_Damage_Stored = Stored Damage
FP_Damage_Limit = an array that has precise values, such as 100, 150, 200, 250, 300, etc
-
FP_Damage_Stored Less than or equal to (FP_Damage_Limit[FP_Level] x 0.25)
Last edited: