TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    Trigger on condition if player is AI?

    Scheduled Pinned Locked Moved Maps & Mods
    2 Posts 2 Posters 614 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ebbeE Offline
      ebbe
      last edited by ebbe

      @Rolf-Larsson I was looking for a way to give AI-players a trigger related boost during the game, almost gave up to the possibility:

      untill I saw Rolf's Feudal Japan 2 map, seeing a condition set on if player is AI?
      So, it seems possible after all? anyone knows other examples?

      <attachment name="conditionAttachmentOdaNonHuman" attachTo="Oda" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
      <option name="gameProperty" value="Oda Human Player"/>
      <option name="invert" value="true"/>
      </attachment>
      
      <attachment name="triggerAttachmentOdaNonHuman1" attachTo="Oda" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
      <option name="conditions" value="conditionAttachmentOdaNonHuman:conditionAttachmentAIBonus"/>
      <option name="chance" value="1:10"/>
      <option name="purchase" value="Ashigaru" count="1"/>
      <option name="when" value="before:odaPurchase"/>
      </attachment>
      
      
      <property name="Oda Human Player" value="false" editable="true">
      <boolean/>
      </property>
      
      1 Reply Last reply Reply Quote 0
      • RogerCooperR Online
        RogerCooper
        last edited by

        You need to set the information in the game options, it does not automatically determine AI status.

        1 Reply Last reply Reply Quote 1

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums