So I recently decided I wanted to learn Lua and be able to make addons. So I figured I would start out small to test what I have learned so far. Yet for some reason I can't figure out, it isn't working as intended.
What I have so far is:
Code:
local time = GetPVPTimer()
while time == 270000 do
print ("4:30 remaining!")
end
end
What I'm trying to do is just announce in the chat box the time remaining on a PVP timer at certain intervals. However it seems to only run the script when I load into the game, instead of constantly checking to see when time hits 270000.