1. #1

    Weak Auras Custom Action

    Hey all,

    I'm trying to write a Weak Auras custom action that displays a certain text when I have a certain buff on me. Though with the text I'd like it to display "This sentence" then have a short delay then say "Next Sentence" and so on. I think the coding is in LUA if I'm not mistaken which is a language I don't know.

    Thanks!

  2. #2
    Stood in the Fire OOMM's Avatar
    15+ Year Old Account
    Join Date
    Sep 2007
    Location
    Kel'Thuzad
    Posts
    374
    Something like this might work.

    Display > Display Text: %c

    Custom Function:
    Code:
    function(...)
        local sentence = {}
        sentence[0] = "aura up!"
        sentence[1] = "sentence one"
        sentence[2] = "time for two"
        sentence[3] = "now three"
        sentence[4] = "four, just add more"
        local defaultText = ' ' --what to show when out of sentences, can be blank or whatever
        
        local time,duration = ...
        local i = floor((duration-(time-GetTime()))/2)
        return sentence[i] or defaultText
    end
    Using computers to make demons kill dragons: Warlock beta spell WeakAuras here, @OOMM_UI, OOMM@kt-us

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •