Results 1 to 5 of 5

Thread: Need Action for targeting off when "x creature" on screen...

  1. #1
    Premium User shadowbrotha's Avatar
    Join Date
    Mar 2012
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Exclamation Need Action for targeting off when "x creature" on screen...

    Need Action for targeting off when "x creature" on screen also turn on targeting when that creature is no longer on screen

  2. #2
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    Code:
    local x = 5 -- count of monsters to turn off targeting
    
    if maround(5) >= x then
    settargeting("no")
    else
    settargeting("yes")
    end

  3. #3
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9

    local CREATURES = {"monster1","monster2"} -- add more if wanted

    if maround(7,false,unpack(CREATURES)) > 0 then
    settargeting("no")
    else
    settargeting("yes")
    end

  4. #4
    Banned
    Join Date
    May 2013
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0
    Thx i need this too.

  5. #5
    Premium User shadowbrotha's Avatar
    Join Date
    Mar 2012
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by soder View Post

    local CREATURES = {"monster1","monster2"} -- add more if wanted

    if maround(7,false,unpack(CREATURES)) > 0 then
    settargeting("no")
    else
    settargeting("yes")
    end
    Thankx
    Last edited by shadowbrotha; 08-08-2013 at 04:38 PM.

Posting Permissions

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