Crimsonfoxy Posted November 16, 2011 Share Posted November 16, 2011 (edited) I've got this script that should make DocMitchells TV disappear after a day but for whatever reason, I can't get it to work. It's attached to a quest, start game enabled, syntax is correct and I've assigned the TV an ID (specifically "DocsTV"). It was working when I wasn't setting the StartingDay to anything but would simply disappear instantly. Any help would be appreciated and the code is below. =) scn vanish float startingDay; float diff; short setToVanish; short doOnce; BEGIN GameMode if ( doOnce==0 ) set startingDay to GameDaysPassed set doOnce to 1 set setToVanish to 1 endif if setToVanish == 1 set diff to ( GameDaysPassed - startingDay); if diff >= 1 ;Enable vanish here DocsTV.disable set setToVanish to 0 StopQuest 1PlantVanish endif endif END Edit: Problem discovered. I thought GameDaysPassed was a whole number, so I was just waiting until the next day as opposed to 24 hours from the starting time. Feel free to laugh and then lock. :D Edited November 16, 2011 by Crimsonfoxy Link to comment Share on other sites More sharing options...
Recommended Posts