View Single Post
05-22-10, 05:06 PM   #54
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,961
Originally Posted by clowcadia View Post
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.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote