If you want to make a video game stick to the script and plot if your work is malleable it wont withstand the test of time [control]. Same for movies.
Programming Languages like Lua and Python will get you started in the right direction.
Love2D and Instead Game Engine use lua I suggest the free book Programming in Lua and also ZeroBrane IDE to compile and code.
Python code is useful for Ren'Py many games are called visual novels outdated software like TADS and htmlTADS is great for interactive fiction. Like CYOA this trademark means Select Your Fate "SYF" books.