If anyone is interested, refering to my question above I figured it out. For if you still want to force a character single mode in versus mode when selecting in teams. This is just for my own thing really, since I want players to be able to select boss characters, but hte boss characters would be too cheap in team modes, so itll force single mode on anyone with single flag in select.def. Trying to mess with "unlocking characters" at the moment but I know k4thos is creating something so my efforts may just be wasted lol, anyway:
In start.lua, ctrl+f "SIMPLE LOOP (VS MODE, TEAM VERSUS, TRAINING, WATCH, BONUS GAMES, TIME CHALLENGE, SCORE CHALLENGE)" and then look for "--fight initialization" and paste this below it
if p1NumChars > 1 then
for i = 1, #start.t_p1Selected do
local single = false
if start.f_rivalsMatch('char_ref') and start.f_rivalsMatch('single', 1) then --team conversion assigned as rivals param
enemy_ref = main.t_selChars[start.t_p2Selected[1].ref + 1].rivals[matchNo].char_ref
single = true
elseif main.t_selChars[start.t_p1Selected[i].ref + 1].single == 1 then --team conversion assigned as character param
enemy_ref = start.t_p1Selected[i].ref
single = true
end
if single then
teamMode = start.p1TeamMode
numChars = p1NumChars
start.p1TeamMode = 0
p1NumChars = 1
setTeamMode(1, start.p1TeamMode, p1NumChars)
start.t_p1Selected = {}
start.t_p1Selected[1] = {ref = enemy_ref, pal = start.f_selectPal(enemy_ref)}
restoreTeam = true
break
end
end
end
if p2NumChars > 1 then
for i = 1, #start.t_p2Selected do
local single = false
if start.f_rivalsMatch('char_ref') and start.f_rivalsMatch('single', 1) then --team conversion assigned as rivals param
enemy_ref = main.t_selChars[start.t_p1Selected[1].ref + 1].rivals[matchNo].char_ref
single = true
elseif main.t_selChars[start.t_p2Selected[i].ref + 1].single == 1 then --team conversion assigned as character param
enemy_ref = start.t_p2Selected[i].ref
single = true
end
if single then
teamMode = start.p2TeamMode
numChars = p2NumChars
start.p2TeamMode = 0
p2NumChars = 1
setTeamMode(2, start.p2TeamMode, p2NumChars)
start.t_p2Selected = {}
start.t_p2Selected[1] = {ref = enemy_ref, pal = start.f_selectPal(enemy_ref)}
restoreTeam = true
break
end
end
end
one more step, in main.lua ctrl + f "--VS MODE / TEAM VERSUS", then paste this below "main.victoryScreen"
main.t_charparam.single = true