-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditional jumps in script actions #1172
base: develop
Are you sure you want to change the base?
Conditional jumps in script actions #1172
Conversation
Is the same PR 599: "Conditional Jumps for changing the current Team script flow" I closed Phobos-developers#599 because exists an unknow crash I have no idea to fix. With this pretext I moved all the contitional jump actions into its own file.
Nightly build for this pull request:
This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build. |
Warning Rate Limit Exceeded@FS-21 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 29 minutes and 20 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Before: 16012 After: 16027 Reason: 16012 number now is used in another PR.
Is the same PR #599:
"Conditional Jumps for changing the current Team script flow"
I closed #599 because exists an unknow crash I had no idea to fix (I fixed it now). With this pretext I moved all the conditional jump actions into its own file.
All this time I used them a lot in my mod C&C Reloaded to control AI scripts workflow so you can read the aimd.ini if you need some tips or try it yourself with the documentation.
From docs:
16027
Conditional Jump, Clear VariablesIn
aimd.ini
:16013
Conditional Jump, Manage Variables Reset If The Jump Is Successful16012
"Clear Variables".In
aimd.ini
:16014
Action Abortion After Success KillIn
aimd.ini
:16015
Conditional Jump, Manage Kills CounterIn
aimd.ini
:16016
Conditional Jump, Reset CounterIn
aimd.ini
:16017
Conditional Jump, Set Comparator ModeIn
aimd.ini
:16018
Conditional Jump, Set Comparator ValueIn
aimd.ini
:16019
Conditional Jump, Set IndexIn
aimd.ini
:16020
Conditional Jump, Jump If False6,x
the line number is 1-based.In
aimd.ini
:16021
Conditional Jump, Jump If True6,x
the line number is 1-based.In
aimd.ini
:16022
Conditional Jump, Check Kills CountIn
aimd.ini
:16023
Conditional Jump, Check Simple Count16016
.In
aimd.ini
:16024
Conditional Jump, Check If Exist Alive Human PlayersIn
aimd.ini
:16025
Conditional Jump, Check Enemy Objects Count16019
.In
aimd.ini
:AITargetTypes
section and specifies the list of possibleVehicleTypes
,AircraftTypes
,InfantryTypes
andBuildingTypes
that can be evaluated. The newAITargetTypes
section must be declared inrulesmd.ini
for making this script work:In
rulesmd.ini
:16026
Conditional Jump, Check If The Most Hated Enemy Is HumanIn
aimd.ini
: