PlatformTextToggleEventsUI-PlayerAnyPlayerpressesTkeyDownwithshiftAllow,controlAllow,altAllowLocalVariablestemp_Count=0<Integer>arrayIndex=((Triggeringplayer)-1)<Integer>DEBUG_toggle=NoText<Text>ConditionsActionsGeneral-If(Conditions)thendo(Actions)elsedo(Actions)IfplayerInfo[arrayIndex].toggle_Text == true
Then
Variable - Set DEBUG_toggle = "FALSE"
Variable - Set playerInfo[arrayIndex].toggle_Text = false
------- Hide all platform text tag
General - For each integer temp_Count from 0 to 13 with increment 1, do (Actions)
Actions
Text Tag - Hide Platform Text Tag[temp_Count] for (Player group((Triggering player)))
Else
Variable - Set DEBUG_toggle = "TRUE"
Variable - Set playerInfo[arrayIndex].toggle_Text = true
------- Show all platform text tag
General - For each integer temp_Count from 0 to 13 with increment 1, do (Actions)
Actions
Text Tag - Show Platform Text Tag[temp_Count] for (Player group((Triggering player)))
UI - Display (Combine ((Name of player (Triggering player)), " (Player ", (Text(arrayIndex)), ")'s toggle status: ", DEBUG_toggle)) for (All players) to Debug area
I don't get which part i scripted wrongly or i am just too tired. It just won't work on multiplayer. Sometimes when other players press T, my text will turn off and vise versa.
Your If statement contains arrayIndex which is the ((Triggering player) - 1) but your text hide action says only (Player group((Triggering player)))
Could that be leading to it? If so simply changing triggering player in the action to match the arrayIndex or doing a arithmetic of (triggering player) - 1 would fix it.
Let me know.
Edit: Sorry, must be late for me too... its actually the reverse of what I said... anytime you use (Triggering player) - 1 you will always be talking about a player other then the one who did the action. So if player 2 presses "t" then the triggering player -1 is player 1.
I am pretty sure its not it because my array index starts from 0. And player 1 info will be saved into array index of 0, 2 will be 1 and so on and player 12 is 11 which is the max.
From my experience, text tags are retarded, if you show it to one player, it will hide it completely for anyone NOT in that player group. I tried getting around this by using the Text tag is visible function but even that was broken. I tested this awhile ago and it could have been fixed, but this was the issue I had.
I don't get which part i scripted wrongly or i am just too tired. It just won't work on multiplayer. Sometimes when other players press T, my text will turn off and vise versa.
I am pretty sure its not it because my array index starts from 0. And player 1 info will be saved into array index of 0, 2 will be 1 and so on and player 12 is 11 which is the max.
From my experience, text tags are retarded, if you show it to one player, it will hide it completely for anyone NOT in that player group. I tried getting around this by using the Text tag is visible function but even that was broken. I tested this awhile ago and it could have been fixed, but this was the issue I had.
@LinkD: Go
Could anyone confirm this? I can't test my map currently as my friends are asleep. Though it sounds like that is the culprit