Crazy Multiboard idea.. :D

Exuro.

New Member
Reaction score
5
hmm it aint working for me..

i set this:

Code:
Update Copy
    Events
        Time - Every 0.10 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Units in (Playable map area) matching (((Picked unit) is A Hero) Equal to True)) and do (Actions)
            Loop - Actions
                For each (Integer A) from 1 to (Integer((Percentage life of (Picked unit)))), do (Actions)
                    Loop - Actions
                        Set Player11HPText = (Player11HPText + |)
                        Multiboard - Set the text for MultiBoard item in column 3, row 2 to Player11HPText
                        Set Player11HPText = <Empty String>

just shows up blank..
and btw, can it be made so its only for player 11 and player 12?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
For every unit on the map, run a loop 100 times that creates strings like it goes out of style soon, annoys the multiboard... and all of that 10 times every second???

Create the strings just once.
Forget that weird "integer A" loop.
Just update the text...


Actually, even then I'm not sure that works. Or looks any good.
My guess would go to colored text, but that only works for even numbers of |s.
Like || or ||||||, but not | or |||.
 

OneBadPsycho

10100111001
Reaction score
93
This should work then:
Code:
Bars
    Events
        Time - Every 0.10 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Units in (Playable map area) matching (((Picked unit) is A Hero) Equal to True)) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        Or - Any (Conditions) are true
                            Conditions
                                (Owner of (Picked unit)) Equal to Player 11 (Dark Green)
                                (Owner of (Picked unit)) Equal to Player 12 (Brown)
                    Then - Actions
                        For each (Integer A) from 1 to (Integer((Percentage life of (Picked unit)))), do (Actions)
                            Loop - Actions
                                Set Stest = (Stest + |)
                        Multiboard - Set the text for [COLOR="Red"]multiboard[/COLOR] item in column [COLOR="Red"]number[/COLOR], row [COLOR="Red"]number[/COLOR] to Stest
                        Set Stest = <Empty String>
                    Else - Actions
Its untested...

Edit: Too late...
 

Exuro.

New Member
Reaction score
5
hmm i just placed a hero from player 11 on the map, but the |´s aint showing.. its just empty...

ye ill try it when i get it to work Acehart hehe.. now i just wanna make it work heh..


Edit:
Tried a few things, and its the "Picking" of the unit that aint working..
 

OneBadPsycho

10100111001
Reaction score
93
Oh, my bad, It's "Mathcing unit"... :banghead:

Code:
Unit Group - Pick every unit in (Units in (Playable map area) matching ((([B]Matching unit[/B]) is A Hero) Equal to True)) and do (Actions)
 

Exuro.

New Member
Reaction score
5
ye just changed that hehe and now it shows 1x |

heh, kinda should show 100 :)


Edit: Just tried removing the last empty String part, and now the bar is full, just testing if it goes up and down correctly

Edit2: nope that just made my game crash hehe after awhile heh
 

Exuro.

New Member
Reaction score
5
Isent this just reseting itself all the time:

Code:
Loop - Actions
    Set Player11HPText = (Player11HPText + |)
    Multiboard - Set the text for MultiBoard item in column 3, row 2 to Player11HPText
    Set Player11HPText = <Empty String>

It only shows 1x |
if the hp now is 67%, then its running that loop 67 times right? that would mean it would just set | 67 times heh..
 

Exuro.

New Member
Reaction score
5
ye he got the percent bar showing under the name.. thou i cant see his triggers hehe..
 

Exuro.

New Member
Reaction score
5
AceHart, can you please help me get your suggestion into the code?

the trigger atm, keeps resetting itself at every loop. and when im removing the <empthy string> one, then he keeps making | until game lock down.. so think your suggestion would fix this..
 

Kelvin87

New Member
Reaction score
14
I have the code. But I can't put here because the right of the code is reserved. Only the member of Thelder Clan have the right to know the source code. Sorry to say that.
 

Exuro.

New Member
Reaction score
5
how about you pm it to me? i wont share it to anyone heh.. and all my maps are protected! i only need that single trigger hehe
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Code:
Init
    Events
        Time - Elapsed game time is 0.00 seconds
    Conditions
    Actions
        Set Strings[0] = <Empty String>
        For each (Integer A) from 1 to 100, do (Actions)
            Loop - Actions
                Set Strings[(Integer A)] = (Strings[((Integer A) - 1)] + |)
        Multiboard - Create a multiboard with 1 columns and 1 rows, titled Health
        Set MB = (Last created multiboard)
        Multiboard - Set the display style for MB item in column 0, row 0 to Show text and Hide icons
        Multiboard - Set the width for MB item in column 1, row 1 to 8.00% of the total screen width
        Unit Group - Add Mountain King 0001 <gen> to Heroes
Code:
Update
    Events
        Time - Every 0.50 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in Heroes and do (Actions)
            Loop - Actions
                Set TempInteger = (Integer(((Percentage life of (Picked unit)) + 0.50)))
                Set TempInteger = (TempInteger / 2)
                Multiboard - Set the text for MB item in column 1, row 1 to Strings[TempInteger]

Somewhat basic, and one Hero only, but it works :p
 

OneBadPsycho

10100111001
Reaction score
93
Isent this just reseting itself all the time:

Code:
Loop - Actions
    Set Player11HPText = (Player11HPText + |)
    Multiboard - Set the text for MultiBoard item in column 3, row 2 to Player11HPText
    Set Player11HPText = <Empty String>

It only shows 1x |
if the hp now is 67%, then its running that loop 67 times right? that would mean it would just set | 67 times heh..

Uhm, you just need to set your actions:
Code:
Multiboard - Set the text for MultiBoard item in column 3, row 2 to Player11HPText
Set Player11HPText = <Empty String>
below the loop:
Code:
For each (Integer A) from 1 to (Integer((Percentage life of (Picked unit)))), do (Actions)
               Loop - Actions
                     Set Player11HPText = (Player11HPText + |)
               Multiboard - Set the text for [COLOR="Red"]multiboard[/COLOR] item in column [COLOR="Red"]number[/COLOR], row [COLOR="Red"]number[/COLOR] to Player11HPText
               Set Player11HPText = <Empty String>

It's as easy as that...
 

Nexor

...
Reaction score
74
tested acehart's solution, works brilliant, just make the width about 11-13% of the screen
 

Exuro.

New Member
Reaction score
5
Just did what you said OneBad, and its working perfectly now..

Well ill give you all +rep...

If im experiencing heavy load with OneBad´s trigger ill reduce the event timer, or switch to Aceharts..

Thank you all very much


Edit:
Ill make a little demo when im done with it so you guys can see the final look in action
 

Nexor

...
Reaction score
74
I made it so that it shows the percent hp of the hero, here u go:

Code:
Multiboard update
    Events
        Time - Every 0.03 seconds of game time
    Conditions
    Actions
        Set TempInteger = (Integer(((Percentage life of <Your Hero>)) + 0.50)))
        Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to String[TempInteger]
        Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to ((String((Percentage life of <Your Hero>)))) + %)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top