Diskmaster Posted July 31, 2009 Author Share Posted July 31, 2009 Hi, I am not good at timers (in fact, I used them for the first time ever today) but, I can't get this simple timer to work, as in, It is a scripted tile that is supposed to freeze you in place with a nifty little animation then, after 4 seconds, you unfreeze, NONE of the script activates which means there is a syntax error somewhere in there, but I am no good at timers so, could someone take a look at this and see what is wrong. Here is the scripted tile:```Case 5Call SpellAnim(index, GetPlayerMap(index), GetPlayerX(index), GetPlayerY(index), 200)Call LockPlayer(index, 1)Call PlayerMsg(index, "aah, a blast of ice has frozen you in place!", CYAN)Call SetTimer("Freeze(index)" & index & "," & "Freeze(index)", 4000)```Here is the sub the timer calls:```Sub Freeze(index) Call PlayerMsg(index, "You have been defrosted!", CYAN)Call LockPlayer(index, 0)Call RemoveTimer("Freeze(index)") End Sub```ANY help would be appreciated :azn: Link to comment Share on other sites More sharing options...
Bobosk Posted August 1, 2009 Share Posted August 1, 2009 ```Case 5Call SpellAnim(SPELLNUM, GetPlayerMap(index), GetPlayerX(index), GetPlayerY(index))Call LockPlayer(index, 1)Call PlayerMsg(index, "aah, a blast of ice has frozen you in place!", CYAN)Call SetTimer("Freeze " & index, 4000)``````Sub Freeze(index)Call PlayerMsg(index, "You have been defrosted!", CYAN)Call LockPlayer(index, 0)Call RemoveTimer("Freeze " & index)End Sub``` Link to comment Share on other sites More sharing options...
Diskmaster Posted August 1, 2009 Author Share Posted August 1, 2009 Yea, I figured out the spell animation problem minutes after I posted, but I see that isn't the only fix, Thx! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now