Code: Select all
counters := {cats: 3, dogs: 5, ducks: 7}
petwars()
petwars()
{
if ( counters["ducks"] > counters["dogs"] + counters["cats"] )
{
MsgBox, Ducks rule!
}
else
{
if counters["dogs"] > counters["cats"]
MsgBox, You're a dog person
else
MsgBox, You're a cat person
}
}
Bonus points if that can be done in a timer function because I would be calling it from inside a timer, but I can get around that if it isn't possible.
As per usual, thanks in advance!