Original Source
- Original title: Archeia's Advanced AI Conditions
- Original author: Archeia
- Original date: February 13, 2015
- Source thread: https://forums.rpgmakerweb.com/threads/archeias-advanced-ai-conditions.36877/
- Source forum path: Game Development Engines > Ruby Game System (RGSS) Scripts > RGSS3 Scripts (RMVX Ace)
Summary
Advanced AI Conditions Version 1.0dWhat is this? This script allows the developper to exert better control on how the AI handles the enemies' action patterns. Script configuration is almost entirely made via noteboxes and no RGSS3 knowledge is required to use it.
Archived First Post
Version 1.0d
This script allows the developper to exert better control on how the AI handles the enemies' action patterns.
Script configuration is almost entirely made via noteboxes and no RGSS3 knowledge is required to use it.
Features and Instructions
- TGR settings
TGR determine the frequency a target will be chosen during random targeting rolls. The configuration module below allows you to set how damage and healing affects TGR to make a character more threatening to the eyes of the AI.
- Skill settings
Every skill can be given default AI *targeting* conditions all enemies will use. To do it, you have to create an "AI block" in the skill's notebox.
Notetags explanation:
<ai_conditions>
Explanation: You always start the block with this one.
target_hpgt: n
Explanation: The target HP must be greater or equal to n%.
target_hplt: n
Explanation: The target HP must be lesser or equal to n%.
target_states: n, n...
Explanation: The target must have the specified states already inflicted.
target_states_not: n, n...
Explanation: The target must NOT have the specified states already inflicted.
only_if_target
Explanation: If no suitable target is found, the skill won't be used AT ALL.
</ai_conditions>
Explanation: You always end the block with this one.
PART 2: ENEMY AI CONFIGURATION
On top on a default AI, you can setup individual AI conditions for every different enemy. In case of conflict with the default targeting AI, these settings will take precedence.
All these settings make use of the enemy's notebox.
NOTE: the term "action index" refers to the order of the action pattern you enter for enemies in the database. For instance, if your list is like this:
Attack
Fire II
Poison
Attack will be index 1, Fire II will be index 2 and Poison index 3. And so on.
Notetags explanation:
<ai_conditions: n, n...>
Explanation: One way of starting an AI block.
`n` must be an action index. If you include multiple indices (comma-separated), the conditions will apply to each one.
use_id
Explanation: Same as above, but `n` refers to skill IDs instead of action indices. `n` must be a valid skill ID.
switches: n, n...
Condition: The specified switches must be ON.
variables: x, y, x, y...
Condition: Variables `x` must be equal to the corresponding values `y`.
states: n, n...
Condition: The acting enemy must have *all* of the specified states.
hpgt: n
Condition: Acting enemy has HP greater than or equal to `n%`.
hplt: n
Condition: Acting enemy has HP less than or equal to `n%`.
mpgt: n
Condition: Acting enemy has MP greater than or equal to `n%`.
mplt: n
Condition: Acting enemy has MP less than or equal to `n%`.
party_level: n
Condition: Party level is greater than `n`.
turns_order: a+bx
Condition: Matches the turn formula as seen in the database (e.g., `a + b * x`).
target_hpgt: n
Condition: Target HP must be greater than or equal to `n%`.
target_hplt: n
Condition: Target HP must be less than or equal to `n%`.
target_states: n, n...
Condition: The target must already have the listed states.
target_states_not: n, n...
Condition: The target must *not* have the listed states.
only_if_target
Condition: If no suitable target is found, the skill will not be used at all.
</ai_conditions>
Explanation: You must end the block with this one.
- Creating Turn Patterns
Turn patterns is a special AI setting which completely replace an action pattern with another one at the designated turns. During a turn pattern, the "normal" actions (the ones you entered into the database) won't be taken into consideration, ever. You need to create another block to make a Turn Pattern.
<turn_pattern: a+bx>
Used to define the turn pattern.
- `a` is the first turn when the action will occur.
- `b` is the interval between turns after the first.
skill: a, b
- `a` is the skill ID to be used.
- `b` is the rating (priority) of the skill.
</turn_pattern>
End the pattern.
NOTE 2: In order to assign conditions to a skill inside a turn pattern, you have to create a new AI block with that skill's ID.
- Absolute Rating
The absolute rating is a special rating you assign to an action during databasing your enemy. An action with this rating will take absolute priority, ignoring all others (even higher ones) provided it can be used.
If you have several actions with an absolute rating, one will be chosen randomly.
Download and Terms of Use
- Contact me for commercial usage.
- I will not be giving support or fixing bugs for you. I don't have time for that.
- Please do not distribute them in one huge zip/rar/.7z/whatever compression without my permission.
- You may use or edit the code as you please as long as it has proper attribution. However, you cannot change the license for the script e.g. removing the permission to use for commercial projects.
- Please add me in your credits either as Archeia Nessiah/Division Heaven. It can be in the ReadMe/Game Credits/etc.
- I am not liable for any destructive behavior that the materials could have caused you, such as, but not limited to, computer damage, incontinence, explosion of user’s head, coma, death, and/or halitosis. So edit or use at your own risk.
Features Mentioned
- "lightbox_close": "Close",
- "lightbox_next": "Next",
- "lightbox_previous": "Previous",
- "lightbox_error": "The requested content cannot be loaded. Please try again later.",
- "lightbox_start_slideshow": "Start slideshow",
- "lightbox_stop_slideshow": "Stop slideshow",
- "lightbox_full_screen": "Full screen",
- "lightbox_thumbnails": "Thumbnails",
- "lightbox_download": "Download",
- "lightbox_share": "Share",
- "lightbox_zoom": "Zoom",
- "lightbox_new_window": "New window",
- "lightbox_toggle_sidebar": "Toggle sidebar"
- PART 1: DEFAULT AI CONFIGURATION
- TGR settings
- TGR determine the frequency a target will be chosen during random targeting rolls. The configuration module below allows you to set how damage and healing affects TGR to make a character more threatening to the eyes of the AI.
- Skill settings
- Every skill can be given default AI *targeting* conditions all enemies will use. To do it, you have to create an "AI block" in the skill's notebox.
Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadLicense / Terms Note
Download and Terms of Use Contact me for commercial usage. I will not be giving support or fixing bugs for you. I don't have time for that. Please do not distribute them in one huge zip/rar/.7z/whatever compression without my permission.
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...