Hi i need a script that changes saturation, hue and lightness of bitmap. The arguments for method are either bitmap or name of file that contains bitmap (preferable name of filename) and array of three values [H,S,L] that describe by how much we want to change colors. Also there is one requirement it's need to use an external library (like gdi+) because i need to work without lags (or as little as possible). The methods will return either bitmap or nothing.
I need this script for actor customization. Why i need an external library? It's simple i wrote script that merge few sprites into one (visual equipment script) and it lags in some moments (when we changing clothes on map), so for more complicated operations on bitmap it will show more lags which isn't acceptable. Also i tried to create it myself but since i couldn't find any tutorial how to use win32api and changing functions from other scripts didn't work i give up on making it (Tried to use gdi+ and methods: Bitmap.ApplyEffect and HueSaturationLightness).
For the end i have also one question is there any battle system that reminds that from baldur's gate and other similar rpgs besides artbs??
ps. Sorry for my bad English and any of mistakes in text as English isn't my first language
Would it be possible for you to use a photoshop program instead of a script? You can change these values and save each bitmap separately, then link to them individually depending on your equip. It will take up more room, but I did that for weapons during battle and it works alright.
I don't know of any battle systems similar to Baldur's Gate, so best of luck.
Quote from: ZombieBear on March 09, 2012, 04:44:41 pm
Would it be possible for you to use a photoshop program instead of a script? You can change these values and save each bitmap separately, then link to them individually depending on your equip. It will take up more room, but I did that for weapons during battle and it works alright.
I don't know of any battle systems similar to Baldur's Gate, so best of luck.
You know i have a problem currently i have implemented about 16 actors with 65 items(some sprites can have two parts that are drew with different priorities plus body, hair, back_hair and eyes sprite), and made a sprites for next 20 actors so the amount of sprites will be probably similar, if i would need to use gimp instead of programming tricks a will have probably more than 1k items easily (if each item has 7 possible colors plus some base items. Also i have currently using 3 different bodies for sprite so in ideal situation it would each item will have three different version).
The other things is for actors, I'm planning to add many more spritesets depends on job that character will be doing, so either i will need use gimp to create different all possible colors of hairs and all possible hairstyles or if i use programming i will only need to add only all possible hairstyles. So this script is to save me much time.