[Solved] How do I get the name of the current scenario?
Posted: Wed May 26, 2021 6:13 pm
Hello,
I want to access the name of the current scenario from within control.lua. How does one go about doing that? I can't seem to find anything in LuaGameScript that allows me to access this property.
If it helps, I'm trying to print a message to the console, but only in a very specific scenario that is included in one of my other mods:
I want to access the name of the current scenario from within control.lua. How does one go about doing that? I can't seem to find anything in LuaGameScript that allows me to access this property.
If it helps, I'm trying to print a message to the console, but only in a very specific scenario that is included in one of my other mods:
Code: Select all
if get_scenario_name() == "my-scenario-from-another-mod" then
player.print( "special message" )
end