Here is one temp tower, https://www.prusaprinters.org/prints/72653-updated-210802-ultimate-all-in-one-temperature-and
I took some codes from here and there and put together this,
;BEFORE_LAYER_CHANGE
G92 E0.0
{if layer_z>1.2}M104 S{(temperature[0]+10)-(5*int(((layer_z-1.2)/10)))}{endif}
;[layer_z]
In depth description in link
Prusa i3 MK3S+ FW 3.11.0 (kit dec -20), PrusaSlicer 2.6.1+win64, Fusion 360, Windows 10
temperature[0]?
@ringarn67, how does the temperature[0] part of your code work? Is that actually indexing the temperature of the zeroth layer? Can you do temperature[54] to get the 54th layer's temp?
@bill-2
It's the "other layers" temperature taken from filament settings.
There is a detailed description of what's going on, and how to adjust it to your needs, if you click the link.
Prusa i3 MK3S+ FW 3.11.0 (kit dec -20), PrusaSlicer 2.6.1+win64, Fusion 360, Windows 10