Results 1 to 4 of 4

Thread: Training on Young Sea Serpents

  1. #1
    iBot User
    Join Date
    Jun 2013
    Posts
    2
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Training on Young Sea Serpents

    Hey, i need action which will make my char stop attacking Young Sea Serpent when it's hp is lower than 600hp.

    I set in Targeting attack Young Sea Serpents when hp 70-100%.

    And my curent action looks like this, but it dousen't stop attack the serpents :

    if (target.name == 'Young Sea Serpent') and (target.hppc <= 600) then
    stopattack()
    else
    null
    end

    Could someone help me please?

  2. #2
    Focus Group MoS's Avatar
    Join Date
    Feb 2012
    Posts
    832
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    63 Post(s)
    Reputation
    77
    Rep Power
    6
    hppc = %

    less then 600%? :P

    try hppc <= 60
    or..............
    hp <= 600
    Ajudei você? ...............+REP
    -----------------------------------------
    Did I help you? ..........+REP

  3. #3
    iBot User
    Join Date
    Jun 2013
    Posts
    2
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Oh it's in %... works perfectly now, Thanks a lot

  4. #4
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    389 Post(s)
    Reputation
    366
    Rep Power
    10
    @korfu

    Dont need the "NULL", makes it look clean and nice and best of all, shorter! :3
    Lua Code:
     
    if (target.name == 'Young Sea Serpent') and (target.hppc <= 600) then
       stopattack()
    end

Posting Permissions

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