• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Checking for Condition

    Discussion in 'Community Developer Forum' started by Zamphire, Jan 23, 2015.

    1. Zamphire

      Zamphire Member

      Joined:
      May 16, 2013
      Messages:
      354
      Likes Received:
      11
      Trophy Points:
      18
      How do I check for condition with the new crafting bot? I tried putting this in but it doesn't seem to work. I'm sure I've just go the syntax wrong. Any ideas?

      Code:
      				<If CraftingCondition="Good">
      					<CraftAction ActionId="100098"/> <!-- Tricks of the Trade -->
      				</If>
      
       
    2. kagamihiiragi17

      kagamihiiragi17 Community Developer

      Joined:
      Jun 24, 2014
      Messages:
      873
      Likes Received:
      25
      Trophy Points:
      0
      Wrong implementation.

      Code:
      <If Condition="CraftingManager.Condition == Enums.CraftingCondition.Good">
       
    3. Zamphire

      Zamphire Member

      Joined:
      May 16, 2013
      Messages:
      354
      Likes Received:
      11
      Trophy Points:
      18
      I really need to get your skype or something Kagami, you're always so helpful! Thank you very much.
       
    4. Tinytox

      Tinytox Member

      Joined:
      Nov 5, 2014
      Messages:
      370
      Likes Received:
      7
      Trophy Points:
      18
      Would it be possible to get an example script by chance? I'd like to see how it works in context :X
      Also, I wasn't sure if it was going to return the action specified every time a good procs, or if this needs to be listed after every thing you want it to check for a good on XD
       
    5. Yasuko

      Yasuko Member

      Joined:
      Oct 28, 2010
      Messages:
      314
      Likes Received:
      6
      Trophy Points:
      18
      Like this?

      <If Condition="CraftingManager.Condition == Enums.CraftingCondition.Good">
      <CraftAction Name="Byregot's Blessing" ActionId="100009" />
      </If>

      <If Condition="CraftingManager.Condition == Enums.CraftingCondition.Excellent">
      <CraftAction Name="Byregot's Blessing" ActionId="100009" />
      </If>

      You could combine the statement to one statement.. then if the condition didnt meet.. go "fish" for good with using innovation.. do the statement again to see if "good/excellent' proc'ed.. if not, go fish for it with ingenuity II.. after ingenuity II it wouldnt matter if it proc'ed or not.. just do byregot's blessing then finish off the craft.

      Though I must add, when im referring to it "wouldnt matter" after ingenuity II, i was basically going off the 40 dura crafts for lucis turn ins.. if you didnt proc a good/excellent by time you did ingenuity 2.. you wouldnt have the cp to keep fishing for it, so you would just pop it anyways and finish the craft.
       
      Last edited: Jan 26, 2015
    6. Mizuti

      Mizuti New Member

      Joined:
      Jan 30, 2015
      Messages:
      1
      Likes Received:
      0
      Trophy Points:
      0
      Is there anyway to do an else condition?
       
    7. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,332
      Likes Received:
      378
      Trophy Points:
      83
      No. Just chain if's.
       
    8. Burn

      Burn New Member

      Joined:
      Jul 25, 2015
      Messages:
      40
      Likes Received:
      0
      Trophy Points:
      0
      I'm trying to make the code check for Good/Excellent proc first. If either are up, I want it to use Precise Touch. If not, just use Basic Touch.

      Is this even remotely close?:
      Code:
      				<If Condition="CraftingManager.Condition == CraftingCondition.Excellent or CraftingManager.Condition == CraftingCondition.Good">
      				<CraftAction Name="Precise Touch" ActionId="100133" />
      				</If>
      				<CraftAction ActionId="100061" Name="Basic Touch" />
      				
      I'm not really a code guy, so I'm just guessing and it's not working as intended. I need it to use one or the other (Precise Touch or Basic Touch), not both.
       
    9. Sycho

      Sycho New Member

      Joined:
      Jan 10, 2015
      Messages:
      143
      Likes Received:
      3
      Trophy Points:
      0
      Think what you're looking for is in this thread.
      https://www.thebuddyforum.com/rebor...derbot-profiles-crafting-detecting-procs.html
       

    Share This Page