When I update the kills on my multiboard, the whole column is updated with the kills?

  • Thread starter Thread starter Stonos
  • Start date Start date
S

Stonos

Guest
Hello.

I'm trying to make my first map.
I want to make a multiboard to keep track of the player's & team kills.

However, when I try to update the kills, strangly, all the whole kills column is updated with the kills number!

Why is that happening?

Here's my multiboard create code and kills score add.

Multiboard create:

Code:
Create Multiboard
    Events
        Time - Elapsed game time is 1.00 seconds
    Conditions
    Actions
        Set Player_Count = (Number of players in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))))
        Set List = 3
        Multiboard - Create a multiboard with 3 columns and ((Player_Count + 3) + 0) rows, titled Scores
        Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to Player Name
        Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to Kills
        Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to Team 1
        For each (Integer A) from 1 to (3 + Player_Count), do (Actions)
            Loop - Actions
                Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Show text and Hide icons
                Multiboard - Set the display style for (Last created multiboard) item in column 1, row (Integer A) to Show text and Hide icons
                Multiboard - Set the display style for (Last created multiboard) item in column 2, row (Integer A) to Show text and Hide icons
                Multiboard - Set the display style for (Last created multiboard) item in column 3, row (Integer A) to Show text and Hide icons
                Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer A) to 3.00% of the total screen width
                Multiboard - Set the width for (Last created multiboard) item in column 2, row (Integer A) to 10.00% of the total screen width
                Multiboard - Set the width for (Last created multiboard) item in column 3, row (Integer A) to 3.00% of the total screen width
        Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked player) slot status) Equal to Is playing
                        ((Picked player) controller) Equal to User
                    Then - Actions
                        Set Multiboard_Spots[(Player number of (Picked player))] = List
                        Multiboard - Set the text for (Last created multiboard) item in column 2, row List to (Player_Colors[(Player number of (Picked player))] + ((Name of (Picked player)) + |r))
                        Multiboard - Set the text for (Last created multiboard) item in column 3, row List to 0
                        Set List = (List + 1)
                    Else - Actions
                        Do nothing
        Multiboard - Set the text for (Last created multiboard) item in column 2, row (List + 1) to Team 2
        Player Group - Pick every player in (All allies of Player 5 (Yellow)) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked player) slot status) Equal to Is playing
                        ((Picked player) controller) Equal to User
                    Then - Actions
                        Set Multiboard_Spots[(Player number of (Picked player))] = List
                        Multiboard - Set the text for (Last created multiboard) item in column 2, row List to (Player_Colors[(Player number of (Picked player))] + ((Name of (Picked player)) + |r))
                        Multiboard - Set the text for (Last created multiboard) item in column 3, row List to 0
                        Set List = (List + 1)
                    Else - Actions
                        Do nothing
        Multiboard - Show (Last created multiboard)

Kill add:

Code:
Player Kills Update
    Events
        Unit - A unit Dies
    Conditions
        ((Owner of (Killing unit)) controller) Equal to User
    Actions
        Set PlayerKills[(Player number of (Owner of (Killing unit)))] = (PlayerKills[(Player number of (Owner of (Killing unit)))] + 1)
        Multiboard - Set the text for (Last created multiboard) item in column 3, row Multiboard_Spots[((Player number of (Owner of (Killing unit))) + 1)] to (String(PlayerKills[(Player number of (Owner of (Killing unit)))]))

Why is this happening? :confused:

Oh, by the way, I'm using the trigger code from Senkin's tutorial.

Thank you! :)
 
im not good with them, i was lucky to get mine to work, but ill show you mine and maybe you can figure out what the deal is from what I have cuz mine works good

Code:
Create Multiboard
    Events
        Time - Elapsed game time is 0.50 seconds
    Conditions
    Actions
        Multiboard - Destroy (Last created multiboard)
        Multiboard - Create a multiboard with 4 columns and 16 rows, titled DotA Ed Edition bet...
        Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Player
        Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to Dead?
        Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to Kills
        Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to Deaths
        Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to (Player_Colors[11] + (The Sentinel + |r))
        Multiboard - Set the text for (Last created multiboard) item in column 1, row 8 to (Player_Colors[12] + (The Scourge + |r))
        Multiboard - Set the text for (Last created multiboard) item in column 3, row 8 to 0
        Multiboard - Set the text for (Last created multiboard) item in column 4, row 8 to 0
        Multiboard - Set the text for (Last created multiboard) item in column 4, row 2 to 0
        Multiboard - Set the text for (Last created multiboard) item in column 3, row 2 to 0
        For each (Integer A) from 1 to 16, do (Actions)
            Loop - Actions
                Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer A) to 9.80% of the total screen width
                Multiboard - Set the width for (Last created multiboard) item in column 2, row (Integer A) to 4.20% of the total screen width
                Multiboard - Set the width for (Last created multiboard) item in column 3, row (Integer A) to 4.00% of the total screen width
                Multiboard - Set the width for (Last created multiboard) item in column 4, row (Integer A) to 4.60% of the total screen width
                Multiboard - Set the color for (Last created multiboard) item in column 2, row (Integer A) to (86.20%, 86.20%, 0.00%) with 0.00% transparency
                Multiboard - Set the color for (Last created multiboard) item in column 3, row (Integer A) to (100.00%, 0.00%, 0.00%) with 0.00% transparency
                Multiboard - Set the color for (Last created multiboard) item in column 4, row (Integer A) to (0.00%, 5.00%, 100.00%) with 0.00% transparency
        For each (Integer A) from 2 to 6, do (Actions)
            Loop - Actions
                Multiboard - Set the text for (Last created multiboard) item in column 1, row ((Integer A) + 1) to (Player_Colors[((Integer A) - 1)] + ((Name of (Player(((Integer A) - 1)))) + |r))
                Multiboard - Set the text for (Last created multiboard) item in column 2, row ((Integer A) + 1) to NO
                Multiboard - Set the text for (Last created multiboard) item in column 3, row ((Integer A) + 1) to 0
                Multiboard - Set the text for (Last created multiboard) item in column 4, row ((Integer A) + 1) to 0
        For each (Integer A) from 8 to 12, do (Actions)
            Loop - Actions
                Multiboard - Set the text for (Last created multiboard) item in column 1, row ((Integer A) + 1) to (Player_Colors[((Integer A) - 2)] + ((Name of (Player(((Integer A) - 2)))) + |r))
                Multiboard - Set the text for (Last created multiboard) item in column 2, row ((Integer A) + 1) to NO
                Multiboard - Set the text for (Last created multiboard) item in column 3, row ((Integer A) + 1) to 0
                Multiboard - Set the text for (Last created multiboard) item in column 4, row ((Integer A) + 1) to 0
        For each (Integer A) from 1 to 4, do (Actions)
            Loop - Actions
                For each (Integer B) from 1 to 16, do (Actions)
                    Loop - Actions
                        Multiboard - Set the display style for (Last created multiboard) item in column (Integer A), row (Integer B) to Show text and Hide icons
        Multiboard - Set the text for (Last created multiboard) item in column 1, row 14 to Time Elapsed
        Multiboard - Set the color for (Last created multiboard) item in column 3, row 14 to (100.00%, 100.00%, 100.00%) with 0.00% transparency
        Multiboard - Set the text for (Last created multiboard) item in column 1, row 15 to (Player_Colors[11] + (Towers Lost + |r))
        Multiboard - Set the text for (Last created multiboard) item in column 1, row 16 to (Player_Colors[12] + (Towers Lost + |r))
        Multiboard - Set the text for (Last created multiboard) item in column 3, row 15 to (Player_Colors[11] + (0 + |r))
        Multiboard - Set the text for (Last created multiboard) item in column 3, row 16 to (Player_Colors[12] + (0 + |r))
        Multiboard - Show (Last created multiboard)


Code:
Player Kills Update
    Events
        Unit - A unit Dies
    Conditions
        ((Dying unit) is A Hero) Equal to True
        ((Owner of (Killing unit)) controller) Equal to User
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Killing unit) belongs to an ally of Player 6 (Orange)) Equal to True
            Then - Actions
                Set Kill_Count[12] = (Kill_Count[12] + 1)
                Multiboard - Set the text for (Last created multiboard) item in column 3, row 8 to (String(Kill_Count[12]))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Killing unit) belongs to an ally of Player 1 (Red)) Equal to True
            Then - Actions
                Set Kill_Count[11] = (Kill_Count[11] + 1)
                Multiboard - Set the text for (Last created multiboard) item in column 3, row 2 to (String(Kill_Count[11]))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Killing unit)) Equal to Player 10 (Light Blue)
            Then - Actions
                Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
                Multiboard - Set the text for (Last created multiboard) item in column 3, row 13 to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Killing unit)) Equal to Player 9 (Gray)
            Then - Actions
                Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
                Multiboard - Set the text for (Last created multiboard) item in column 3, row 12 to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Killing unit)) Equal to Player 8 (Pink)
            Then - Actions
                Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
                Multiboard - Set the text for (Last created multiboard) item in column 3, row 11 to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Killing unit)) Equal to Player 7 (Green)
            Then - Actions
                Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
                Multiboard - Set the text for (Last created multiboard) item in column 3, row 10 to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Killing unit)) Equal to Player 6 (Orange)
            Then - Actions
                Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
                Multiboard - Set the text for (Last created multiboard) item in column 3, row 9 to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Killing unit)) Equal to Player 5 (Yellow)
            Then - Actions
                Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
                Multiboard - Set the text for (Last created multiboard) item in column 3, row 7 to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Killing unit)) Equal to Player 4 (Purple)
            Then - Actions
                Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
                Multiboard - Set the text for (Last created multiboard) item in column 3, row 6 to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Killing unit)) Equal to Player 3 (Teal)
            Then - Actions
                Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
                Multiboard - Set the text for (Last created multiboard) item in column 3, row 5 to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Killing unit)) Equal to Player 2 (Blue)
            Then - Actions
                Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
                Multiboard - Set the text for (Last created multiboard) item in column 3, row 4 to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Killing unit)) Equal to Player 1 (Red)
            Then - Actions
                Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
                Multiboard - Set the text for (Last created multiboard) item in column 3, row 3 to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
            Else - Actions

basically i just have it for each person, i find when i try to do itthe short way liek you were , something always goes wrong, so i juts write mine all out, it takes a little more time, but atleast it works :)
 
Stonos said:
Code:
Player Kills Update
    Events
        Unit - A unit Dies
    Conditions
        ((Owner of (Killing unit)) controller) Equal to User
    Actions
        Set PlayerKills[(Player number of (Owner of (Killing unit)))] = (PlayerKills[(Player number of (Owner of (Killing unit)))] + 1)
        Multiboard - Set the text for (Last created multiboard) item in column 3, row Multiboard_Spots[((Player number of (Owner of (Killing unit))) [B][U]+ 1[/U][/B])] to (String(PlayerKills[(Player number of (Owner of (Killing unit)))]))
:)
Higligted the error. It shouldent be any + 1 there.
As a default if the vaule passed to a row or column is 0 the whole row/colum is affected. (you can use this to remove the first loop in the create trigger).
So when you tries to acces (player number + 1) (wich should be only (player number) from the begining) and there is no vaule there it changes the whole column.
 
Ah thx, i was also having this problem :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Also, in the last template there was a seperation between sticky threads and regular threads in the forum
  • Ghan Ghan:
    Not sure. It's probably part of a cron job.
  • The Helper The Helper:
    Hey Ghan, whatever cron job its part of its not running its been the same for days. If it does not work can we remove it?
  • The Helper The Helper:
    LOL! A tweak job!
  • The Helper The Helper:
    this is the fix I get from that yeah this is hard to control. disabling bots is pretty much necessary as ai and other bots would push really old threads to the top. reduce weight of view count. disable guest view tracking if you really want to push active threads to the top. a bit of tinkering for a few days with the weights and other settings should get you a decent trending widget box.
  • Ghan Ghan:
    I changed the settings a bit.
  • Ghan Ghan:
    Narrowed it to 7 days for the half-life and set views to 0 weight.
  • The Helper The Helper:
    I dont think Trending would work for this forum it would be better to just have the last 5 posts from anywhere
  • Ghan Ghan:
    Probably will have to give it some time to update.
  • Ghan Ghan:
    I'm guessing it is not retroactive.
  • Ghan Ghan:
    Next on the punch list: Update the server to Ubuntu 24.04.
  • The Helper The Helper:
    Mad Lads is new I see it displays original post date
  • The Helper The Helper:
    as long as it changes it is good - it is good now it updated and its new stuff
  • The Helper The Helper:
    One thing I have noticed and I dont know if it is by design but like 1 out of 3 times I come to the site the Anubis screen just hangs open, if I refresh it will go away but sometimes it hangs
  • Ghan Ghan:
    I've seen that as well.
  • The Helper The Helper:
    Wow - the change in the stats are major. I kind of knew it was all bots but wow, to see the effect. Why the social media sites cant do something like this I have no idea.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)
  • The Helper The Helper:
    Happy Saturday! Hope everyone has a fantastic weekend!

The Helper Discord

Staff online

Members online

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top