Malkorian Posted January 1, 2012 Share Posted January 1, 2012 Hello, I'm new to Oblivion scripting but not new to scripting in general. I'm working on a mod that uses short movie files and I would like the script to choose which movie to play based on a set of variables. I am using a standardized naming convention for all the .bik files but I'm not sure how to concatenate string variables to form the full filename. I want to do something like this: Set timeofday to "night"Set locationtype to "citystreet"PlayBink timeofday + citystreet + ".bik" 1 Using a script like this will let me play cinematic videos as part of a quest and have the video resemble the current game time and location. I'm just not sure if the PlayBink function even supports variable filenames... Thanks for any assistance! Link to comment Share on other sites More sharing options...
WarRatsG Posted January 2, 2012 Share Posted January 2, 2012 (edited) I don't think you can use several variables in this context, if at all. However, if you were to combine all of these variables into one String Variable, then maybe it would work. By that, I mean: Let TimeofDay := "<Time of day>" Let CityStreet := "<City street>" Let BinkFile := TimeofDay + CityStreet + ".bik" PlayBink BinkFile 1 For the record, StringVars require OBSE. Edited January 2, 2012 by WarRatsG Link to comment Share on other sites More sharing options...
Recommended Posts