Help with Slots?

In my Infinity War gamemode there are two phases. The first is a hiding phase where each player hides one of the six infinity stones. The stone they hide depends on what slot they are in. I wanted to put text that shows which stone each player is hiding. But it doesn’t seem to work. What am I missing? Here’s the code for slot 1:

rule(“Slot 1”)
{
event
{
Ongoing - Each Player;
Team 2;
Slot 1;
}

conditions
{
	Global Variable(H) == True;
	Event Player == Players In Slot(1, Team 2);
}

actions
{
	Create HUD Text(All Players(All Teams), String("{0} {1}", String("Hiding", Null, Null, Null), Icon String(Bolt), Null), Null, Null,
		Top, 20, Purple, White, White, Visible To and String, Default Visibility);
}

}

***Note that the global variable h is there to indicate when the hiding phase is over.

Your HUD Text is set to display to everyone, not just the player hiding their stone. Not sure if that was intentional. Don’t forget that Slot 0 is the first slot on a team as well.

1 Like

Yeah that worked thanks man

1 Like

No problem my friend. Best of luck!