| 10-11-2003, 06:03 PM | #1 |
How can I make an RPG style board that displays the health of the unit out of a total amount? EG: UNIT X: 45/50 I've set up a leaderboard that shows percentage of health, but how do I do one that shows what I'm looking for? |
| 10-11-2003, 08:40 PM | #2 |
Get the unit's total health and store it in a variable, and then multiply that by the percentage of it's total health whenever you update the board. |
| 10-11-2003, 09:26 PM | #3 |
You misunderstand. What I want to do is display the health in RPG fashion in a leaderboard, so that it displays the total health of a unit and the current health of a unit. There are variables that already exist for those values, i just need to arrange them properly so that the Leaderboard looks like this: PARTY HEALTH: HERO X : 45/50 HERO Y : 65/70 I need this setup, as in the map I'm working on you only control 1 party member at once and the computer controls the rest, who follow. |
| 10-11-2003, 09:40 PM | #4 |
You'd have to use "Concatenate Strings", but since the leaderboard values can only accept integers, you'd have to use a multiboard. |
| 10-11-2003, 10:59 PM | #5 |
Here's an example |
| 10-12-2003, 03:54 AM | #6 |
Thanks. For the record, whats the dif between a leaderboard and a multiboard? |
| 10-12-2003, 04:02 AM | #7 |
You dont really need to use a multiboard. You could just leave the player value empty and and put the concenate (sp?) strings in the player label |
| 10-12-2003, 04:30 AM | #8 |
General Tekno: You're welcome :D Multiboards can have any amount of rows and columns as you specify. They also offer more customization options such as changing the width of the cells and adding icons etc. They can also be minimized. You can also show a leaderboard and a multiboard at the same time. And the difference that made you have to use a multiboard instead of a leaderboard: the values are strings so you can put just about anything in them. mikedogdude: That's a possibility, but then what would you put in the Value section. And how would you tell which HP belongs to which Hero? EDIT: I guess you could just concatenate the Hero's name in before HP, but that still leaves the Value problem. Can you leave it blank? |
| 10-12-2003, 05:34 AM | #9 |
Another question: How can I display more than 1 multiboard at once? When I bring up a new multiboard, it just covers up the old one. |
| 10-12-2003, 07:36 AM | #10 |
Sorry, like leaderboards, you may only show one at a time |
| 10-30-2003, 04:58 PM | #11 | |
Quote:
Putting a concatenated string ( PlayerName + " " + Health + "/" + MaxHealth ) may work, but if you want the items lined up nicely then I suggest a multiboard. You can even make healthbars with multiboards with a few tricks (see signature). |
