AI Behavior 

The AI behavior is an addon that extends the features of the application to implement artificial intelligence on object instances with function-based implementation for both Construct 2 and Construct 3.

Features include nod, option and intelligence report decision making for the object instances, achieving player-like decisions for game application bots.

The best benefit for this addon is that it supports all editors and runtimes of Construct. Both, Construct 2 and Construct 3.

It implements artificial intelligence for object instances, useful for game application bots and artificially intelligent object instances.

Warning! This is already depreciated, please use the new AI addon, which is the updated version.

 

Intstructions

1. The first step is to add the AI behavior into an object in the project.

2. These steps are explained below. For more information, visit the Construct 3 Manual's behavior reference.

3. Do this by creating a world object (instance based), an object that is interactive with the layout, for example the Sprite object.

4. Select the object instance, then from the properties bar, click Edit Behaviors.

5. Once the dialog pops up, press the Add new behavior button.

6. A behaviors list dialog popup will show, with the list of available behaviors compatible with the currently selected object. If installed properly, the AI behavior will be on that list.

7. Press add or double-click on the behavior, then it'll be added to the object's behavior list.

8. Finally, set the other plugin properties. 

  • Intelligence - is a percentage value from 0 to 100. It determines the intelligence of an instance or accuracy in making decisions. 
    An instance's decision accuracy varies from 
    ​​its intelligence.

You may refer to the Properties Section to learn more about the properties here.

 

Features

The AI is a behavior addon that implements instance based artificial intelligence features into objects on an application made by Construct 2 or Construct 3. It's easy to use and with an easy sample project. It allows you to easily apply player-like artificial intelligence for your game application, useful for game bot designing

Features :

  • Per instance based artificial intelligence for game bots implementation.

  • Various decision based method of artificial thinking.

  • Easy to use and no programming required.

  • Well-supported and fully tested.

  • Function based design of decision-thinking event making.

  • Object Instance-based functions for AI implementation.

  •  Nod, Option and Intelligence Report decision methods.

  • Construct 2 editor support.

  • Construct 3 editor support.

  • Construct 2 runtime.

  • Construct 3 runtime.

  • Forwards compatibility support.

  • Runtime maintenance support.

 
 

Actions, Conditions & Expressions

Actions

Decision Making :

  • Decide - Request a decision now. Response will be received on 'On Decision'.

    • Decision Name - Decision Name of the decision plan.

    • Decision Type - Nod for true/false and Option for selection and Intel Report for analysis.

  • Set Intelligence - Set the object instance intelligence. '100' is absolute Accurate, while '0' is absolute Random.

    • Intelligence Percentage - Value of '0' to '100'.

True or False :

  • Plan Nod Decision - Make a nod decision plan with a unique name. The Nod Decision Percentage determines the success rate.

    • Decision Name - Decision Name for this decision plan.

    • Confidence Percentage - Value of '0' to '100'.

  • Update Nod Confidence - This will set the confidence percentage of a nod decision plan.

    • Decision Name - Decision Name of the decision plan.

    • Confidence Percentage - Value of '0' to '100'.


Option Decision :

  • Add an Option - Make an option with a unique name.

    • Option Name - Option Name for the decision plan.

    • Confidence Percentage - Value of '0' to '100'.

  • Plan Option Decision - Make an option decision plan with a unique name. The Option Decision Percentage determines the success rate.

    • Decision Name - Decision Name for this decision plan.

  • Update Option Confidence - This will set the confidence percentage of an option decision plan.

    • Decision Name - Decision Name of the decision plan.

    • Option Name - Option Name from the decision plan.

    • Confidence Percentage - Value of '0' to '100'.

  • Insert an Option - Add an option with a unique name.

    • Decision Name - Decision Name of the decision plan.

    • Option Name - Option Name for the decision plan.

    • Confidence Percentage - Value of '0' to '100'.

  • Remove an Option - Remove an option with a unique name.

    • Decision Name - Decision Name of the decision plan.

    • Option Name - Option Name for the decision plan.


Intelligence Report :

  • Make an Intel Report - Make an intel report with a unique name.

    • Intel Report Name - Intel Name for the decision plan.

    • Confidence Percentage - Value of '0' to '100'.

  • Plan Intel Decision - Make an intel decision plan with a unique name and reports list. The Intel Decision Percentage determines the success rate.

    • Intel Decision Name - Intel Decision Name for this decision plan.

    • Intel Reports - Separate Report Names by '|'.

  • Update Intel Report Confidence - This will set the confidence percentage of an intelligence report.

    • Intel Report Name - Intel Name for the decision plan.

    • Confidence Percentage - Value of '0' to '100'.

Conditions

Option Decision :

  • On Option Decision - Triggered when the Object has made an option decision.

  • Compare Option Decision Name - Compare the name of the option decision. Use to filter option decisions.

    • Decision Name - A String of the decision's name.

  • Compare Option Name - Compare the name of the option. Use to filter option names.

    • Option Name - A String of the option's name.

  • For Each Options - Go Through All Options on option decision. Retrieve the option names and percentages by expressions.

Intelligence Report :

  • On Intel Report Decision - Triggered when the Object has made an intelligence decision.

  • Compare Intel Report Decision Name - Compare the name of the intelligence decision. Use to filter intelligence decisions.

    • Decision Name - A String of the decision's name.

  • Has Intel Report Name - Check intelligence report names if present in an intelligence decision.

    • Report Name - A String of the report's name.

  • For Each Report - Go Through All Reports on intelligence report decision. Retrieve the report names and percentages by expressions.

  • Compare Intelligence Percentage - Analyze the decision by percentage. Compare value from '0' to '100'.

    • Compare by - A Comparator for the intelligence nod decision percentage.

    • Compare to - The comparing value to the intelligence nod decision percentage.

  • Is an Intelligent Decision - Analyze the intelligence decision as a boolean. '0' to '50' is false and '51' to '100' is true.

 


Nod Decision :

  • On Nod Decision - Triggered when the Object has made a nod decision.

  • Compare Nod Decision Name - Compare the name of the nod decision. Use to filter nod decisions.

    • Decision Name - A String of the decision's name.

  • Compare Nod Percentage - Analyze the decision by percentage. Compare value from '0' to '100'.

    • Compare by - A Comparator for the nod decision percentage.

    • Compare to - The comparing value to the nod decision percentage.

  • Is Nod Decision - Analyze the nod decision as a boolean. '0' to '50' is false and '51' to '100' is true.

Expressions

Decision Making :

  • relativePercentage - Return the relative percentage from 2 opposing values, the first value being the base of comparison. '-1' if null.

    • CompareFrom - The Percentage to compare the value from.

    • CompareTo - The Percentage to compare the value to.

Option Decision :

  • recentOptionDecisionPercentage - Return the option decision percentage on option decision. '-1' if null.

  • recentOptionDecisionName - Return the option decision name on option decision. '' if null.

  • recentOptionName - Return the option name on option decision. '' if null.


Intelligence Report :

  • recentIntelDecisionPercentage - Return the option decision percentage on option decision. '-1' if null.

  • recentIntelDecisionName - Return the option decision name on option decision. '' if null.


Nod Decision :

  • recentNodDecisionPercentage - Return the nod decision percentage on nod decision. '-1' if null.

  • recentNodDecisionName - Return the nod decision name on nod decision. '' if null.


Option Decision : For Each :

  • loopOptionPercentage - Return the for each option percentage on option decision. '-1' if null.

  • loopOptionName - Return the for each option name on option decision. '' if null.


Intelligence Report : For Each :

  • loopIntelReportPercentage - Return the for each intel report percentage on intel decision. '-1' if null.

 

  • loopIntelReportName - Return the for each intel report name on intel decision. '' if null.

Properties

  • Intelligence - Intelligence percentage of the object instance. '0' to '100' value, accurate to random.​

 

Game Project

Sample Setup Project

Specifications

  • Instructions - The sample project has comments and instructions on how to use the addon and its features.

  • A.C.E. Coverage - It covers the implementation of each action, condition and expression.

  • Tips and Tricks - It provides some tips and tricks to a better use of the addon and of the event-sheet system alongside it.

Supporters

Only

Get the tools

for your pro games!

Constuct Master Collection - Itch.io
Constuct Master Collection - Discord
Constuct Master Collection - Construct 3

© Construct Master Collection 2020 • All rights reserved

Contact Information: