Fulla
Evil Overlord
- Reaction score
- 31
Basically im trying to create a Multiboard only as big as necessary.
So if there are
- 5 players, it has 5 rows
- 10 players, it has 10 rows.
At same time having KILLS // DEATHS in each players Row.
So I needed to create a trigger that would register players to a "Player_Slot" for the Multiboard.
i.e.
- Player 1 is playing = Row 1
- Player 2 not playing = Do Nothing
- Player 3 is playing = Row 2
- Player 4 is playing = Row 3
- Player 5 is playing = Row 4
- Player 6 not playing = Do Nothing
etc. etc.
The Problem is, when I now go to change a players Kills // Deaths, with
(Sorry combo of GUI / JASS)
So what happens? EVERY slot in Column 2 becomes that value? (Kills Column).
I really have no idea :-(
So if there are
- 5 players, it has 5 rows
- 10 players, it has 10 rows.
At same time having KILLS // DEATHS in each players Row.
So I needed to create a trigger that would register players to a "Player_Slot" for the Multiboard.
i.e.
- Player 1 is playing = Row 1
- Player 2 not playing = Do Nothing
- Player 3 is playing = Row 2
- Player 4 is playing = Row 3
- Player 5 is playing = Row 4
- Player 6 not playing = Do Nothing
etc. etc.
Code:
Actions
Set tempinteger = 1
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) slot status) Equal to Is playing
Then - Actions
Set Player_Slot[(Integer A)] = tempinteger
Set tempinteger = (tempinteger + 1)
Else - Actions
The Problem is, when I now go to change a players Kills // Deaths, with
(Sorry combo of GUI / JASS)
Code:
local player kp = GetOwningPlayer(GetKillingUnit())
local integer f1 = GetConvertedPlayerId(kp)
set udg_Player_Kills[f1] = udg_Player_Kills[f1] + 1
call MultiboardSetItemValueBJ(udg_Multiboard, 2, udg_Player_Slot[f1], I2S(udg_Player_Kills[f1]))
So what happens? EVERY slot in Column 2 becomes that value? (Kills Column).
I really have no idea :-(