Basic If Statement Syntax menu

User Tag List

Results 1 to 11 of 11
  1. #1
    Abramacadabra's Avatar Member
    Reputation
    6
    Join Date
    Jan 2015
    Posts
    23
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Basic If Statement Syntax

    Hi Guys,
    I'm new in the forum, so it's like a tradition having problems.
    I'm trying to write a rotation and i'm wondering if its possible to gather togheter a list of spell under the same condition and not
    write the same condition for each spell.
    I make an example:

    { "Power Word: Shield", "player.moving" },
    { "Mind Blast", "player.moving" },
    { "Shadow Word: Death", "player.moving" },
    { "Devouring Plague", "player.moving" },
    { "Cascade", "player.moving" },
    { "Halo", "player.moving" },

    The common condition above is "player.moving";
    What i want to do:

    if "player.moving", {
    { "Power Word: Shield", "other specific condition for power word: shield" },
    { "Mind Blast", "other specific condition for ...." },
    { "Shadow Word: Death", "other specific condition for ....." },
    { "Devouring Plague", "other specific condition" },
    { "Cascade", "other specific condition" },
    { "Halo", "other specific condition" },
    } end,

    Is it possible or anything similar?
    Really, really, really my best praise for the creation of PE and thk for the help.

    Basic If Statement Syntax
  2. #2
    Mackdaddy2887's Avatar Knight-Lieutenant
    Reputation
    43
    Join Date
    Mar 2011
    Posts
    265
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    {{
    { "Power Word: Shield", "other specific condition for power word: shield" },
    { "Mind Blast", "other specific condition for ...." },
    { "Shadow Word: Death", "other specific condition for ....." },
    { "Devouring Plague", "other specific condition" },
    { "Cascade", "other specific condition" },
    { "Halo", "other specific condition" },
    }, "player.moving" },

  3. #3
    Abramacadabra's Avatar Member
    Reputation
    6
    Join Date
    Jan 2015
    Posts
    23
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And the winner is.......... trrrrrrrrrrrrrrrrrrrrrrrr: Mackdaddy2887!!!!!!!!!!!!!
    Really thk.
    Another noob question:
    Is there a fuction that allow to toggle on/off the cooldowns button?

  4. #4
    Mackdaddy2887's Avatar Knight-Lieutenant
    Reputation
    43
    Join Date
    Mar 2011
    Posts
    265
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Abramacadabra View Post
    And the winner is.......... trrrrrrrrrrrrrrrrrrrrrrrr: Mackdaddy2887!!!!!!!!!!!!!
    Really thk.
    Another noob question:
    Is there a fuction that allow to toggle on/off the cooldowns button?
    What you mean? A way in game to toggle it, aside from clicking? Yes. "/pe help" will show you a list of commands, I believe the cooldown is "/pe cd" ~ not 100% sure, that's off the top of my head. You can make this into a macro.


    If you mean in the code itself, how to set an line of code to only use when cooldown button is enabled?
    Just use this conditional:
    "modifier.cooldowns"

  5. #5
    Abramacadabra's Avatar Member
    Reputation
    6
    Join Date
    Jan 2015
    Posts
    23
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    my purpose is to toggle off the cooldowns button after a buff goes off automatically.
    So is there a function (for example: toggleoff.cooldowns) to use in rotation?

  6. #6
    ImogenOC's Avatar Contributor ProbablyEngine Community Manager
    Reputation
    173
    Join Date
    Nov 2013
    Posts
    364
    Thanks G/R
    0/8
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Abramacadabra View Post
    my purpose is to toggle off the cooldowns button after a buff goes off automatically.
    So is there a function (for example: toggleoff.cooldowns) to use in rotation?
    Commands can be run through the client using { "/command", "condition.met },
    So you could do { "/dance", "player.buff(Divine Shield)" }, if you wanted.
    ProbablyEngine - Developer and Lead Support
    A Powerful Rotation Bot: ProbablyEngine

  7. #7
    Abramacadabra's Avatar Member
    Reputation
    6
    Join Date
    Jan 2015
    Posts
    23
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ohhhhhhhhhh...........
    The master and the disciple; thk for lightning my way.
    cheerssss!!!!!

  8. #8
    Mackdaddy2887's Avatar Knight-Lieutenant
    Reputation
    43
    Join Date
    Mar 2011
    Posts
    265
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Abramacadabra View Post
    my purpose is to toggle off the cooldowns button after a buff goes off automatically.
    So is there a function (for example: toggleoff.cooldowns) to use in rotation?
    Very interesting Idea... I can think of some practical purposes. I like this.
    Say "combustion" is the CD spell were talking about, and usage of this spell only happens with cool down enabled, start combat with it enabled then after it's cast, it turns off cooldown toggle. Is this something you meant? If.. not sure have to check ingame, but say the function I mentioned is. "/pe cds" then we do this:
    Code:
    {"/pe cds", {"lastcast(combustion)", "player.spell(combustion).casted > 1", "modifier.cooldowns"}},
    It's safe to say that the CR world toggle off the cooldowns button if and only if:
    Combustion was last cast
    Combustion successfully cast
    Cooldown toggle is currently on

  9. #9
    Abramacadabra's Avatar Member
    Reputation
    6
    Join Date
    Jan 2015
    Posts
    23
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow, amazing!!!!
    The idea is to use cds on-demand with relative rotation.
    Reaching my goal and all cause your matter; THK

  10. #10
    Abramacadabra's Avatar Member
    Reputation
    6
    Join Date
    Jan 2015
    Posts
    23
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Further step:
    {"/roar", "casting.spell(30451)", "player"},
    or
    {"/roar", "player.spell(30451)".casting"},
    dont work.

    if i use only {"/roar"}, spamm like a lion in a savannah.

    Any suggestion?

  11. #11
    Mackdaddy2887's Avatar Knight-Lieutenant
    Reputation
    43
    Join Date
    Mar 2011
    Posts
    265
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Abramacadabra View Post
    Further step:
    {"/roar", "casting.spell(30451)", "player"},
    or
    {"/roar", "player.spell(30451)".casting"},
    dont work.

    if i use only {"/roar"}, spamm like a lion in a savannah.

    Any suggestion?
    {"/roar", "player.spell(30451).casting"}, You had an extra "

    But honestly, at this moment I don't believe the function works. It doesn't check the spell in (), it only checks to see if your casting. I do believe.

    Try this:
    Code:
    {"!/roar", {"lastcast(30451)", "player.casting"}},
    Last cast doesn't check if the cast succeed, only that the command was sent, and player casting means your currently casting, the ! Means it will use that command regardless if your casting or not (usually PE will wait till the cast is over)

    Try that

Similar Threads

  1. basic campfire
    By Marlo in forum World of Warcraft General
    Replies: 2
    Last Post: 12-06-2006, 04:38 PM
  2. Basics of Video Making!!
    By Krazzee in forum World of Warcraft Guides
    Replies: 8
    Last Post: 12-03-2006, 08:02 AM
  3. Basic L33t speak guide
    By Snor11 in forum World of Warcraft Guides
    Replies: 13
    Last Post: 10-19-2006, 12:45 PM
  4. Basic Fishing Extravaganta Tricks
    By Petrusha in forum World of Warcraft Exploits
    Replies: 3
    Last Post: 08-28-2006, 09:18 PM
  5. Tanking For Dummies Part 1: The Basics
    By Krazzee in forum World of Warcraft Guides
    Replies: 1
    Last Post: 06-14-2006, 07:41 AM
All times are GMT -5. The time now is 03:23 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search