It is currently May 3rd, 2024, 4:41 am

!SetVariable: Why won't my alarm reset?

Get help with creating, editing & fixing problems with skins
User avatar
WandersFar
Posts: 46
Joined: January 25th, 2010, 3:38 pm

!SetVariable: Why won't my alarm reset?

Post by WandersFar »

Code: Select all

[MeasureAlarm]
Measure=Calc
Formula=([MeasureHour]*60+[MeasureMinute]+[MeasureAM0PM720])-(#AlarmHour#*60+#AlarmMinute#+#AlarmAM0PM720#)
IfEqualValue=0
IfEqualAction=[!SetVariable AlarmHour 0][!SetVariable AlarmMinute 0][!SetVariable AlarmAM0PM720 0][Play Alarm.wav]
DynamicVariables=1

[Variables]
AlarmHour=12
AlarmMinute=55
AlarmAM0PM720=720
The alarm goes off, but the variables aren't reset to zero. Why?
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: !SetVariable: Why won't my alarm reset?

Post by smurfier »

You do realize that using !SetVariable does not actually change the variables set in the INI skin file. It only changes the value set in memory. To permanently change them use !WriteKeyValue.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .