Hm, reverting to the Default Objec Desc is something I’ve only encountered when moving myself from Player Slot to Spectator.
Is your intention to simply have a different static text or is it to display something like the Players Hero / Variable ?
I’d assume what makes you the problems is the Reevaluation so I’m going to follow up with some when to Reevaluate what part.
rule("Rule 1")
{
event
{
Ongoing - Global;
}
actions
{
Set Objective Description(All Players(All Teams), String("Hello"), Visible To and String);
}
}
This would be a case where you need to Reevaluate Visible To and String
because you want it visible to All Players @ any time, when somebody joins after the Action has been executed they won’t see the String;
The String needs to Reevaluate because it’s a preset String that changes based on your language, if you don’t reevaluate the String it should stay the Language of the Hosts client at the time of executing, regardless of whether or not your Client uses a different language.
rule("Rule 1")
{
event
{
Ongoing - Each Player;
All;
All;
}
actions
{
Set Objective Description(Event Player, Custom String("Goodbye"), None);
}
}
This one doesn't need either reevaluation
reason being, the Player executing will always be the Event Player and the only Player who it is Visible to,
the String doesn’t need to Reevaluate because it isn’t based on your Client language & can’t change to a different String
rule("Rule 1")
{
event
{
Ongoing - Global;
}
actions
{
Set Objective Description(Local Player, Local Player.A ? Custom String("Victory") : Custom String("Defeat"), Visible To and String);
}
}
This one would require both
as the Local Player Value is unique to every player, not reevaluating this one would cause it again to not be Visible to Players that Join after the execution of the Action & wouldn’t change to “Victory” if the Players Variable A becomes true.
In addition if you let the Event Player execute said action better make sure that the Visibility is either only the Event Player or doesn’t reevaluate as this could cause issues with multiple Desc’s trying to be Visible at the same time.
If you make it visible to all Players rather execute it at the Global level and reevaluate Visibility if you want Players that joined later be able to see the Desc.