I'd like to create a permanent image that shows when conditions are met; ideally it'd be as simple as "is variable x true" but, I'm open to more complicated solutions if that's all there is. To be super clear:
- I'm not looking to create a side image.
- I'd rather not have it depend on someone talking.
- The image should be present even during transitions, and should not be removed by the scene command.
- The image in question is a background, and stored as such.
- There's only the one image, and it represents battle/environment damage.
My goal is to basically have the image display if any one event that calls it occurs, with no option to remove it during a playthrough. Ideally it will persist throughout saves/reloads. It's my way of showing the player that they're in trouble, and one more bad decision, and..?! Well, nothing much'll actually happen, since they'll likely reload a save, but hopefully that gives you both the short shrift and the fluff of what I'm trying to do.
Thanks so much for your time.
Sorry again I have to bother you with something so stupid, I'm sure if I'd just kept diving posts I would've found it...
EDIT:
Figured it out myself; recording info here to help those searching for a similar topic but not sure where to look. Here's how I did it:
In options.rpy, add a new layer. Mine was 'battledamage.' The code will look like so. I might also separate 'environmentaldamage' into it's own thing, but...
# Segment defining layers here; you can add one if you don't have it
Code: Select all
config.layers = [ 'master', 'transient', 'battledamage', 'screens', 'overlay' ]
Code: Select all
image damage1 = "effects/damage1.bmp"
Finally, to show/remove battledamage is as simple as...
Code: Select all
show damage1 onlayer battledamage
hide damage1 onlayer battledamage with fade