Frictional Games Forum (read-only)

Full Version: Dev mode help?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm loading the debug menu (menu that's opened with F1) while I'm testing my custom story. I need this so that if I make any changes to scripts or maps, I can quickly reload them. But it resets my variables, so scripts get all messed up. For example, if I reload a particular map, the game thinks the whole game has been reloaded and it puts me to the start of the game and the intro starts playing. Is there a way to make it not reset the entire script? It's annoying as I have to keep replaying the story from the map before the one I'm testing, and even then sometimes new entities aren't loading properly so I have to play the story from the start which is time-consuming.
Put in random tibbits of script, or disable certain areas of script temporarily just for testing purposes so that you can more easily emulate a level the way that you want to test it at the current moment.
Quick map reload?


Also

if(ScriptDebugOn() == true)
{
//DO STUFF WHEN TESTING
}
Yes, as Flawless here stated, you should add something alone the lines of
PHP Code:
if(!ScriptDebugOn()) { //If debug mode is disabled:
    //Place your intro in here.
} else { //If debug mode is enabled:
    //If needed, add some quick loading here, like skipping certain quests by setting variables or teleporting the player.