A multiboard question

Status
Not open for further replies.
Level 12
Joined
Jan 30, 2009
Messages
1,067
Hey, everyone.

So, I have a question here. I am making a Campaign, and I wish to have a few multiboards involved in various situations. Making the multiboards themselves isn't the problem, however.

The problem I am having is that I will have 5 heroes total. However, not all 5 heroes will be with you at all times, necessarily.

Lets say, as an example, we have the following:

Hero 1 = Argan
Hero 2 = Kalenne
Hero 3 = Jak
Hero 4 = Kiisha
Hero 5 = Orlan

So what I want is a multiboard that reflects the current heroes you have. At the beginning, you've only got Argan, but eventually you will end up with Kalenne, and Jak.

Well, eventually, Kalenne might leave the party for some reason, and it'll only be Argan and Jak. Well, I don't want Kalenne to be showing up on the multiboard, now, cause that would be odd.

Later, when Kalenne comes back, I want her to be back on the multiboard. Then, perhaps Kiisha joins the party, and I want her on the multiboard, but then Jak may leave, and I want him off of it.

I hope this example is good enough to describe what I am trying to achieve.

Now, in order to do this, I'm thinking I need a whole new multiboard for each possible combination of heroes that comes up. Then when the situation occurs when the party members change, then the multiboard will be changed via turning on/off the multiboards accordingly, is this how it would be done, or is there another way to do this?

btw, only the first two hero names are actually set in stone, the other three are just random names I came up with on the spot, :P


EDIT6: Still have an issue with the EXP Percentage values. If ANYONE can help out, that would be VERY appreciated. I have posted a test map at the bottom of this page (post 15). This is the only thing stopping me from finishing this Multiboard system. More details on the problem are below.
 
Last edited:
Well i guess the best solution would be creating Multiboards (you need several of them if i understood you) in one triggers, then you could just show the right multiboard when you want. So it will be like 2 triggers: Settings - where you create multiboards and Show - where you hide and show multiboard you want.
Maybe there's other way but i would suggest doing this way. Good luck...
 
That was more or less what I was talking about, except instead of having it all in one trigger, having one trigger for each separate multiboard (So it's cleaner for me), and have all but the current one turned off.

You're basically saying my assumption is correct. By my count, I'd need quite a few (Probably about 15, if my count is correct, since Hero 1 will always be present (Kinda like FF VII, where you must always have Cloud in your party, regardless of the 8 other characters), right?) multiboards to account for every possible scenario.
 
Well if you need 15 multiboards then dam*,... this will be long to make, then try to create one multiboard where the text fields are variables, so instead of creating new multiboard just change the variable value. I guess this is more easy and faster.
Yes you were correct from the beginning. I just can't figure out a better way, it's late, i wanna sleep)) So try with variables then, but don't forget that you should make the multiboard same for every scenarion, because you'll be changing only variables.
 
Well, then when I have only 1 hero, I'd have 6 rows instead of 2, which would look tacky.

So, I think making the 15 multiboards would be more aesthetically appealing. Hence doing it this way.

If I wanted to do what you are suggesting, I could just use one multiboard and blank out the zones with the unowned heroes when I don't have them.

But, again, is there another way of doing what I'm trying to achieve, then?
 
Well, doing the multiple multiboard thing actually ended up not being as much work as I thought, considering I can literally cnp the whole trigger then just change one line of code in each instance. So, this part isn't a problem. It was just creating the first one.

Now, however, I've got a new issue that I'm not entirely certain how to fix.

I have a Health / Mana monitor in the multiboard.

Works fine (Except Updates, which I haven't included yet, but, that's not the issue) but, there's like... 3 decimal places which overlaps therything and, well, doesn't really need to be there.

I'd like them to begone. Not using percentages, but Unit Property Life / Maxlife, Mana / Maxmana - I've never had to do something like this before, any help would be very appreciative.
 
Oh, wow, silly mistake, so instead of string(real(MaxLife)) it should be string(integer(real(MaxLife))) basically?
 
Okay, I think I fixed that, I'll test it here in a minute.

Yes, SOLVED.

Next issue I have is EXP. If possible, I'd like to be able to show EXP% of the hero's current level, this I have absolutely no idea how to do, I couldn't figure out a way to do so, -.-

For example, if I had 360 EXP of 1000 for the current level, I'd like the multiboard to display a "36%" for current EXP.

EDIT: I've been fiddling with it, and the only thing I can think of is to set a variable array, one index for every level, and set the appropriate index to the matching level's max exp amount. Which would require a lot of time and effort. Then do a setting of another variable based on Hero Experience, like:

  • EXP
    • Events
    • Conditions
    • Actions
      • Set EXPLoop = (MB_loop[1] - 1)
      • Do Multiple ActionsFor each (Integer loopA) from 1 to EXPLoop, do (Actions)
        • Loop - Actions
          • Set EXPHero[loopA] = (Hero experience of Hero[loopA])
          • Set EXP_PercentHero[loopA] = ((EXPHero[loopA] / MaxEXPLvl[loopA]) x 100)
          • Set EXP_Percent[loopA] = (String(EXP_PercentHero[loopA]))
 
Last edited:
lol, well, I edited the above post before I left for lunch, and forgot to hit the button, so I just edited it with what I did so far.

I also set this in the init trigger:

"Set MaxEXPLvl[1] = 200"

That's for level 1.
 
Okay. Well, I went through and tried to figure it all out, and I just can't see how to do it right. I end up not being able to pull it off.

There's a couple things wrong. And I think I know how to fix the second one.


  • The EXP doesn't seem to update.
    • The problem seems to lie in the second line of the exp loop:
      • Set EXP_PercentHero[loopA] = ((EXPHero[loopA] / MaxEXPLvl[(Hero level of Hero[loopA])]) x 100)
    • That stays as 0. =\
  • The hero list in the multiboard is always "Blademaster, DK, DH, BM" no matter which heroes I have added to the unit group.

I'll post test map. Like I said, I think I know how to fix the second one, which would be to utilize all 8 multiboard triggers I set up, I tried something different since I had an idea.

Anyway, help is appreciated. :)
 

Attachments

i did...

check the testmap.

As for thehero thing, there's only 5 heroes in the game, period. For this test I'm only using 4 cause it will save me a lot of effort to practice with 4, not 5, :P

What do you mean clear them? I remove them from the unit group, they are removed from the multiboard, BUT

It's like this:

Blade

DK

DH

Mage

However, if I add DH. and not DK, on the Multiboard appears DK, like this:

Blade

DK

I think that has to do with the way I have set up the loop in the way I have the boards set up currently. I think I need to go back and change them to do what I had originally thought I would have to do in order for this to work how I intend.

The biggest issue I'm worried about is the EXP issue. For some reason, the Percentage integer variable doesn't seem to work. And I'm not sure why. It remains 0, ruining the rest of the function.

This was the only way I could think of in order to get a Experience percentage out of the hero. If there's a better, WORKING way, please do tell, cause the only thing I can find is Hero Experience, which is the current exp the hero has (150 / 200 would show 150 by that).

Also, ignore the note of "Notes From Initial Tests" comment in the map cause I fixed that issue. :)
 
Lol.

To be fair, all the multiboards atm are the same cnp with only diff. numbers of rows.
 
Last edited:
Bump. Still no fix I tried a couple things myself, but it seems I can't get the percentage of the number at all.
 
Bump again.

Can ANYONE help me with this EXP Percentage issue? I'm going to edit the first post so everyone will see.
 
Status
Not open for further replies.
Back
Top