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.

      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