OK. Was looking for a solution for high school football whereas volunteer scorekeepers can setup scoreboard with team names, logos, colours, etc by only using OES controller. No other hardware or thinking involved.
I may have found a workaround whereas scorekeeper enter into 'setup' mode by setting clock to '59:59' and period '9' (which is an unlikely situation in game). Then scorekeeper can change team info (team name & logos) by entering specific scores for home and away teams. Still following along? All is working as intended except XPression crashes when toggle scores too quickly. Not sure what is causing crash, perhaps loading volatile textures too quickly... any ideas?
Here's the script that I've put home team score (OnSetText):
[I]dim HomeTeamName, Quarter, Clock as xpTextObject[/I]
[I]dim HomeTeamLogo, HomeTeamChip as xpBaseObject[/I]
[I]dim logopath, chippath as string[/I]
[I]logopath = "D:\XPression Projects\Roughriders Game Day XPR2\Unmanaged\Highschool Scoreboard\hsteamlogos"[/I]
[I]chippath = "D:\XPression Projects\Roughriders Game Day XPR2\Unmanaged\Highschool Scoreboard\hsteamswatches"[/I]
[I]scene.getObjectByName("home team name", HomeTeamName)[/I]
[I]scene.getObjectByName("quarter data", Quarter)[/I]
[I]scene.getObjectByname("clock", Clock)[/I]
[I]scene.getObjectByName("home team logo", HomeTeamLogo)[/I]
[I]scene.getObjectByname("home team chip", HomeTeamChip)[/I]
[I]if text = "150" and Quarter.text = "9" and Clock.text = "59:59" then[/I]
[I] HomeTeamName.text = "balfour"[/I]
[I] HomeTeamLogo.SetVolatileTextureFile(0, logopath & HomeTeamName.text & ".png")[/I]
[I] HomeTeamChip.SetVolatileTextureFile(0, chippath & HomeTeamName.text & ".png")[/I]
[I]else if text = "152" and Quarter.text = "9" and Clock.text = "59:59" then[/I]
[I] HomeTeamName.text = "campbell"[/I]
[I] HomeTeamLogo.SetVolatileTextureFile(0, logopath & HomeTeamName.text & ".png")[/I]
[I] HomeTeamChip.SetVolatileTextureFile(0, chippath & HomeTeamName.text & ".png")[/I]
[I]end if[/I]
#XPression