Author Topic: Randomize a texture on mission load  (Read 797 times)

I wish to randomize the poster on Bedroom's wall on each mission startup. I have several other posters done, but how would I randomly select one and put it up there?

I'm not sure, but couldn't you have a script that changed a variable in the .mis file?  Then just have the script randomly change the variable on startup.

You could have a batch file executed when Blockland starts up that randomly renames the bedroom posters every time you start it up.

EDIT: Oh, mission startup. Well you still have to do it through renaming files, texture names are saved in the interior so the Bedroom won't realize it's poster is supposed to be named poster5 this time and poster7 another. You will probably also need to do it before mission startup.
« Last Edit: June 21, 2010, 11:19:34 PM by Wedge »

In other words I would not be able to release a map with changing textures? I guess I'll go with the batch file then. How would I randomly rename one of my poster2-10 .pngs to "poster"?