1
OXCE Support / Re: Original 8 commendation combined with another
« on: May 13, 2024, 11:55:24 am »
It would probably have to be a transformation with two commendation requirements.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
extended:
scripts:
recolorUnitSprite:
- new: YSCRIPT_DAYFLASH
offset: 49.99
code: |
var int frame;
var int period;
var int tileShade;
var int newShade;
var int id;
unit.getId id;
if gt id 1000; # only friendly units
return new_pixel;
end;
set period 10; # flash once every x frames
set frame anim_frame;
mod frame period;
if neq frame 0;
return new_pixel;
end;
unit.getTileShade tileShade;
get_shade newShade new_pixel;
sub newShade 1;
if and lt tileShade 10 gt newShade 0;
set_shade new_pixel newShade;
end;
return new_pixel;
I would like to remind you about this topic.
https://openxcom.org/forum/index.php?topic=11648.0
I actually like this idea just as much. Making items hidden for ship equipment, like in the Buy menu, would solve a lot of problems. Not exactly what I would like, but also a good idea.