Originally Posted by clowcadia
also to get back to our other theory, how do i create a messege after a specific event fires that counts it like
event = 1
event = 2
|
at the top of the lua file put local varCounter = 0; This creates a variable that is accessable by the whole file and until you reset it to 0 will keep counting up wherever you add the line varCounter = varCounter + 1. of course you can use whatever word you want instead of varCounter ( except reserved words that is ).
Then it would be the case of saying
if varCounter > lastNumber then
do some code here
end
Then whenever varCounter is higher than lastNumber it will execute the code.