local function MakeModifierForPlayer(pn) return LoadFont("Common","normal")..{ Name=pn.."ModCheck"; OnCommand=function(self) -- check if the player is actually even here! if not GAMESTATE:IsSideJoined(pn) then return; end; -- first get the difficulty. local difficulty = GAMESTATE:GetCurrentSteps(pn):GetDifficulty(); -- check if this player is on Hard/Crazy/Heavy/whatever. if( difficulty == 'Difficulty_Hard' ) then -- get the PlayerState for this player. local PlayerState = GAMESTATE:GetPlayerState(pn); -- grab the song options from this PlayerState. local options = PlayerState:GetPlayerOptions('ModsLevel_Song'); -- now using split, let's put them into a table for comparison local listOfOptions = split(", ", options); -- rebuild the options into a list local newOptions = ""; for i=1,#listOfOptions do newOptions = newOptions ..",".. listOfOptions[i]; end; -- add dizzy newOptions = "dizzy" .. newOptions; -- sets the player options PlayerState:SetPlayerOptions('ModsLevel_Song',newOptions); end; end; }end;local t = Def.ActorFrame{ MakeModifierForPlayer(PLAYER_1); MakeModifierForPlayer(PLAYER_2);};return t;