#Count Up Bar

1 messages · Page 1 of 1 (latest)

lapis cloak
#

For my L5R game, I'm trying to create a "count up" bar with multiple images (for strife).
I created a simple macro that adds 1 to the stat and updates the bar to equal the stat (similar to a health bar but backwards).

[h: strife= strife + 1]
[if(strife>=composure): setState("Compromised",1)]
[h: setBar("StrifeBar", Strife/20)]

My issue is that I can't get the pictures to track correctly. When the stat=2 it shows me picture 3 and all other pictures become out of order. The images are similar to the one I added here, just with a diffrent number of symbos. In the preview in the campaign properties I can't really see what's going on to troubleshoot. There are 21 images in the bar (0-20) and it generally works, just weird syncronic issues.
Is there a standard image size for bars?

cursive arch
#

Try using Strife/21 because of 0

lapis cloak
cursive arch
#

floor(Strife*100/21)/100

lapis cloak
#

I've created a stat MaxStrife to mass with the max of the bar more easily for the 2 macros.
The issue is not with the macro but with the image list in the bar. The images are not in the right increment place but because the size of the image it's hard to distinguish them in the list

#

Is there a standardized size for a bar?

cursive arch
#

So, you have empty bar, Increment 1-19, Full Bar?

lapis cloak
#

yes

#

And I have 21 pictures: 0-20 strife. I tried to go over the list and update the increments. It did fix the issue with 2 but shifted it up to 3. I already updated the entire thing once and it didn't really help. The issue is I can't really trouble shoot it from the bar manager screen because the images are cut